Override xedit bin and man page (from x11-apps)

This commit is contained in:
Clement Lefebvre 2016-01-25 15:24:14 +00:00
parent 4304f9ffc1
commit 2f80dabbe6
2 changed files with 22 additions and 0 deletions

10
debian/xedit.postrm vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
dpkg-divert --package xedit --remove --rename --divert /usr/bin/x11edit /usr/bin/xedit
dpkg-divert --package xedit --remove --rename --divert /usr/share/man/man1/x11edit.1.gz /usr/share/man/man1/xedit.1.gz
fi
exit 0

12
debian/xedit.preinst vendored Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
case "$1" in
install|upgrade)
dpkg-divert --package xedit --add --rename --divert /usr/bin/x11edit /usr/bin/xedit
dpkg-divert --package xedit --add --rename --divert /usr/share/man/man1/x11edit.1.gz /usr/share/man/man1/xedit.1.gz
;;
esac
exit 0