Skip to content

Commit

Permalink
Update Debian package maintainer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ageis committed Oct 26, 2016
1 parent a049dd2 commit b37870b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
6 changes: 4 additions & 2 deletions contrib/DEBIAN/postinst
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# postinst script for zcash
#
# see: dh_installdeb(1)

set -e
set -x

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
Expand All @@ -13,9 +14,10 @@ set -x
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
configure)
;;
Expand Down
14 changes: 4 additions & 10 deletions contrib/DEBIAN/postrm
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# see: dh_installdeb(1)

set -e
#set -x

# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
Expand All @@ -15,18 +15,12 @@ set -e
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
. /usr/share/debconf/confmodule

case "$1" in
upgrade|failed-upgrade)
;;

remove|abort-install|abort-upgrade|disappear)
;;

purge)
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;

*)
Expand Down
10 changes: 4 additions & 6 deletions contrib/DEBIAN/preinst
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@
# see: dh_installdeb(1)

set -e
#set -x

# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package

case "$1" in
install)
;;

upgrade)
case "$1" in
install|upgrade)
;;

abort-upgrade)
Expand Down
7 changes: 2 additions & 5 deletions contrib/DEBIAN/prerm
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ set -e
# * <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
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
remove|deconfigure)
;;

upgrade)
remove|upgrade|deconfigure)
;;

failed-upgrade)
Expand Down

0 comments on commit b37870b

Please sign in to comment.