File: rules

package info (click to toggle)
ndisc6 0.7.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 664 kB
  • ctags: 179
  • sloc: ansic: 2,407; sh: 865; makefile: 115; perl: 37
file content (25 lines) | stat: -rwxr-xr-x 921 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_AC_AUX_DIR = $(DEB_SRCDIR)/admin
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs -Wl,--as-needed"
#DEB_CONFIGURE_EXTRA_FLAGS = --disable-suid-install

binary-post-install/ndisc6::
	find debian/ndisc6/ '(' -name 'addrinfo*' -o -name 'nameinfo*' ')' -delete
ifeq (,$(findstring --disable-suid-install,$(DEB_CONFIGURE_EXTRA_FLAGS)))
	mkdir -p debian/ndisc6/usr/share/lintian/overrides/
	touch debian/ndisc6/usr/share/lintian/overrides/ndisc6
	mkdir -p debian/ndisc6/usr/share/linda/overrides/
	cp debian/ndisc6.linda \
		debian/ndisc6/usr/share/linda/overrides/ndisc6

binary-fixup/ndisc6::
	for b in ndisc6 rdisc6 rltraceroute6; do \
		chmod u+s debian/ndisc6/usr/bin/$$b ; \
		echo "ndisc6: setuid-binary usr/bin/$$b 4755 root/root" \
			>> debian/ndisc6/usr/share/lintian/overrides/ndisc6 ; \
	done
endif