summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--Makefile5
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control27
-rw-r--r--debian/copyright16
-rwxr-xr-xdebian/rules68
7 files changed, 127 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index cea2d46..a6ba956 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,8 @@
*.o
_version
mdns-repeater
-mdns-repeater-*.zip
+mdns-repeater-*.zip
+build-stamp
+
+debian/files
+debian/mdns-repeater.*
diff --git a/Makefile b/Makefile
index 7d57abf..2d166fa 100644
--- a/Makefile
+++ b/Makefile
@@ -47,4 +47,9 @@ clean:
-$(RM) _version
-$(RM) mdns-repeater
-$(RM) mdns-repeater-*.zip
+ -$(RM) build-stamp
+ -$(RM) -rf debian/mdns-repeater
+install:
+ install -d $(DESTDIR)/usr/sbin
+ install -m 0755 mdns-repeater $(DESTDIR)/usr/sbin
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..831867b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mdns-repeater (0.1+vyos2+current0) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Christian Poessinger <christian@poessinger.com> Wed, 06 Dec 2017 17:30:08 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6606218
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: mdns-repeater
+Section: net
+Priority: optional
+Maintainer: Christian Poessinger <christian@poessinger.com>
+Build-Depends: debhelper (>= 5),
+ pkg-config,
+ dh-systemd (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: http://github.com/c-po/mdns-repeater
+Homepage: http://github.com/c-po/mdns-repeater
+
+Package: mdns-repeater
+Architecture: linux-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Multicast DNS repeater
+ mdns-repeater is a Multicast DNS repeater for Linux. Multicast DNS
+ uses the 224.0.0.51 address, which is "administratively scoped" and does not
+ leave the subnet.
+ .
+ mdns-repeater provides a "keep it simple, stupid" solution to discovering mDNS
+ services across subnets, and is primarily intended for router distributions and
+ software firewalls.
+ .
+ Since the mDNS protocol sends the AA records in the packet itself, the repeater
+ does not need to forge the source address. Instead, the source address is of
+ the interface that repeats the packet.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f95cb53
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Copyright (C) 2011 Darell Tan
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
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