File: rules

package info (click to toggle)
e2guardian 5.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 5,460 kB
  • sloc: cpp: 26,422; sh: 682; makefile: 525; perl: 141
file content (54 lines) | stat: -rwxr-xr-x 1,602 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
#!/usr/bin/make -f

DHFLAGS=--parallel

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@  --with-systemd --without autoreconf $(DHFLAGS)

override_dh_auto_configure:
	NOCONFIGURE=1 ./autogen.sh
	dh_auto_configure $(DHFLAGS) -- \
	    --prefix=/usr \
	    --enable-clamd=yes \
	    --with-proxyuser=e2guardian \
	    --with-proxygroup=e2guardian \
	    --sysconfdir=/etc \
	    --localstatedir=/var \
	    --enable-icap=yes \
	    --enable-commandline=yes \
	    --enable-email=yes \
	    --enable-ntlm=yes \
	    --enable-sslmitm=yes \
	    --enable-pcre=yes \
	    --mandir=\$${prefix}/share/man \
	    --infodir=\$${prefix}/share/info

override_dh_missing:
	dh_missing --fail-missing

override_dh_installexamples:
	dh_installexamples
	chmod a-x debian/e2guardian/usr/share/doc/e2guardian/examples/template.html

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/e2guardian/etc/e2guardian/
	mkdir -p debian/e2guardian/usr/lib/cgi-bin/
	mv debian/e2guardian/usr/share/e2guardian/languages/ debian/e2guardian/etc/e2guardian/
	mv debian/e2guardian/usr/share/e2guardian/e2guardian.pl debian/e2guardian/usr/lib/cgi-bin/
	chmod 755 debian/e2guardian/usr/lib/cgi-bin/e2guardian.pl
	rm -rf debian/e2guardian/usr/share/e2guardian/scripts/
	rm -f debian/e2guardian/etc/e2guardian/logrotation

override_dh_installinit:
	dh_installinit --error-handler=init_failed

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..