Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
Jan Dittberner | 68e34c2781 | 5 years ago |
Jan Dittberner | c066c84ff7 | 5 years ago |
Jan Dittberner | f6770602ef | 5 years ago |
Jan Dittberner | dd196e0cb7 | 5 years ago |
Jan Dittberner | 5652bad40e | 5 years ago |
Jan Dittberner | 80eeb22f04 | 5 years ago |
Jan Dittberner | 4963eac036 | 5 years ago |
Jan Dittberner | 82029e284d | 5 years ago |
Jan Dittberner | f688e42178 | 5 years ago |
Jan Dittberner | adeb998c33 | 5 years ago |
Jan Dittberner | ca091d064d | 5 years ago |
Jan Dittberner | 9f9854c729 | 5 years ago |
@ -1,44 +0,0 @@
|
||||
#!groovy
|
||||
/*
|
||||
Copyright 2017-2019 Jan Dittberner
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this program except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
GOPATH = "${pwd(tmp: true)}/gocode"
|
||||
PATH = "${GOPATH}/bin:${PATH}"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Install go-bindata') {
|
||||
steps {
|
||||
sh "mkdir -p '${GOPATH}/bin'"
|
||||
sh "cd '${GOPATH}/bin'"
|
||||
sh "go get -u -v github.com/shuLhan/go-bindata/cmd/go-bindata"
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh "make distclean && make BUILD='${env.BUILD_TAG}'"
|
||||
}
|
||||
}
|
||||
stage('Create build output') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'cacert-boardvoting,config.yaml.example'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 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
|
@ -0,0 +1,22 @@
|
||||
cacert-boardvoting (0.6.0-2) buster-cacert; urgency=medium
|
||||
|
||||
* Add missing license reference
|
||||
* update for Debian buster
|
||||
* update to debhelper 12
|
||||
* use /usr/share/dpkg/pkg-info.mk
|
||||
* fix maintainer-script-should-not-use-recursive-chown-or-chmod
|
||||
* exclude cacert-boardvoting from dh_dwz
|
||||
|
||||
-- Jan Dittberner <jandd@cacert.org> Tue, 13 Aug 2019 12:59:34 +0200
|
||||
|
||||
cacert-boardvoting (0.6.0-1) stretch-cacert; urgency=medium
|
||||
|
||||
* New upstream version
|
||||
|
||||
-- Jan Dittberner <jandd@cacert.org> Sat, 03 Aug 2019 10:49:17 +0200
|
||||
|
||||
cacert-boardvoting (0.5.0-1) stretch-cacert; urgency=medium
|
||||
|
||||
* Initial debian package
|
||||
|
||||
-- Jan Dittberner <jandd@debian.org> Fri, 02 Aug 2019 13:51:48 +0200
|
@ -0,0 +1,22 @@
|
||||
Source: cacert-boardvoting
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Jan Dittberner <jandd@cacert.org>
|
||||
Build-Depends: ca-certificates,
|
||||
debhelper (>= 12),
|
||||
debhelper-compat (=12),
|
||||
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.
|
@ -0,0 +1,22 @@
|
||||
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
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this program except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian systems, the full text of the Apache License, Version 2.0 can be
|
||||
found in the file `/usr/share/common-licenses/Apache-2.0`
|
@ -0,0 +1,5 @@
|
||||
[DEFAULT]
|
||||
upstream-branch = master
|
||||
debian-branch = debian
|
||||
upstream-tag = %(version)s
|
||||
pristine-tar = False
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
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)
|
||||
|
||||
override_dh_dwz:
|
||||
dh_dwz -X cacert-boardvoting
|
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
Loading…
Reference in New Issue