Add debian packaging
Auto configure PAM with pam-auth-update: - enable ccreds-check ccreds-save - enable krb5
This commit is contained in:
7
debian/changelog
vendored
Normal file
7
debian/changelog
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
orange-yourdev-login (0.1) hirsute; urgency=medium
|
||||
|
||||
* Initial release. Closes: #123456
|
||||
|
||||
-- Michel Decima <michel.decima@orange.com> Mon, 27 Sep 2021 07:18:08 -0700
|
||||
|
||||
|
||||
30
debian/control
vendored
Normal file
30
debian/control
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
Source: orange-yourdev-login
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Michel Decima <michel.decima@orange.com>
|
||||
Build-Depends: debhelper-compat (>=12)
|
||||
Standards-Version: 4.5.0
|
||||
Vcs-Git: https://gitlab.forge.orange-labs.fr/yourdev/orange-yourdev-login.git
|
||||
Vcs-Browser: https://gitlab.forge.orange-labs.fr/yourdev/orange-yourdev-login
|
||||
Homepage: http://yourdev.pages.forge.orange-labs.fr/orange-yourdev-login/
|
||||
|
||||
Package: orange-yourdev-login
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Breaks: orange-yourdev-kerberos
|
||||
Replaces: orange-yourdev-kerberos
|
||||
Depends: ${misc:Depends},
|
||||
libpam-krb5,
|
||||
libpam-ccreds,
|
||||
orange-certs,
|
||||
orange-krb5,
|
||||
orange-dongle-aladdin
|
||||
Recommends:
|
||||
krb5-auth-dialog
|
||||
Suggests:
|
||||
orange-yourdev-ldap,
|
||||
orange-yourdev-setup,
|
||||
orange-yourdev-mount
|
||||
Description: Orange Labs Yourdev Login
|
||||
Provides Orange Labs login with Kerberos
|
||||
|
||||
10
debian/copyright
vendored
Normal file
10
debian/copyright
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
|
||||
Upstream-Name: orange-yourdev-pki-login
|
||||
Source: https://gitlab.forge.orange-labs.fr/yourdev/orange-yourdev-login
|
||||
|
||||
Files: * ./debian/*
|
||||
Copyright: 2021, Orange Labs
|
||||
License: GPL-2
|
||||
On Debian systems, the full text of the GNU General Public
|
||||
License version 2 can be found in the file
|
||||
'/usr/share/common-licenses/GPL-2'.
|
||||
32
debian/postinst
vendored
Normal file
32
debian/postinst
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Configure PAM for credential cache
|
||||
apt-mark manual libpam-ccreds >/dev/null || true
|
||||
if [ -e /usr/share/pam-configs/ccreds-check ] ; then
|
||||
pam-auth-update --force --package --enable \
|
||||
ccreds-check ccreds-save || true
|
||||
fi
|
||||
# Configure PAM for Kerberos
|
||||
if [ -e /usr/share/pam-configs/krb5 ] ; then
|
||||
pam-auth-update --force --package --enable krb5 || true
|
||||
fi
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
19
debian/preinst
vendored
Normal file
19
debian/preinst
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
install)
|
||||
;;
|
||||
upgrade)
|
||||
;;
|
||||
abort-upgrade)
|
||||
;;
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
6
debian/rules
vendored
Executable file
6
debian/rules
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/make -f
|
||||
# You must remove unused comment lines for the released package.
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
2
debian/source/local-options
vendored
Normal file
2
debian/source/local-options
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
#abort-on-upstream-changes
|
||||
#unapply-patches
|
||||
Reference in New Issue
Block a user