File: rules

package info (click to toggle)
socks4-server 4.3.beta2-20
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 399; sh: 52
file content (90 lines) | stat: -rwxr-xr-x 2,546 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
87
88
89
90
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

package=socks4

build: build-stamp
build-stamp:
	dh_testdir

	make

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-rm -f build-stamp install-stamp
	make clean
	-rm -f `find . -name "*~"`
	-rm -rf debian/socks4-server debian/libsocks4 debian/socks4-clients `find debian/* -type d` debian/files* core
	-rm -f debian/*substvars
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_installdirs
#server install
	make install.server install.mkfc DESTDIR=`pwd`/debian/socks4-server
	install -m 755 sockd/rsockd `pwd`/debian/socks4-server/usr/sbin/
	install -m 644 debian/sockd.conf `pwd`/debian/socks4-server/etc/
	install -m 644 debian/sockd.route `pwd`/debian/socks4-server/etc/
#client install
	make install.clients DESTDIR=`pwd`/debian/socks4-server
	install -m 644 debian/socks.conf `pwd`/debian/socks4-server/etc/
	cd debian/socks4-clients/usr/share/man/man1 && ln -s ../man7/undocumented.7.gz runsocks.1.gz
#libs install
	make install.lib DESTDIR=`pwd`/debian/socks4-server
	install -m 644 lib/libsocks.so.4.3 `pwd`/debian/socks4-server/usr/lib/
	ln -s libsocks.so.4.3 debian/socks4-server/usr/lib/libsocks.so.4
	ln -s libsocks.so.4.3 debian/socks4-server/usr/lib/libsocks.so
	make install.man DESTDIR=`pwd`/debian/socks4-server

	touch install-stamp

# Build architecture-independent files here.
binary-indep:	build install
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

# Build architecture-dependent files here.
binary-arch:	build install
#	dh_testversion
	dh_testdir
	dh_testroot

	dh_movefiles --sourcedir=debian/socks4-server
	rmdir debian/socks4-server/usr/bin
	rmdir debian/socks4-server/usr/share/man/man1
	rmdir debian/socks4-server/usr/lib/socks4
	rmdir debian/socks4-server/usr/lib
	install -m 644 debian/libsocks4.lintian debian/libsocks4/usr/share/lintian/overrides/libsocks4
	dh_installchangelogs CHANGES
	dh_installdocs runsocks/README.runsocks
	dh_installexamples
	dh_installmenu
#	dh_installemacsen
#	dh_installinit
	dh_installcron
	dh_installman
#	dh_undocumented
	dh_strip
	dh_link
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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