From b87580466e9a70fe53178107a9702abd05ffb85d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 1 Jul 2021 16:31:59 -0400 Subject: [PATCH] Add debian packaging for vtbuffered --- confluent_vtbufferd/builddeb | 23 +++++++++++++++++++++++ confluent_vtbufferd/debian/changelog | 6 ++++++ confluent_vtbufferd/debian/compat | 1 + confluent_vtbufferd/debian/control | 13 +++++++++++++ confluent_vtbufferd/debian/copyright | 0 confluent_vtbufferd/debian/format | 1 + confluent_vtbufferd/debian/rules | 3 +++ 7 files changed, 47 insertions(+) create mode 100644 confluent_vtbufferd/builddeb create mode 100644 confluent_vtbufferd/debian/changelog create mode 100644 confluent_vtbufferd/debian/compat create mode 100644 confluent_vtbufferd/debian/control create mode 100644 confluent_vtbufferd/debian/copyright create mode 100644 confluent_vtbufferd/debian/format create mode 100644 confluent_vtbufferd/debian/rules diff --git a/confluent_vtbufferd/builddeb b/confluent_vtbufferd/builddeb new file mode 100644 index 00000000..d1e2b041 --- /dev/null +++ b/confluent_vtbufferd/builddeb @@ -0,0 +1,23 @@ +#!/bin/bash +set -x +cd `dirname $0` +PKGNAME=$(basename $(pwd)) +DPKGNAME=$(basename $(pwd) | sed -e s/_/-/) +OPKGNAME=$(basename $(pwd) | sed -e s/_/-/) +DSCARGS="--with-python3=True --with-python2=False" +VERSION=`git describe|cut -d- -f 1` +NUMCOMMITS=`git describe|cut -d- -f 2` +if [ "$NUMCOMMITS" != "$VERSION" ]; then + VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3` +fi +cd .. +rm -rf /tmp/confluent +mkdir -p /tmp/confluent # $DPKGNAME +cp -a * .git /tmp/confluent # $DPKGNAME +cd /tmp/confluent +mv $PKGNAME $DPKGNAME-${VERSION} +sed -i s/%%VERSION%%/$VERSION/ $DPKGNAME-${VERSION}/debian/changelog +tar cvzf ${DPKGNAME}_${VERSION}.orig.tar.gz $DPKGNAME-${VERSION} +cd $DPKGNAME-${VERSION} +debuild -us -uc +exit 0 diff --git a/confluent_vtbufferd/debian/changelog b/confluent_vtbufferd/debian/changelog new file mode 100644 index 00000000..2ca7fcc5 --- /dev/null +++ b/confluent_vtbufferd/debian/changelog @@ -0,0 +1,6 @@ +confluent-vtbufferd (%%VERSION%%-1) UNRELEASED; urgency=medium + + * Initial release. + + -- Lenovo HPC Team Thu, 01 Jul 2021 19:57:36 +0000 + diff --git a/confluent_vtbufferd/debian/compat b/confluent_vtbufferd/debian/compat new file mode 100644 index 00000000..48082f72 --- /dev/null +++ b/confluent_vtbufferd/debian/compat @@ -0,0 +1 @@ +12 diff --git a/confluent_vtbufferd/debian/control b/confluent_vtbufferd/debian/control new file mode 100644 index 00000000..9691546e --- /dev/null +++ b/confluent_vtbufferd/debian/control @@ -0,0 +1,13 @@ +Source: confluent-vtbufferd +Maintainer: HPC Team +Section: misc +Priority: optional +Standards-Version: 4.5.0 +Build-Depends: debhelper (>= 12) + +Package: confluent-vtbufferd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: VT buffers for confluent service + Provides VT consoles in memory for redraw on connections. + diff --git a/confluent_vtbufferd/debian/copyright b/confluent_vtbufferd/debian/copyright new file mode 100644 index 00000000..e69de29b diff --git a/confluent_vtbufferd/debian/format b/confluent_vtbufferd/debian/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/confluent_vtbufferd/debian/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/confluent_vtbufferd/debian/rules b/confluent_vtbufferd/debian/rules new file mode 100644 index 00000000..cbe925d7 --- /dev/null +++ b/confluent_vtbufferd/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@