summaryrefslogtreecommitdiff
path: root/net-dns/mydns
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/mydns')
-rw-r--r--net-dns/mydns/Manifest9
-rw-r--r--net-dns/mydns/files/mydns-1.2.8.27-m4.patch53
-rw-r--r--net-dns/mydns/files/mydns-1.2.8.31-texinfo.patch30
-rw-r--r--net-dns/mydns/files/mydns.confd4
-rw-r--r--net-dns/mydns/files/mydns.initd35
-rw-r--r--net-dns/mydns/metadata.xml12
-rw-r--r--net-dns/mydns/mydns-1.2.8.31-r1.ebuild84
7 files changed, 227 insertions, 0 deletions
diff --git a/net-dns/mydns/Manifest b/net-dns/mydns/Manifest
new file mode 100644
index 000000000000..62ca6be47d67
--- /dev/null
+++ b/net-dns/mydns/Manifest
@@ -0,0 +1,9 @@
+AUX mydns-1.2.8.27-m4.patch 1983 SHA256 ebd6a22d9af6c6fd734b0756583b116755935f4f1c6a1bd6b10dc685521cbc13 SHA512 0111a517bbeec7101bccf9cda54dc15e46952e156f3a27b9305e0a92d8aeda58756dd4fae568cc5695c2bda25e9232012e117dd52178f1f39992fb4be75167ea WHIRLPOOL c7a8d3c93758346e88bd19be27a6aebbf62a51ae5451325afa56c1e1561a88789d075a4cd3b24cd25bed28eb11bd6e2a9eefb8d221a7834e89a272a57f245d84
+AUX mydns-1.2.8.31-texinfo.patch 923 SHA256 3ab74a5406786b6b851875ca219598972023dfb4a1d32b14d31a823ad7e14dbc SHA512 a6539e9bf7c87425c9ae6c598edd6460e24c46a13de64b4eb08358a3127cc21bd78bdbf6dcb071795b76262d8944d79daa18e3729dbafaea94067b4c4061d915 WHIRLPOOL 2dd482a0345c6d55d029ec857ad6bfffb08ecc7a09fcfe290c3d603ef4340bef3afe87a0e6fa97e1aa836eebfdce746c4a1c0ababec8f5d2c67e2cb26cf1a9a4
+AUX mydns.confd 84 SHA256 3a8228a51851bf0ecd08a9db9102a09c2acf40c50700b3cf7faf9b0af018551c SHA512 7fd98de31583d0556734b7313afa257b9f73f4d74611ce03dd44f2d7e833ec4f95b4bf84dab627d59da18f89f7dc1d9eb6d840a90b16556b4e1d97439944452a WHIRLPOOL c4a4350bf8f00dd54bdeea037fff9b3117d8725567d896d8fa05b51cbdced66abd22f3f1a33fa69c091ed432e6785d2b7e0e8883e46f3660842464cceca24f02
+AUX mydns.initd 850 SHA256 efaab3ed8b2976361db2c1f5500b0ab32d4e7e1522b38dfcc696498f60ef68e0 SHA512 919a7022a350b121c8c0eed962d7a7233dc41f2e4cfda1185d642114719a533cff580367b9302b24e8c9d377c2ccb9b02ad45d638d5b483b7c101405cb9ba1be WHIRLPOOL 7f07c094ddaff45442bab6d4a7327bf4d5329f7d447f981076c34b97d78187f6bc7818393cd9c5a50e36405af80e72af6c5d2082d451ffa0559ab9446fefb632
+DIST mydns-1.2.8.31.tar.gz 958701 SHA256 cb10de11ccd948d3b86296c03c6fb692489945d58b0aaee5d17be083f3263629 SHA512 471dfed9b4f38b446fd5896939faa4c58f4e1b3a3e6928fa84eddf769eba8f3406ef08c77ab39ee79d2ac85c1e72a499b283c7404a0cae9830ffe0faee9e2737 WHIRLPOOL 615e8e129b4d3d7b426b58446f9fef7aaf78d025d1454ba46266d15030dff4a223a033bf6bbc4e6401159a99e1b2eae3d60b6bd76378a3d9e86e2dfd1d06e84f
+EBUILD mydns-1.2.8.31-r1.ebuild 2066 SHA256 ba4cdf4f3788c279deef1f7edfe34f8f03fc5ac90ef17caa6c69c06f10fa3f56 SHA512 007e14a8d4616530576173ef53a3e9e6588be18ed132965b265e88cf40874f465e9f391be19cc16d638823a88421718741028c160eb1f047106cc69571509a29 WHIRLPOOL f2b5ce541557823a3cd0c5253557fcefe0bb32efe2d67106ada974d264972fa565232c5cc288bf6e0ba475c73c26ea2e56f8f2460134d6f5e9b35a94564fd5d6
+MISC ChangeLog 3600 SHA256 7b47fe1bff8acd6c2b7f4b282bd27eea83f7ff11bc72d0c62d7c26305d75ef2a SHA512 1ab874763054f89f6513365fde7a760b8b64408128c7fb5c57aba7a0acffde01805b81900d3fd10dd453607f2acbdbbc645ac757c461a0bc4832805e3242c579 WHIRLPOOL b594b1d315121dd7eae6d933a7cbf56cccaf8e539af2b22377dc81518ecf1ebf4974eaf4a4d3e418d3117415478c85f79a22d6af2b8770899bb5d13ecea06a4a
+MISC ChangeLog-2015 6729 SHA256 fa1ca67c990c278cb61a6b6d9dc331e98571e81c6e2c76753840f8785d031564 SHA512 34ef871205f88a86130c640ab28bfe4106d62bb5c2bccaf56c23dc62c8faf3e0dd147b858e3868cb1a098b48a1fd047c54bab49b7dcc50540fea66428c449456 WHIRLPOOL c6e65fcbca8704b76ed0074cb7e644c4dc0bbe258d61400b7889152806ba123a8c1a4b4edb57c8614bf228d77277ab9466d363928a7368f18d1ae90d3992d565
+MISC metadata.xml 396 SHA256 3d2197dce1535a1df160a6b3748714b064765fb36845b017552325ab702ae972 SHA512 cba5e716877204e00ef18549d35bb39f47921389f8712c69ce81b8dd365505d6ea95fed89976bfc6722343dadd15f914f27d26fe35416c242e7963d467b147d0 WHIRLPOOL ee3f9be2ea4b76c6db1229c200f8968b355d3091e8c9cdcfd9be84f7d29ff5333610bbead68a7859e60431b433467fb265ae2c601a99bd404fc27f82afc946ba
diff --git a/net-dns/mydns/files/mydns-1.2.8.27-m4.patch b/net-dns/mydns/files/mydns-1.2.8.27-m4.patch
new file mode 100644
index 000000000000..c32e7613b466
--- /dev/null
+++ b/net-dns/mydns/files/mydns-1.2.8.27-m4.patch
@@ -0,0 +1,53 @@
+--- mydns-1.1.0/m4/mydns.m4.orig 2010-12-01 21:57:52.000000000 +0100
++++ mydns-1.1.0/m4/mydns.m4 2010-12-01 22:07:24.000000000 +0100
+@@ -542,46 +542,10 @@
+ ##
+ AC_DEFUN([AC_LIB_MYSQLCLIENT],
+ [
+- libmysqlclient_dirs="/usr/local/mysql/lib /usr/local/lib/mysql /usr/local/lib /usr/lib/mysql /usr/lib /lib"
+- AC_ARG_WITH(mysql-lib,
+- AC_HELP_STRING([--with-mysql-lib=DIR], [look for the MySQL client library in DIR]),
+- libmysqlclient_dirs="$withval $libmysqlclient_dirs")
+- libmysqlclient_found=no, libmysqlclient_ok=no
+- for libmysqlclient_dir in $libmysqlclient_dirs; do
+- if test "$libmysqlclient_found" != yes; then
+- AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient_r.so, libmysqlclient_found=yes, libmysqlclient_found=no)
+- if test "$libmysqlclient_found" != yes; then
+- AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient.so, libmysqlclient_found=yes, libmysqlclient_found=no)
+- fi
+- if test "$libmysqlclient_found" != yes; then
+- AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient.a, libmysqlclient_found=yes, libmysqlclient_found=no)
+- fi
+- if test "$libmysqlclient_found" = yes; then
+- ## libmysqlclient depends on libz
+- if ! test -n "$LIBZ"; then
+- AC_LIB_Z
+- fi
+- if ! test -n "$LIBZ"; then
+- ## No zlib
+- AC_MSG_ERROR([
+-
+-][ ###
+-][ ### zlib compression library (libz.a) not found.
+-][ ###
+-][ ### Please download and install the zlib compression
+-][ ### library from the following URL:
+-][ ###
+-][ ### http://www.gzip.org/zlib/
+-][ ###
+-][ ### (Error detail might be available in `config.log')
+-][ ###
+-])
+- fi
+- LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient"
+- libmysqlclient_found=yes
+- fi
+- fi
+- done
++ AC_CHECK_PROG(LIBMYSQLCLIENT,mysql_config,`mysql_config --libs`)
++ if test -z "$LIBMYSQLCLIENT"; then
++ AC_MSG_ERROR([Could not find mysql_config script. Make sure the mysql client libraries are installed])
++ fi
+ AC_SUBST(LIBMYSQLCLIENT)
+ ]
+ )
diff --git a/net-dns/mydns/files/mydns-1.2.8.31-texinfo.patch b/net-dns/mydns/files/mydns-1.2.8.31-texinfo.patch
new file mode 100644
index 000000000000..7b6b3d1a5aa3
--- /dev/null
+++ b/net-dns/mydns/files/mydns-1.2.8.31-texinfo.patch
@@ -0,0 +1,30 @@
+From d341ad19c32777757d2ade6dc8c096a8d14dfb77 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Thu, 13 Aug 2015 23:10:29 +0200
+Subject: [PATCH] Fix texinfo compilation
+
+Error was:
+./fdl.texi:371: raising the section level of @appendixsubsec which is too low
+
+Applying idea from
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708589
+---
+ doc/fdl.texi | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/doc/fdl.texi b/doc/fdl.texi
+index a497bba..fc801a8 100644
+--- a/doc/fdl.texi
++++ b/doc/fdl.texi
+@@ -368,7 +368,7 @@ as a draft) by the Free Software Foundation.
+ @end enumerate
+
+ @page
+-@appendixsubsec ADDENDUM: How to use this License for your documents
++@appendixsec ADDENDUM: How to use this License for your documents
+
+ To use this License in a document you have written, include a copy of
+ the License in the document and put the following copyright and
+--
+2.5.0
+
diff --git a/net-dns/mydns/files/mydns.confd b/net-dns/mydns/files/mydns.confd
new file mode 100644
index 000000000000..1040f4b93c15
--- /dev/null
+++ b/net-dns/mydns/files/mydns.confd
@@ -0,0 +1,4 @@
+MYDNS_CONFFILE="/etc/mydns.conf"
+
+#MYDNS_EXTRA_OPTS="--verbose"
+MYDNS_EXTRA_OPTS=""
diff --git a/net-dns/mydns/files/mydns.initd b/net-dns/mydns/files/mydns.initd
new file mode 100644
index 000000000000..d78d1df91cb0
--- /dev/null
+++ b/net-dns/mydns/files/mydns.initd
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MYDNS_CHECKCONF="/usr/bin/mydnscheck"
+MYDNS_CONFFILE="${MYDNS_CONFFILE:-/etc/mydns.conf}"
+
+command="/usr/sbin/mydns"
+command_args="--background --conf=${MYDNS_CONFFILE} ${MYDNS_EXTRA_OPTS}"
+extra_commands="configtest"
+extra_started_commands="reload"
+pidfile="$(grep '^pidfile' ${MYDNS_CONFFILE} | sed -e 's/^pidfile\s*=\s*\([^# ]\+\?\)\s*\(#.*\)\?$/\1/')"
+pidfile="${pidfile:-/var/run/mydns.pid}"
+
+depend() {
+ need net
+ use logger mysql postgresql
+}
+
+checkconfig() {
+ "${MYDNS_CHECKCONF}" --conf="${MYDNS_CONFFILE}"
+ return $?
+}
+
+configtest() {
+ ebegin "Checking ${SVCNAME} configuration"
+ checkconfig
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+ eend $?
+}
diff --git a/net-dns/mydns/metadata.xml b/net-dns/mydns/metadata.xml
new file mode 100644
index 000000000000..51607d90170c
--- /dev/null
+++ b/net-dns/mydns/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="alias">Enable David Phillips aliasing</flag>
+ <flag name="status">Enable the STATUS opcode to check server status</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">mydns-ng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-dns/mydns/mydns-1.2.8.31-r1.ebuild b/net-dns/mydns/mydns-1.2.8.31-r1.ebuild
new file mode 100644
index 000000000000..7b6e4b894eae
--- /dev/null
+++ b/net-dns/mydns/mydns-1.2.8.31-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A DNS-Server which gets its data from a MySQL-/PostgreSQL-database"
+HOMEPAGE="http://www.mydns.pl/"
+SRC_URI="mirror://sourceforge/mydns-ng/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~ppc sparc x86"
+IUSE="alias debug nls mysql postgres ssl static status"
+
+RDEPEND="mysql? ( virtual/mysql )
+ nls? ( virtual/libintl )
+ postgres? ( dev-db/postgresql )
+ ssl? ( dev-libs/openssl )
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.12 )
+ sys-devel/bison"
+
+REQUIRED_USE="^^ ( mysql postgres )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.8.27-m4.patch"
+ eautoreconf
+ epatch "${FILESDIR}/${P}-texinfo.patch"
+}
+
+src_configure() {
+ econf \
+ $(use_enable alias) \
+ $(use_enable nls) \
+ $(use_enable debug) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_enable static) \
+ $(use_enable static static-build) \
+ $(use_enable status) \
+ $(use_with ssl openssl) \
+ --without-included-gettext
+}
+
+src_install() {
+ default
+
+ dodoc AUTHORS BUGS ChangeLog QUICKSTART* NEWS README* TODO
+ docinto contrib
+ dodoc contrib/*.php contrib/*.pl contrib/*.pm contrib/README*
+
+ newinitd "${FILESDIR}/mydns.initd" mydns
+ newconfd "${FILESDIR}/mydns.confd" mydns
+
+ ## Avoid file collision
+ rm -f "${ED}/usr/share/locale/locale.alias"
+
+ # Install config file
+ insinto /etc
+ newins mydns.conf mydns.conf
+ fowners root:root /etc/mydns.conf
+ fperms 0600 /etc/mydns.conf
+}
+
+pkg_postinst() {
+ if use postgres; then
+ elog "# createdb mydns"
+ elog "# /usr/sbin/mydns --create-tables | psql mydns"
+ elog
+ elog "to create the tables in the PostgreSQL-Database."
+ elog "For more info see QUICKSTART.postgres."
+ fi
+ if use mysql; then
+ elog "# mysqladmin -u <useruname> -p create mydns"
+ elog "# /usr/sbin/mydns --create-tables | mysql -u <username> -p mydns"
+ elog
+ elog "to create the tables in the MySQL-Database."
+ elog "For more info see QUICKSTART.mysql."
+ fi
+ elog
+}