diff options
| author | Christian Poessinger <christian@poessinger.com> | 2017-12-06 17:36:13 +0100 |
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2017-12-08 17:56:52 +0100 |
| commit | 8ac9fd188aa37e9536f42d1e796e0ae8b739d83d (patch) | |
| tree | 4df06e7cc3a6b740e4fe353c6d42e7d2defe326c /debian/rules | |
| parent | 89f049f94e9ce08b2d17808b28458ee1bf51c9d5 (diff) | |
| download | mdns-repeater-8ac9fd188aa37e9536f42d1e796e0ae8b739d83d.tar.gz mdns-repeater-8ac9fd188aa37e9536f42d1e796e0ae8b739d83d.zip | |
Add support for Debian packages
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..46e093a --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGE=mdns-repeater +PKGDIR=$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp + +build-stamp: + dh_testdir + $(MAKE) + touch $@ + +clean: clean-patched + +# Clean everything up, including everything auto-generated +# at build time that needs not to be kept around in the Debian diff +clean-patched: + dh_testdir + dh_testroot + if test -f Makefile ; then $(MAKE) clean ; fi + rm -f build-stamp + rm -f etc/default/vyatta + rm -rf config + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) install DESTDIR=$(PKGDIR) + +# Build architecture-independent files here. +binary-indep: build install + rm -f debian/files + dh_testdir + dh_testroot + dh_install + dh_installdebconf + dh_installinit + dh_compress + dh_fixperms + dh_installdeb + if [ -f "../.VYOS_DEV_BUILD" ]; then \ + dh_gencontrol -- -v999.dev; \ + else \ + dh_gencontrol; \ + fi + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# This is an architecture independent package +# so; we have nothing to do by default. + +binary: binary-indep +.PHONY: build clean binary-indep binary install |
