summaryrefslogtreecommitdiffstats
path: root/dvswitch-avahi/debian/rules
blob: d875c68111a6f25b9bc601357de49f5597d2e0b8 (plain)
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
#!/usr/bin/make -f

export LC_ALL=C

package=dvswitch-avahi

debdir=$(shell pwd)/debian
DESTDIR=${debdir}/tmp

build: build-stamp
build-stamp:
	dh_testdir
	make
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	make clean
	dh_clean

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

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs

	make install DESTDIR=${DESTDIR}
	dh_install --sourcedir=${DESTDIR}

	dh_installdocs
	dh_installchangelogs

	dh_installinit -pdvswitch-avahi --no-start -u"start 18 2 3 4 5 . stop 82 1 ."
	dh_installinit -pdvsource-avahi --no-start -u"start 20 2 3 4 5 . stop 80 1 ."

	dh_perl
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really
binary:		binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean