1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#!/usr/bin/make -f
# $Id: rules,v 1.4 2004/07/19 19:25:14 john Exp $
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
build: build-stamp
build-stamp:
dh_testdir
po4a man/po4a.cfg
for F in `cat po/LINGUAS`; do \
msgfmt -o po/$$F.mo po/$$F.po; \
done
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
rm -f po/*.mo
po4a --rm-translations man/po4a.cfg
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_prep
dh_installdirs
install -m 700 pppconfig `pwd`/debian/pppconfig/usr/sbin
for F in `cat po/LINGUAS`; do \
mkdir -p `pwd`/debian/pppconfig/usr/share/locale/$$F/LC_MESSAGES && cp po/$$F.mo `pwd`/debian/pppconfig/usr/share/locale/$$F/LC_MESSAGES/pppconfig.mo; \
done
touch install-stamp
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installmenu --noscripts
dh_installcron --noscripts
dh_lintian
dh_installman man/*.8
dh_installchangelogs
cp 0dns-up debian/pppconfig/etc/ppp/ip-up.d/
cp 0dns-down debian/pppconfig/etc/ppp/ip-down.d/
cp dns-clean debian/pppconfig/etc/init.d/
install -d debian/pppconfig/$(deb_systemdsystemunitdir)/
install -m 0644 dns-clean.service debian/pppconfig/$(deb_systemdsystemunitdir)/
dh_installsystemd
dh_installsystemd
dh_compress
dh_fixperms
chmod 755 debian/pppconfig/etc/ppp/ip-down.d/0dns-down
chmod 755 debian/pppconfig/etc/init.d/dns-clean
chmod 755 debian/pppconfig/etc/ppp/ip-up.d/0dns-up
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
binary: binary-indep binary-arch
build-arch: build
build-indep: build
.PHONY: build build-arch build-indep clean binary-indep binary-arch binary
|