Commit 24de79bb authored by ale's avatar ale

Add Debian package metadata

parent c1717fb2
This diff is collapsed.
go-sso (0.2) unstable; urgency=medium
* Initial Release.
-- Autistici/Inventati <debian@autistici.org> Wed, 01 Nov 2017 10:37:36 +0000
Source: go-sso
Section: admin
Priority: optional
Maintainer: Autistici/Inventati <debian@autistici.org>
Build-Depends: debhelper (>=9), golang-go, dh-systemd, dh-golang
Standards-Version: 3.9.6
Package: sso-server
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, auth-server
Description: Single-Sign-On server.
Single-Sign-On server, integrated with git.autistici.org/id/auth.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: go-sso
Source: <https://git.autistici.org/id/go-sso>
Files: *
Copyright: 2017 Autistici/Inventati <info@autistici.org>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
#!/bin/sh
set -e
case "$1" in
configure)
addgroup --system --quiet sso-server
adduser --system --no-create-home --home /run/sso-server \
--disabled-password --disabled-login \
--quiet --ingroup sso-server sso-server
adduser --quiet sso-server auth-server
;;
esac
#DEBHELPER#
exit 0
#!/usr/bin/make -f
export DH_GOPKG = git.autistici.org/id/go-sso
export DH_GOLANG_EXCLUDES = vendor
%:
dh $@ --with systemd --with golang --buildsystem golang
override_dh_install:
rm -fr $(CURDIR)/debian/sso-server/usr/share/gocode
dh_install
override_dh_systemd_enable:
dh_systemd_enable --no-enable
override_dh_systemd_start:
dh_systemd_start --no-start
[Unit]
Description=SSO Server
After=auth-server.socket
[Service]
User=sso-server
Group=sso-server
EnvironmentFile=-/etc/default/sso-server
ExecStart=/usr/bin/sso-server --addr $ADDR
Restart=always
[Install]
WantedBy=multi-user.target
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment