diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5f5561d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +symbiosis-dns-mythic (0.1) stable; urgency=medium + + * Initial release. + + -- Ben Charlton Sun, 14 Apr 2019 10:36:43 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7e7baf1 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: symbiosis-dns-mythic +Section: net +Priority: extra +Maintainer: Ben Charlton +Uploaders: Ben Charlton +Build-Depends: debhelper (>= 7.0.0), txt2man +Standards-Version: 3.9.6 + +Package: symbiosis-dns-mythic +Architecture: all +Depends: perl, symbiosis-common (>= 2014:0113), ${misc:Depends} +Replaces: symbiosis-tinydns +Conflicts: symbiosis-tinydns, symbiosis-dns +Provides: symbiosis-tinydns +Description: Automatic DNS record creation and uploading for Mythic Beasts customers + . + The generated DNS files will be automatically uploaded to the Mythic Beasts + DNS service, where they will be visible and may be queried directly + via: + . + * ns1.mythic-beasts.com + * ns2.mythic-beasts.com diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..503ceef --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Symbiosis +Source: https://github.com/bcc/symbiosis-dns-mythic + + +Files: * +Copyright: 2008-2017, Bytemark Ltd, 2019, Ben Charlton +License: GPL-2+ + 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 package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. + diff --git a/debian/debhelper-build-stamp b/debian/debhelper-build-stamp new file mode 100644 index 0000000..6fe6fb3 --- /dev/null +++ b/debian/debhelper-build-stamp @@ -0,0 +1 @@ +symbiosis-dns-mythic diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..cb51ac9 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +symbiosis-dns-mythic_0.1_all.deb net extra +symbiosis-dns-mythic_0.1_amd64.buildinfo net extra diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..765f869 --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +sbin usr/ +dns.d etc/symbiosis/ +lib/symbiosis usr/lib/ruby/vendor_ruby/ diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..419f813 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +#man/symbiosis-dns-generate.man diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c68a294 --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/symbiosis-dns-mythic.cron.d b/debian/symbiosis-dns-mythic.cron.d new file mode 100644 index 0000000..743cb69 --- /dev/null +++ b/debian/symbiosis-dns-mythic.cron.d @@ -0,0 +1,6 @@ +SHELL=/bin/bash + +# +# Run four times per-hour and upload if changed +# +07,24,37,54 * * * * root [ -x /usr/sbin/symbiosis-dns-generate ] && /usr/sbin/symbiosis-dns-generate diff --git a/make-dist b/make-dist new file mode 100755 index 0000000..9354419 --- /dev/null +++ b/make-dist @@ -0,0 +1,13 @@ +#!/bin/sh -e + +NAME=symbiosis-dns-mythic +VERSION=$(sed 's/.*(\([^)]*\)).*/\1/;1q' debian/changelog) + +n="$NAME-$VERSION" +t="$n.tar.gz" +cd .. +rm -f $t +ln -s ${NAME} $n +tar cfzh $t $n +rm $n +cd ${NAME}