File: rules

package info (click to toggle)
iptotal 0.3.3-13.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,056 kB
  • ctags: 316
  • sloc: sh: 3,515; ansic: 533; perl: 92; makefile: 23
file content (16 lines) | stat: -rwxr-xr-x 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

%:
	dh $@ --with autotools_dev,apache2

override_dh_auto_configure:
	dh_auto_configure -- --datadir=/var/lib/iptotal --sysconfdir=/etc/iptotal

override_dh_auto_install:
	dh_auto_install
	mv $(CURDIR)/debian/iptotal/var/lib/iptotal/*.cgi $(CURDIR)/debian/iptotal/usr/lib/cgi-bin/iptotal
	for i in $(CURDIR)/debian/iptotal/usr/lib/cgi-bin/iptotal/*.cgi; do chmod +x $$i; done
	rm -f $(CURDIR)/debian/iptotal/var/lib/iptotal/*.gif
	rm -f $(CURDIR)/debian/iptotal/var/lib/iptotal/*.png
	rm -f $(CURDIR)/debian/iptotal/var/lib/iptotal/archive/*.png
	rm -f $(CURDIR)/debian/iptotal/var/lib/iptotal/images/*.png