File: rules

package info (click to toggle)
sendpage 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 644 kB
  • ctags: 171
  • sloc: perl: 4,208; sh: 117; makefile: 51; php: 24
file content (69 lines) | stat: -rwxr-xr-x 1,762 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
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

ifndef PERL
PERL=/usr/bin/perl
endif
archlib	= `$(PERL) -e 'use Config; print $Config{installarchlib}'`
config	= 	INSTALLDIRS=vendor \
		DESTDIR=$(CURDIR)/debian/tmp


build: $(QUILT_STAMPFN) build-stamp
build-stamp:
	dh_testdir

	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE) OPTIMIZE="-O2 -g -Wall"

	touch build-stamp

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

	[ ! -e Makefile ] || $(MAKE) -i distclean

	rm -f build-stamp configure-stamp

install: build
	dh_testdir
	dh_testroot
	dh_installdirs
	$(MAKE) install  DESTDIR=$(CURDIR)/debian/tmp
	find $(shell pwd) -type f -name .packlist | xargs -r rm -f

	install -m 644 -D sendpage.cf $(CURDIR)/debian/tmp/etc/sendpage/sendpage.cf
	install -m 644 -D snpp.conf $(CURDIR)/debian/tmp/etc/sendpage/snpp.conf
	install -m 644 -D email2page.conf $(CURDIR)/debian/tmp/etc/sendpage/email2page.conf


# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_perl -i
	dh_install
	dh_installdebconf -i
	dh_installinit
	dh_installdeb
	dh_installchangelogs -p sendpage-common Changes
	dh_link -p sendpage-client usr/share/doc/sendpage-common usr/share/doc/sendpage-client
	dh_link -p sendpage-server usr/share/doc/sendpage-common usr/share/doc/sendpage-server
	dh_installdocs  -p sendpage-common
	dh_installinit -p sendpage-server debian/sendpage-server.init
	dh_installexamples -p sendpage-common sendpage.cf
	dh_fixperms -i
	dh_compress -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

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

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure clean-patched