5 dh_installifupdown - install if-up and if-down hooks
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installifupdown> [S<I<debhelper options>>] [B<--name=>I<name>]
18 B<dh_installifupdown> is a debhelper program that is responsible for installing
19 F<if-up>, F<if-down>, F<if-pre-up>, and F<if-post-down> hook scripts into package build
26 =item debian/I<package>.if-up
28 =item debian/I<package>.if-down
30 =item debian/I<package>.if-pre-up
32 =item debian/I<package>.if-post-down
34 These files are installed into etc/network/if-*.d/I<package> in
35 the package build directory.
43 =item B<--name=>I<name>
45 Look for files named F<debian/package.name.if-*> and install them as
46 F<etc/network/if-*/name>, instead of using the usual files and installing them
55 foreach my $package (@{$dh{DOPACKAGES}}) {
56 my $tmp=tmpdir($package);
58 foreach my $script (qw(pre-up up down post-down)) {
59 my $file=pkgfile($package, "if-$script");
61 if (! -d "$tmp/etc/network/if-$script.d") {
62 doit("install","-d","$tmp/etc/network/if-$script.d");
64 doit("install","-p","-m755",$file,"$tmp/etc/network/if-$script.d/".pkgfilename($package));
73 This program is a part of debhelper.
77 Joey Hess <joeyh@debian.org>