File: rules

package info (click to toggle)
nikto 2.02-1
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 1,336 kB
  • ctags: 179
  • sloc: perl: 4,450; makefile: 38; sh: 26
file content (55 lines) | stat: -rwxr-xr-x 1,163 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
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

INSTALLB :=     install -o0 -g0 -m 0755
INSTALLF :=     install -o0 -g0 -m 0644
INSTALLD :=     install -o0 -g0 -d

TARGET :=	debian/nikto

include /usr/share/dpatch/dpatch.make

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	dh_clean

build: patch

install:
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs

	$(INSTALLF) config.txt $(TARGET)/etc/nikto/
	$(INSTALLF) plugins/* $(TARGET)/var/lib/nikto/plugins/
	$(INSTALLF) docs/CHANGES.txt $(TARGET)/var/lib/nikto/plugins/
	$(INSTALLB) nikto.pl $(TARGET)/usr/bin/nikto

	# We depends on libwhisker2-perl so we don't need to ship this one
	-rm -f $(TARGET)/var/lib/nikto/plugins/LW2.pm

	# Uncomment this to remove non-free stuff
	# rm $(TARGET)/var/lib/nikto/plugins/db_*

binary-arch: binary-indep

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installman debian/nikto.1
	dh_installchangelogs docs/CHANGES.txt
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: clean clean-unpatch binary-arch binary-indep binary install patch unpatch