3 # Made with the aid of dh_make, by Craig Small
4 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5 # Some lines taken from debmake, by Christoph Lameter.
7 # Uncomment this to turn on verbose mode.
10 DESTDIR
=`pwd`/debian
/tmp
17 # Add here commands to compile the package.
18 -autoconf
-l autoconf autoconf
/configure.in
>configure
19 SHUTDOWN
=/sbin
/shutdown CFLAGS
="-O2 -g -Wall" .
/configure
--prefix=/usr
--mandir=/usr
/share
/man
--infodir=/usr
/share
/info --enable-powerflute
--enable-cgi
--sysconfdir
=/etc
/apcupsd
--with-cgi-bin
=/usr
/lib
/cgi-bin
/apcupsd
--with-catgets
--with-pid-dir
=/var
/run
27 rm -f build-stamp install-stamp
29 # Add here commands to clean up after the build process.
34 install: install-stamp
35 install-stamp
: build-stamp
41 # Install the package into debian/tmp.
42 make
prefix=`pwd`/debian
/tmp
/usr cgibin
=`pwd`/debian
/tmp
/usr
/lib
/cgi-bin
/apcupsd sysconfdir
=`pwd`/debian
/tmp
/etc
/apcupsd sbindir
=`pwd`/debian
/tmp
/sbin
mandir=`pwd`/debian
/tmp
/usr
/share
/man
install
43 install -m
0644 -g root
-o root debian
/apcupsd.conf
`pwd`/debian
/tmp
/etc
/apcupsd
44 install -m
0755 -g root
-o root debian
/apccontrol
`pwd`/debian
/tmp
/etc
/apcupsd
48 # Build architecture-independent files here.
49 binary-indep
: build
install
50 # We have nothing to do by default.
52 # Build architecture-dependent files here.
53 binary-arch
: build
install
61 dh_installinit
--init-script
=ups-monitor
65 dh_installchangelogs ChangeLog
77 @echo
>&2 'source and diff are obsolete - use dpkg-source -b'; false
79 binary
: binary-indep binary-arch
80 .PHONY
: build
clean binary-indep binary-arch binary