File: rules

package info (click to toggle)
imap 4.5-0slink2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,376 kB
  • ctags: 4,844
  • sloc: ansic: 53,832; makefile: 887; sh: 78
file content (52 lines) | stat: -rwxr-xr-x 1,538 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
#!/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.

build:
	dh_testdir	
	make slx
	touch build

clean:
	dh_testdir
#	dh_testroot
	-rm -f build
	-make clean
	-rm -f `find . -name "*~"`
	-rm -rf debian/imap debian/ipop debian/c-client-dev debian/files* core debian/substvars
	dh_clean

binary-indep:	build
	dh_testdir
	dh_testroot
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary binary-arch:	build
	dh_testdir
#	dh_testroot
	dh_clean
	dh_installdirs
	dh_installdocs
	dh_installchangelogs
	install imapd/imapd -o root -g mail -m 2755 debian/tmp/usr/sbin/imapd
	install ipopd/ipop2d -o root -g mail -m 2755 debian/ipopd/usr/sbin/ipop2d
	install ipopd/ipop3d -o root -g mail -m 2755 debian/ipopd/usr/sbin/ipop3d
	install c-client/c-client.a -o root -g root -m 0644 debian/c-client-dev/usr/lib/c-client.a
	install c-client/*.h -o root -g root -m 0644 debian/c-client-dev/usr/include/c-client
	(cd debian/ipopd/usr/man/man8 && ln -s ipopd.8c.gz ipop2d.8c.gz)
	(cd debian/ipopd/usr/man/man8 && ln -s ipopd.8c.gz ipop3d.8c.gz)
	dh_installmanpages --package=imap ipopd.8c
	dh_installmanpages --package=ipopd imapd.8c
	dh_strip
	dh_compress
	dh_fixperms --exclude=/usr/sbin/imapd --exclude=/usr/sbin/ipop2d --exclude=/usr/sbin/ipop3d
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


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