File: rules

package info (click to toggle)
flowscan 1.006-13.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 732 kB
  • ctags: 185
  • sloc: sh: 1,670; perl: 1,518; makefile: 148
file content (86 lines) | stat: -rwxr-xr-x 3,271 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/make -f
#
# GNU Copyright (C) 2003-2005 by Anibal Monsalve Salazar <anibal@debian.org>
#

CF = "-g -Wall -D_REENTRANT -fPIC"

TMP     =$(CURDIR)/debian/$(PACKAGE)

binary: binary-arch binary-indep

binary-arch:

binary-indep: build
	$(checkdir)
	rm -rf debian/tmp
	install -d -m 755 debian/tmp/DEBIAN

	install -d -m 755 debian/tmp/usr/bin 
	install -d -m 755 debian/tmp/etc/flowscan
	install -d -m 755 debian/tmp/usr/share/perl5 
	install -d -m 755 debian/tmp/DEBIAN
	install -p -m 644 *.pm debian/tmp/usr/share/perl5
	install -p -m 755 flowscan util/locker util/add_ds.pl util/add_txrx util/event2vrule util/ip2hostname debian/tmp/usr/bin

	install -d -m 755 debian/tmp/usr/share/man/man1
	install -p -m 644 man/*.1 debian/tmp/usr/share/man/man1
	gzip -9 debian/tmp/usr/share/man/man1/*.1

	install -d -m 755 debian/tmp/usr/share/doc/flowscan
	install -p -m 644 Changes debian/tmp/usr/share/doc/flowscan/changelog
	install -p -m 644 CampusIO.README  README  SubNetIO.README TODO VERSION debian/tmp/usr/share/doc/flowscan
	install -p -m 644 INSTALL debian/tmp/usr/share/doc/flowscan/UserManual
	install -p -m 644 debian/changelog debian/tmp/usr/share/doc/flowscan/changelog.Debian
	install -p -m 644 debian/README.Debian debian/tmp/usr/share/doc/flowscan
	gzip -9 debian/tmp/usr/share/doc/flowscan/*
	install -d -m 755 debian/tmp/usr/share/doc/flowscan/html
	install -d -m 755 debian/tmp/usr/share/doc/flowscan/pod
	install -p -m 644 CampusIO.html README.html SubNetIO.html debian/tmp/usr/share/doc/flowscan/html
	install -p -m 644 INSTALL.html debian/tmp/usr/share/doc/flowscan/html/UserManual.html
	install -p -m 644 README.pod debian/tmp/usr/share/doc/flowscan/pod
	install -p -m 644 INSTALL.pod debian/tmp/usr/share/doc/flowscan/pod/UserManual.pod
	install -p -m 644 debian/copyright debian/tmp/usr/share/doc/flowscan
	install -d -m 755 debian/tmp/usr/share/doc/flowscan/examples/cf
	install -d -m 755 debian/tmp/usr/share/doc/flowscan/examples/rc
	install -p -m 644 graphs.mf example/events.txt debian/tmp/usr/share/doc/flowscan/examples
	install -p -m 644 cf/* debian/tmp/etc/flowscan
	install -p -m 644 cf/* debian/tmp/usr/share/doc/flowscan/examples/cf
	install -p -m 644 rc/linux/* debian/tmp/usr/share/doc/flowscan/examples/rc
	gzip -r9 debian/tmp/usr/share/doc/flowscan/examples/*

	install -p -m 644 debian/conffiles debian/tmp/DEBIAN
#	install -p -m 755 debian/config debian/preinst debian/tmp/DEBIAN
#	po2debconf debian/templates > debian/tmp/DEBIAN/templates

	# lintian overrides...
	mkdir -p debian/tmp/usr/share/lintian/overrides/
	install -m 644 debian/lintian-overrides debian/tmp/usr/share/lintian/overrides/flowscan

	dpkg-shlibdeps debian/tmp/usr/bin/*
	dpkg-gencontrol -isp
	dpkg --build debian/tmp ..

build:
	$(checkdir)
	cp -p /usr/share/misc/config.guess /usr/share/misc/config.sub .
	./configure --prefix=/usr
	$(MAKE)
	touch build

clean:
	$(checkdir)
	[ ! -f Makefile ] || $(MAKE) realclean
	rm -f config.guess config.sub config.log util/locker util/add_ds.pl util/add_txrx util/event2vrule util/ip2hostname example/crontab*
	rm -f debian/files debian/substvars
	rm -fr debian/tmp

define checkdir
	test -f debian/rules
endef

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep build clean