Fixing errors reported by piuparts.
o Revised debian/rules dh_install. o Revised postrm and prerm.
This commit is contained in:
parent
9619327ddb
commit
ea1937a55c
6 changed files with 83 additions and 28 deletions
8
debian/changelog
vendored
8
debian/changelog
vendored
|
@ -1,3 +1,11 @@
|
||||||
|
shellinabox (2.14-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Revised install target of debian/rules.
|
||||||
|
* Revised postrm and prerm to fix dangling symlinks on
|
||||||
|
purge. (Closes: #668720.)
|
||||||
|
|
||||||
|
-- Marc Singer <elf@debian.org> Sat, 21 Apr 2012 10:26:21 -0700
|
||||||
|
|
||||||
shellinabox (2.13-1) unstable; urgency=low
|
shellinabox (2.13-1) unstable; urgency=low
|
||||||
|
|
||||||
* Typo in web address. (Closes: #668130.)
|
* Typo in web address. (Closes: #668130.)
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -4,7 +4,7 @@ Priority: optional
|
||||||
Maintainer: Marc Singer <elf@debian.org>
|
Maintainer: Marc Singer <elf@debian.org>
|
||||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils,
|
Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils,
|
||||||
libssl-dev, libpam0g-dev, zlib1g-dev
|
libssl-dev, libpam0g-dev, zlib1g-dev
|
||||||
Standards-Version: 3.9.2
|
Standards-Version: 3.9.3
|
||||||
Homepage: http://shellinabox.com
|
Homepage: http://shellinabox.com
|
||||||
Vcs-Git: https://code.google.com/p/shellinabox/
|
Vcs-Git: https://code.google.com/p/shellinabox/
|
||||||
Vcs-Browser: https://code.google.com/p/shellinabox/source/browse/
|
Vcs-Browser: https://code.google.com/p/shellinabox/source/browse/
|
||||||
|
|
41
debian/rules
vendored
41
debian/rules
vendored
|
@ -22,34 +22,43 @@ override_dh_auto_configure:
|
||||||
|
|
||||||
# elf-2012.03.24: This work should be done in the Makefile install
|
# elf-2012.03.24: This work should be done in the Makefile install
|
||||||
# target instead of debian/rules.
|
# target instead of debian/rules.
|
||||||
|
DESTDIR=$(CURDIR)/debian/tmp
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_prep
|
dh_prep
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
@# Add here commands to install the package into debian/tmp
|
# We need to install some files for the benefit of Debian that aren't
|
||||||
$(MAKE) install DESTDIR="$(CURDIR)/debian/tmp"
|
# going into the program instal target. So, we install into
|
||||||
|
# debian/tmp the things that need to be included in the package.
|
||||||
|
$(MAKE) install DESTDIR=$(DESTDIR)
|
||||||
# Set up system-wide user CSS style options
|
# Set up system-wide user CSS style options
|
||||||
mkdir -p "$(CURDIR)/debian/tmp/etc/shellinabox/options-available" \
|
mkdir -p "$(DESTDIR)/etc/shellinabox/options-available"
|
||||||
"$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled"
|
mkdir -p "$(DESTDIR)/etc/shellinabox/options-enabled"
|
||||||
for i in "00+Black on White" "00_White On Black" \
|
for i in \
|
||||||
"01_Monochrome" "01+Color Terminal"; do \
|
"00+Black on White" \
|
||||||
cp "$(CURDIR)/debian/tmp/usr/share/doc/shellinabox/$$(echo "$$i"| \
|
"00_White On Black" \
|
||||||
sed -e 's/[0-9]*[_+]\([^ ]*\).*/\1/'| \
|
"01_Monochrome" \
|
||||||
tr A-Z a-z)"*.css \
|
"01+Color Terminal"; do \
|
||||||
"$(CURDIR)/debian/tmp/etc/shellinabox/options-available/$$i.css";\
|
cp "$(DESTDIR)/usr/share/doc/shellinabox/$$(echo "$$i"| \
|
||||||
|
sed -e 's/[0-9]*[_+]\([^ ]*\).*/\1/'| \
|
||||||
|
tr A-Z a-z)"*.css \
|
||||||
|
"$(DESTDIR)/etc/shellinabox/options-available/$$i.css"; \
|
||||||
done
|
done
|
||||||
cd "$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled" && \
|
cd "$(DESTDIR)/etc/shellinabox/options-enabled" \
|
||||||
ln -s ../options-available/*.css .
|
&& ln -s ../options-available/*.css .
|
||||||
cp "$(CURDIR)/debian/README.available" \
|
cp "$(CURDIR)/debian/README.available" \
|
||||||
"$(CURDIR)/debian/tmp/etc/shellinabox/options-available/README"
|
"$(DESTDIR)/etc/shellinabox/options-available/README"
|
||||||
cp "$(CURDIR)/debian/README.enabled" \
|
cp "$(CURDIR)/debian/README.enabled" \
|
||||||
"$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled/README"
|
"$(DESTDIR)/etc/shellinabox/options-enabled/README"
|
||||||
|
# Shellinabox home directory
|
||||||
|
# mkdir -p "$(DESTDIR)/var/lib/shellinabox"
|
||||||
# Add Lintian override. ShellInABox has an explicit exemption allowing
|
# Add Lintian override. ShellInABox has an explicit exemption allowing
|
||||||
# the linking its GPLv2 code with OpenSSL.
|
# the linking its GPLv2 code with OpenSSL.
|
||||||
mkdir -p "$(CURDIR)/debian/tmp/usr/share/lintian/overrides/"
|
mkdir -p "$(DESTDIR)/usr/share/lintian/overrides/"
|
||||||
{ echo '# ShellInABox has an explicit exemption allowing the linking';\
|
{ echo '# ShellInABox has an explicit exemption allowing the linking';\
|
||||||
echo '# of its GPLv2 code with OpenSSL'; \
|
echo '# of its GPLv2 code with OpenSSL'; \
|
||||||
echo 'shellinabox binary: possible-gpl-code-linked-with-openssl'; } \
|
echo 'shellinabox binary: possible-gpl-code-linked-with-openssl'; } \
|
||||||
>"$(CURDIR)/debian/tmp/usr/share/lintian/overrides/shellinabox"
|
>"$(DESTDIR)/usr/share/lintian/overrides/shellinabox"
|
||||||
|
# Now perform the normal debhelper install.
|
||||||
dh_install
|
dh_install
|
||||||
|
|
4
debian/shellinabox.postinst
vendored
4
debian/shellinabox.postinst
vendored
|
@ -25,6 +25,10 @@ case "$1" in
|
||||||
--home /var/lib/shellinabox --gecos "Shell In A Box" \
|
--home /var/lib/shellinabox --gecos "Shell In A Box" \
|
||||||
--group shellinabox
|
--group shellinabox
|
||||||
fi
|
fi
|
||||||
|
# Shellinabox must own the certificate directory so that it
|
||||||
|
# can write the certificate even when the daemon has given-up
|
||||||
|
# root privileges.
|
||||||
|
# chown shellinabox:shellinabox /var/lib/shellinabox
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|
19
debian/shellinabox.postrm
vendored
19
debian/shellinabox.postrm
vendored
|
@ -18,26 +18,23 @@ set -e
|
||||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||||
# the debian-policy package
|
# the debian-policy package
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
d=/var/lib/shellinabox
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
purge)
|
purge)
|
||||||
deluser --quiet --system --remove-home shellinabox > /dev/null || true
|
deluser --quiet --system shellinabox > /dev/null || true
|
||||||
delgroup --quiet --system shellinabox > /dev/null || true
|
delgroup --quiet --system shellinabox > /dev/null || true
|
||||||
|
[ ! -d "$d" ] || rmdir "$d" || true # deluser can't do this for /var
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
|
||||||
echo "postrm called with unknown argument \`$1'" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
|
||||||
# generated by other debhelper scripts.
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
37
debian/shellinabox.prerm
vendored
Normal file
37
debian/shellinabox.prerm
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# prerm script for shellinabox
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# summary of how this script can be called:
|
||||||
|
# * <prerm> `remove'
|
||||||
|
# * <old-prerm> `upgrade' <new-version>
|
||||||
|
# * <new-prerm> `failed-upgrade' <old-version>
|
||||||
|
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||||||
|
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||||||
|
# <package-being-installed> <version> `removing'
|
||||||
|
# <conflicting-package> <version>
|
||||||
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||||
|
# the debian-policy package
|
||||||
|
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
remove)
|
||||||
|
[ ! -f /var/lib/shellinabox/certificate.pem ] \
|
||||||
|
|| rm /var/lib/shellinabox/certificate.pem
|
||||||
|
;;
|
||||||
|
upgrade|deconfigure)
|
||||||
|
;;
|
||||||
|
|
||||||
|
failed-upgrade)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in a new issue