diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-05-09 21:46:00 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-05-09 21:46:00 +0200 |
commit | 76452cb381759957902b0879d890fb7dc700a5c6 (patch) | |
tree | fcc7759e5ae0bcfa58cd76092744dd1ddd0c8b39 | |
parent | 3c846aa4e7fdc87d0cf8f19d306364a2a458da54 (diff) | |
download | zsh-76452cb381759957902b0879d890fb7dc700a5c6.tar.gz zsh-76452cb381759957902b0879d890fb7dc700a5c6.zip |
zsh{,-dbg,-doc,-dev,-beta,-beta-doc}: .postinst + zsh-common versioned dep
Add versioned dependencies on zsh-common and add postinst scripts to
replace /usr/share/doc/zsh* directories with symlinks to
/usr/share/doc/zsh-common.
-rw-r--r-- | debian/control | 8 | ||||
-rw-r--r-- | debian/zsh-beta-doc.postinst | 28 | ||||
-rw-r--r-- | debian/zsh-beta.postinst | 28 | ||||
-rw-r--r-- | debian/zsh-dev.postinst | 28 | ||||
-rw-r--r-- | debian/zsh-doc.postinst | 28 |
5 files changed, 116 insertions, 4 deletions
diff --git a/debian/control b/debian/control index b199c14fc..9a4fd177a 100644 --- a/debian/control +++ b/debian/control @@ -29,7 +29,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/zsh.git Package: zsh Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, zsh-common +Depends: ${shlibs:Depends}, ${misc:Depends}, zsh-common (= ${source:Version}) Pre-Depends: dpkg (>= 1.15.6~) Recommends: ${shlibs:Recommends} Suggests: zsh-doc @@ -65,7 +65,7 @@ Description: architecture independent files for Zsh Package: zsh-doc Architecture: all Section: doc -Depends: ${misc:Depends} +Depends: ${misc:Depends}, zsh-common (= ${source:Version}) Pre-Depends: dpkg (>= 1.15.6~) Description: zsh documentation - info/HTML format Zsh is a UNIX command interpreter (shell) usable as an @@ -95,7 +95,7 @@ Description: shell with lots of features (static link) Package: zsh-dev Architecture: any -Depends: ${misc:Depends} +Depends: ${misc:Depends}, zsh-common (= ${source:Version}) Section: libdevel Description: shell with lots of features (development files) Zsh is a UNIX command interpreter (shell) usable as an @@ -113,7 +113,7 @@ Package: zsh-dbg Architecture: any Section: debug Priority: extra -Depends: zsh (= ${binary:Version}), ${misc:Depends} +Depends: zsh (= ${binary:Version}), ${misc:Depends}, zsh-common (= ${source:Version}) Pre-Depends: dpkg (>= 1.15.6~) Description: shell with lots of features (debugging symbols) Zsh is a UNIX command interpreter (shell) usable as an diff --git a/debian/zsh-beta-doc.postinst b/debian/zsh-beta-doc.postinst new file mode 100644 index 000000000..d3e45d4c0 --- /dev/null +++ b/debian/zsh-beta-doc.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + (configure) + : + ;; + (abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + (*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Replace documentation directory with symlink +docdir="/usr/share/doc/zsh-beta-doc" +if [ -d $docdir -a ! -L $docdir ]; then + if rmdir $docdir 2>/dev/null; then + ln -sf zsh-common $docdir + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/zsh-beta.postinst b/debian/zsh-beta.postinst new file mode 100644 index 000000000..d3799dc3c --- /dev/null +++ b/debian/zsh-beta.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + (configure) + : + ;; + (abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + (*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Replace documentation directory with symlink +docdir="/usr/share/doc/zsh-beta" +if [ -d $docdir -a ! -L $docdir ]; then + if rmdir $docdir 2>/dev/null; then + ln -sf zsh-common $docdir + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/zsh-dev.postinst b/debian/zsh-dev.postinst new file mode 100644 index 000000000..60ce48d55 --- /dev/null +++ b/debian/zsh-dev.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + (configure) + : + ;; + (abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + (*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Replace documentation directory with symlink +docdir="/usr/share/doc/zsh-dev" +if [ -d $docdir -a ! -L $docdir ]; then + if rmdir $docdir 2>/dev/null; then + ln -sf zsh-common $docdir + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/zsh-doc.postinst b/debian/zsh-doc.postinst new file mode 100644 index 000000000..df10e1e7b --- /dev/null +++ b/debian/zsh-doc.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + (configure) + : + ;; + (abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + (*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Replace documentation directory with symlink +docdir="/usr/share/doc/zsh-doc" +if [ -d $docdir -a ! -L $docdir ]; then + if rmdir $docdir 2>/dev/null; then + ln -sf zsh-common $docdir + fi +fi + +#DEBHELPER# + +exit 0 |