| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. |
| 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
#export DH_VERBOSE=1 |
| 7 |
|
| 8 |
build: build-stamp |
| 9 |
build-stamp: |
| 10 |
dh_testdir |
| 11 |
|
| 12 |
|
| 13 |
# Add here commands to compile the package. |
| 14 |
#$(MAKE) |
| 15 |
|
| 16 |
touch build-stamp |
| 17 |
|
| 18 |
clean: |
| 19 |
dh_testdir |
| 20 |
dh_testroot |
| 21 |
rm -f build-stamp |
| 22 |
-rm -rf debian/.debhelper |
| 23 |
|
| 24 |
# Add here commands to clean up after the build process. |
| 25 |
# -$(MAKE) clean |
| 26 |
|
| 27 |
dh_clean |
| 28 |
|
| 29 |
install: build |
| 30 |
dh_testdir |
| 31 |
dh_testroot |
| 32 |
dh_prep |
| 33 |
dh_installdirs |
| 34 |
|
| 35 |
# Add here commands to install the package into debian/<package>. |
| 36 |
$(MAKE) install DESTDIR=`pwd`/debian/netscript-2.4 SBINDIR='$$(DESTDIR)/usr/sbin' UDEVLIBDIR='$$(DESTDIR)/usr/lib/udev' |
| 37 |
$(MAKE) install-ipfilter DESTDIR=`pwd`/debian/netscript-ipfilter SBINDIR='$$(DESTDIR)/usr/sbin' UDEVLIBDIR='$$(DESTDIR)/usr/lib/udev' |
| 38 |
|
| 39 |
|
| 40 |
# Build architecture-independent files here. |
| 41 |
binary-indep: DH_OPTIONS=-i |
| 42 |
binary-indep: DESTDIR=`pwd`/debian/netscript-2.4 |
| 43 |
binary-indep: build install |
| 44 |
dh_testdir |
| 45 |
dh_testroot |
| 46 |
# dh_installdebconf |
| 47 |
dh_installdocs --all |
| 48 |
# dh_installexamples |
| 49 |
dh_systemd_enable --package=netscript-2.4 --name=netscript |
| 50 |
dh_systemd_enable --package=netscript-2.4 --name=netscript\@ --no-enable |
| 51 |
dh_systemd_enable --package=netscript-ipfilter --name=netscript |
| 52 |
dh_installinit --package=netscript-2.4 --name=netscript --no-start -- start 35 0 6 . start 40 S . |
| 53 |
dh_installinit --package=netscript-ipfilter --name=netscript --no-start -- start 35 0 6 . start 40 S . |
| 54 |
dh_installudev --package=netscript-2.4 --name=netscript --priority=85 |
| 55 |
dh_installman |
| 56 |
# Fix insserv $network issues |
| 57 |
install -d debian/netscript-2.4/etc/insserv.conf.d |
| 58 |
install -m 00644 debian/netscript-2.4.insserv debian/netscript-2.4/etc/insserv.conf.d/netscript |
| 59 |
dh_lintian |
| 60 |
dh_installchangelogs |
| 61 |
dh_link |
| 62 |
dh_compress |
| 63 |
dh_fixperms |
| 64 |
dh_installdeb |
| 65 |
dh_gencontrol |
| 66 |
dh_md5sums |
| 67 |
dh_builddeb |
| 68 |
|
| 69 |
# Build architecture-dependent files here. |
| 70 |
binary-arch: build install |
| 71 |
# package is a bunch of shell scripts |
| 72 |
|
| 73 |
binary: binary-indep binary-arch |
| 74 |
build-arch: |
| 75 |
true |
| 76 |
build-indep: |
| 77 |
true |
| 78 |
.PHONY: build clean binary-indep binary-arch binary install |