File: rules

package info (click to toggle)
tcpwatch-httpproxy 1.3b-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 60 kB
  • ctags: 7
  • sloc: makefile: 33
file content (58 lines) | stat: -rwxr-xr-x 1,300 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
56
57
58
#!/usr/bin/make -f


PACKAGE=tcpwatch-httpproxy

export DH_VERBOSE=1

UPSTREAM_TARBALL=tcpwatch-1.3.tar.gz
DEB_TARBALL=tcpwatch-httpproxy-1.3.orig.tar.gz
UPSTREAM_DIR=tcpwatch


BUILD_DIR=build-tree
I_DIR=debian/$(PACKAGE)/usr

clean:
	echo -n "I'm in "; pwd
	rm -fr $(BUILD_DIR)
	dh_clean unpack-stamp




build: clean unpack
	install -m 755 $(BUILD_DIR)/$(UPSTREAM_DIR)/tcpwatch.py $(I_DIR)/bin/tcpwatch-httpproxy
	install -m 644 $(BUILD_DIR)/$(UPSTREAM_DIR)/CHANGES.txt $(I_DIR)/share/doc/$(PACKAGE)/changelog
	install -m 644 debian/copyright $(I_DIR)/share/doc/$(PACKAGE)
	#install -m 644 debian/changelog $(I_DIR)/share/doc/$(PACKAGE)/changelog.Debian
	# gzip -9 $(I_DIR)/share/doc/$(PACKAGE)/changelog $(I_DIR)/share/doc/$(PACKAGE)/changelog.Debian
	gzip -9 $(I_DIR)/share/doc/$(PACKAGE)/changelog
	dh_installman debian/*.1

unpack: unpack-stamp
	install -m 755 -d $(BUILD_DIR) $(I_DIR)/bin $(I_DIR)/share/doc/$(PACKAGE) $(I_DIR)/share/man
	tar xzf $(UPSTREAM_TARBALL) -C $(BUILD_DIR)


#rename-it:
#	cp -a $(DEB_SRCDIR)/$(UPSTREAM_TARBALL) ../tcpwatch-httpproxy_1.3.orig.tar.gz


unpack-stamp:
	touch $@

binary-arch: binary-indep

binary-indep: binary

binary:
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: build clean binary