Commit 4ab1930e authored by Colin Watson's avatar Colin Watson

Use dh_installdeb's maintscript support rather than writing it into

maintainer scripts by hand.  We now just pre-depend on a sufficient
version of dpkg rather than using 'dpkg-maintscript-helper supports
rm_conffile' guards.
parent 5e78085a
pcmciautils (018-5) UNRELEASED; urgency=low
* Use dh_installdeb's maintscript support rather than writing it into
maintainer scripts by hand. We now just pre-depend on a sufficient
version of dpkg rather than using 'dpkg-maintscript-helper supports
rm_conffile' guards.
-- Colin Watson <cjwatson@debian.org> Sat, 11 Feb 2012 14:18:39 +0000
pcmciautils (018-4) unstable; urgency=low
* Add cross-compiling support.
......
......@@ -5,11 +5,12 @@ Maintainer: Colin Watson <cjwatson@debian.org>
Uploaders: Per Olofsson <pelle@debian.org>
Standards-Version: 3.9.2
Vcs-Bzr: http://anonscm.debian.org/bzr/pkg-pcmciautils/debian
Build-Depends: debhelper (>= 7.0.50~), flex, bison
Build-Depends: debhelper (>= 8.1.0~), flex, bison
Homepage: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
Package: pcmciautils
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: udev
Suggests: wireless-tools
......
rm_conffile /etc/udev/pcmcia.rules 015-1+b100
rm_conffile /etc/init.d/pcmciautils 015-1+b100
#! /bin/sh
set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
# Insert debhelper fragments before calling 'update-rc.d pcmciautils
# remove', since that will fail if the init script has not yet been removed.
#DEBHELPER#
case $1 in
configure)
......@@ -25,5 +23,3 @@ case $1 in
fi
;;
esac
#DEBHELPER#
#! /bin/sh
set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
case $1 in
purge)
rm -f /etc/default/pcmciautils
......
#! /bin/sh
set -e
if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile \
/etc/udev/pcmcia.rules 015-1+b100 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/init.d/pcmciautils 015-1+b100 -- "$@"
fi
#DEBHELPER#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment