summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2004-06-13 07:15:19 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2004-06-13 07:15:19 +0000
commit7c5a2f2443d50d75617b988fa5befe1a54a6a9e8 (patch)
treeab02f2268efdeba7d7faa758c1688d47bb46edb7 /net-dns/mydns/files
parentgcc 3.4 fixes for bug #49234. (Manifest recommit) (diff)
downloadgentoo-2-7c5a2f2443d50d75617b988fa5befe1a54a6a9e8.tar.gz
gentoo-2-7c5a2f2443d50d75617b988fa5befe1a54a6a9e8.tar.bz2
gentoo-2-7c5a2f2443d50d75617b988fa5befe1a54a6a9e8.zip
Version bump and fixed bugs.
Diffstat (limited to 'net-dns/mydns/files')
-rw-r--r--net-dns/mydns/files/digest-mydns-0.10.41
-rw-r--r--net-dns/mydns/files/digest-mydns-0.11.01
-rw-r--r--net-dns/mydns/files/mydns.rc64
-rw-r--r--net-dns/mydns/files/mydns.rc6-0.11.035
4 files changed, 38 insertions, 3 deletions
diff --git a/net-dns/mydns/files/digest-mydns-0.10.4 b/net-dns/mydns/files/digest-mydns-0.10.4
deleted file mode 100644
index 3ccdb07c1319..000000000000
--- a/net-dns/mydns/files/digest-mydns-0.10.4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 781a09b068360719899c266dab1baaa2 mydns-0.10.4.tar.bz2 541502
diff --git a/net-dns/mydns/files/digest-mydns-0.11.0 b/net-dns/mydns/files/digest-mydns-0.11.0
new file mode 100644
index 000000000000..7456571324c6
--- /dev/null
+++ b/net-dns/mydns/files/digest-mydns-0.11.0
@@ -0,0 +1 @@
+MD5 16cc087d63c59bdb56f1564d92d6ab0a mydns-0.11.0.tar.bz2 545293
diff --git a/net-dns/mydns/files/mydns.rc6 b/net-dns/mydns/files/mydns.rc6
index bbba3dd925ae..968a12f8e35e 100644
--- a/net-dns/mydns/files/mydns.rc6
+++ b/net-dns/mydns/files/mydns.rc6
@@ -1,10 +1,10 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6,v 1.2 2004/03/04 19:17:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6,v 1.3 2004/06/13 07:15:19 matsuu Exp $
depend() {
- use mysql postgres
+ use mysql postgresql
}
checkconfig() {
diff --git a/net-dns/mydns/files/mydns.rc6-0.11.0 b/net-dns/mydns/files/mydns.rc6-0.11.0
new file mode 100644
index 000000000000..7cd049d86ca6
--- /dev/null
+++ b/net-dns/mydns/files/mydns.rc6-0.11.0
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6-0.11.0,v 1.1 2004/06/13 07:15:19 matsuu Exp $
+
+depend() {
+ need net __db__
+ use logger
+ provide dns
+}
+
+checkconfig() {
+ if [ ! -f /etc/mydns.conf ] ; then
+ eerror "No /etc/mydns.conf file exists!"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting mydns"
+ checkconfig || return 1
+ start-stop-daemon --start --quiet --exec /usr/sbin/mydns -- -b
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping mydns"
+ PIDFILE=`cat /etc/mydns.conf | grep pidfile | awk '{ print $3 }'`
+ if [ $PIDFILE == "" ]; then
+ PIDFILE=/var/run/mydns.pid
+ fi
+ start-stop-daemon --stop --quiet \
+ --pidfile=${PIDFILE}
+ eend $?
+}