summaryrefslogtreecommitdiffstats
path: root/dvswitch-avahi/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'dvswitch-avahi/debian/rules')
-rwxr-xr-xdvswitch-avahi/debian/rules53
1 files changed, 53 insertions, 0 deletions
diff --git a/dvswitch-avahi/debian/rules b/dvswitch-avahi/debian/rules
new file mode 100755
index 0000000..d0feffa
--- /dev/null
+++ b/dvswitch-avahi/debian/rules
@@ -0,0 +1,53 @@
+#!/usr/bin/make -f
+
+export LC_ALL=C
+
+package=dvswitch-avahi
+
+debdir=$(shell pwd)/debian
+DESTDIR=${debdir}/$(package)
+
+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}
+ mkdir -p $(DESTDIR)/etc/apache/conf.d
+ dh_install --sourcedir=${DESTDIR}
+
+ dh_installdocs
+ dh_installchangelogs
+
+ 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