File: rules

package info (click to toggle)
ulogd2 2.0.4-2%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 3,296 kB
  • ctags: 2,166
  • sloc: sh: 21,857; ansic: 12,390; sql: 2,302; makefile: 957; perl: 90
file content (57 lines) | stat: -rwxr-xr-x 1,631 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
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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# Activate full hardening build flags
export DEB_BUILD_MAINT_OPTIONS := hardening=+pie,+bindnow

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

PACKAGE	= $(firstword $(shell dh_listpackages))
TMP	= $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@ --with autoreconf,systemd --parallel

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules --with-pgsql --with-mysql \
		--with-dbi --with-dbi-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--with-jansson

override_dh_auto_build:
	dh_auto_build
	( cd doc && sgml2txt ulogd.sgml && sgml2html -s 0 ulogd.sgml )

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C doc clean
	rm -f ulogd.conf

override_dh_fixperms:
	dh_fixperms
	chmod 600 $(TMP)/etc/ulogd.conf

override_dh_install:
	dh_install -X.la --fail-missing

override_dh_installdocs:
	# The ulogd transitional packages need their /usr/share/doc directories
	# handling specially in order to pick up the correct NEWS file.
	dh_installdocs -pulogd
	dh_installdocs -pulogd-mysql --link-doc=ulogd
	dh_installdocs -pulogd-pgsql --link-doc=ulogd
	dh_installdocs -pulogd-pcap --link-doc=ulogd
	dh_installdocs -pulogd-sqlite3 --link-doc=ulogd
	dh_installdocs --link-doc=$(PACKAGE)

override_dh_strip:
	dh_strip --dbg-package=$(PACKAGE)-dbg

.PHONY: override_dh_auto_configure override_dh_auto_build \
	override_dh_auto_clean override_dh_fixperms override_dh_install \
	override_dh_installdocs override_dh_strip