File: rules

package info (click to toggle)
openbgpd 8.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,148 kB
  • sloc: ansic: 51,026; sh: 11,743; yacc: 5,511; makefile: 323
file content (32 lines) | stat: -rwxr-xr-x 869 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all future=+lfs

D := $(CURDIR)/debian/openbgpd

%:
	dh $@

# explicitly delete the generated files contained in the upstream source
# (that are also deleted by make distclean) to be sure that they will be
# regenerated the first time that the package is built
execute_after_dh_clean:
	rm -f \
		$(shell find . -name '*.m4') \
		$(shell find . -name Makefile.in) \
		configure ltmain.sh \
		src/bgpd/parse.c

override_dh_auto_configure:
	dh_auto_configure -- \
		--runstatedir=/run/openbgpd \
		--with-wwwrunstatedir=/run \
		--with-www-user=www-data \
		--with-privsep-user=_openbgpd

# do not install a default configuration, since no sensible one is possible
execute_after_dh_auto_install:
	rm -rf $D/etc/ $D/run/

execute_after_dh_installsystemd:
	dh_installsystemd --name=bgplgd --no-start --no-enable