Initial debian packaging

debian
Jan Dittberner 5 years ago
parent 6ff78cde48
commit 9f9854c729

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

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

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

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

@ -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

@ -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

@ -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

@ -0,0 +1 @@
10

21
debian/control vendored

@ -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

@ -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

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

16
debian/rules vendored

@ -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)

@ -0,0 +1 @@
3.0 (quilt)
Loading…
Cancel
Save