Initial debian packaging

This commit is contained in:
Jan Dittberner 2019-08-01 14:21:29 +02:00
parent 6ff78cde48
commit 9f9854c729
13 changed files with 104 additions and 0 deletions

1
debian/cacert-boardvoting.dirs vendored Normal file
View file

@ -0,0 +1 @@
/srv/cacert-boardvoting

1
debian/cacert-boardvoting.docs vendored Normal file
View file

@ -0,0 +1 @@
README.md

1
debian/cacert-boardvoting.examples vendored Normal file
View file

@ -0,0 +1 @@
config.yaml.example

1
debian/cacert-boardvoting.install vendored Normal file
View file

@ -0,0 +1 @@
cacert-boardvoting /srv/cacert-boardvoting

31
debian/cacert-boardvoting.postinst vendored Normal file
View file

@ -0,0 +1,31 @@
#!/bin/sh
#
# postinst script for cacert-boardvoting
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
adduser --system --quiet --home /srv/cacert-boardvoting cacert-boardvoting
DATADIR=/srv/cacert-boardvoting/data
if [ -d "${DATADIR}" ]; then
chown -R cacert-boardvoting "${DATADIR}"
else
install -d --owner cacert-boardvoting --mode 0700 "${DATADIR}"
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
#DEBHELPER#
exit 0

12
debian/cacert-boardvoting.service vendored Normal file
View file

@ -0,0 +1,12 @@
[Unit]
Description=CAcert board voting software
Documentation=file:/usr/share/doc/cacert-boardvoting/README.md.gz
After=network.target
ConditionPathExists=/srv/cacert-boardvoting/config.yaml
[Service]
ExecStart=/srv/cacert-boardvoting/cacert-boardvoting -config /srv/cacert-boardvoting/config.yaml
User=cacert-boardvoting
[Install]
WantedBy=multi-user.target

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
cacert-boardvoting (0.5.0-1) UNRELEASED; urgency=medium
* Initial debian package
-- Jan Dittberner <jandd@cacert.org> Wed, 31 Jul 2019 17:54:34 +0200

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
10

21
debian/control vendored Normal file
View file

@ -0,0 +1,21 @@
Source: cacert-boardvoting
Section: misc
Priority: optional
Maintainer: Jan Dittberner <jandd@cacert.org>
Build-Depends: ca-certificates,
debhelper (>= 10),
git,
golang-go (>= 2:1.11~1~),
libsqlite3-0
Standards-Version: 4.3.0
Homepage: https://git.cacert.org/gitweb/?p=cacert-boardvoting.git
Vcs-Browser: https://git.cacert.org/gitweb/?p=cacert-boardvoting.git
Vcs-Git: git://git.cacert.org/cacert-boardvoting.git -b debian
Package: cacert-boardvoting
Architecture: amd64
Depends: adduser, libsqlite3-0, ${misc:Depends}, ${shlibs:Depends}
Recommends: sqlite3
Description: CAcert board voting software
software that provides a web based tool for voting on motions to CAcert
commitee members and allows viewing of votes to other CAcert members.

8
debian/copyright vendored Normal file
View file

@ -0,0 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: CAcert board voting software
Upstream-Contact: Jan Dittberner <jandd@cacert.org>
Source: https://git.cacert.org/gitweb/?p=cacert-boardvoting.git
Files: *
Copyright: 2017-2019 Jan Dittberner
License: Apache-2.0

5
debian/gbp.conf vendored Normal file
View file

@ -0,0 +1,5 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian
upstream-tag = %(version)s
pristine-tar = False

16
debian/rules vendored Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/make -f
%:
dh $@
DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
DEB_VERSION=$(shell dpkg-parsechangelog -S Version)
override_dh_auto_build:
GOCACHE=$(CURDIR)/tmp/.cache \
GOPATH=$(CURDIR)/tmp/gocode \
go get -u -v github.com/shulhan/go-bindata/cmd/go-bindata ; \
PATH=$(CURDIR)/tmp/gocode/bin:$(PATH) make GOCACHE=$(CURDIR)/tmp/.cache GOPATH=$(CURDIR)/tmp/gocode VERSION=$(DEB_VERSION)

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)