File: rules

package info (click to toggle)
pdnsd 1.2.9a-par-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,776 kB
  • ctags: 1,843
  • sloc: ansic: 16,471; sh: 1,312; perl: 566; makefile: 167
file content (37 lines) | stat: -rwxr-xr-x 1,067 bytes parent folder | download
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
#!/usr/bin/make -f

CPPFLAGS+=-DDEBIAN
build_target:=$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS|sed -e s/kfree//)

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	$(MAKE) -C doc -f doc_makefile
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
	       --prefix=/usr \
	       --sysconfdir=/etc \
	       --with-target=$(build_target)  \
	       --with-cachedir=/var/cache/pdnsd \
	       --enable-ipv6 \
	       --enable-new-rrs \
	       --enable-isdn \
	       --enable-tcp-queries

override_dh_auto_install:
	dh_auto_install
	$(RM) -rv \
            debian/pdnsd/var/cache/pdnsd/pdnsd.cache \
            debian/pdnsd/etc/pdnsd.conf.sample
	install -m 755 debian/resolvconf debian/pdnsd/etc/resolvconf/update.d/pdnsd
	install -m 755 debian/002_NetMan_pdnsd debian/pdnsd/etc/NetworkManager/dispatcher.d/
	install -m 644 debian/pdnsd.insserv debian/pdnsd/etc/insserv.conf.d/pdnsd

override_dh_installinit:
	dh_installinit -- start 20 2 3 4 5 . stop 80 0 1 6 .
	
override_dh_installchangelogs:
	dh_installchangelogs ChangeLog Changelog.old