summaryrefslogtreecommitdiff
path: root/net-dns/mydns/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dns/mydns/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dns/mydns/files')
-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
4 files changed, 122 insertions, 0 deletions
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 $?
+}