mirror of
https://salsa.debian.org/games-team/bsdgames
synced 2025-02-02 15:07:16 -05:00
Use maintainer scripts to set ‘adventure’ Debian alternatives.
This commit is contained in:
parent
0987c534ad
commit
19a74bfe83
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -5,6 +5,8 @@ bsdgames (2.17-24) UNRELEASED; urgency=medium
|
||||
* adventure:
|
||||
- Declare “Provides: adventure” as this is one possible implementation
|
||||
of the Colossal Cave Adventure.
|
||||
- Use Debian alternatives system to present ‘bsdgames-adventure’ as an
|
||||
implementation of ‘adventure’.
|
||||
|
||||
--
|
||||
|
||||
|
13
debian/postinst
vendored
13
debian/postinst
vendored
@ -71,9 +71,20 @@ chmod 664 $SCOREFILES
|
||||
# in them.
|
||||
chmod 660 /var/games/bsdgames/phantasia/characs
|
||||
|
||||
ADVENTURE_PRIORITY=50
|
||||
|
||||
case "$action" in
|
||||
|
||||
configure|abort-upgrade|abort-remove|abort-deconfigure)
|
||||
configure)
|
||||
update-alternatives --install \
|
||||
/usr/games/adventure adventure \
|
||||
/usr/games/bsdgames-adventure $ADVENTURE_PRIORITY \
|
||||
--slave \
|
||||
/usr/share/man/man6/adventure.6.gz adventure.6.gz \
|
||||
/usr/share/man/man6/bsdgames-adventure.6.gz
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
|
7
debian/prerm
vendored
7
debian/prerm
vendored
@ -21,7 +21,12 @@ action="$1"
|
||||
|
||||
case "$action" in
|
||||
|
||||
remove|deconfigure|upgrade|failed-upgrade)
|
||||
remove|deconfigure)
|
||||
update-alternatives --remove \
|
||||
adventure /usr/games/bsdgames-adventure
|
||||
;;
|
||||
|
||||
upgrade|failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user