diff options
author | 2004-06-13 07:15:19 +0000 | |
---|---|---|
committer | 2004-06-13 07:15:19 +0000 | |
commit | 2b802f609d8d6fb63634f6207df884b0f4c4bba1 (patch) | |
tree | d3e6256fdb6618a5f57e70b8061d8635a1aac30b /net-dns/mydns/files | |
parent | gcc 3.4 fixes for bug #49234. (diff) | |
download | historical-2b802f609d8d6fb63634f6207df884b0f4c4bba1.tar.gz historical-2b802f609d8d6fb63634f6207df884b0f4c4bba1.tar.bz2 historical-2b802f609d8d6fb63634f6207df884b0f4c4bba1.zip |
Version bump and fixed bugs.
Diffstat (limited to 'net-dns/mydns/files')
-rw-r--r-- | net-dns/mydns/files/digest-mydns-0.10.4 | 1 | ||||
-rw-r--r-- | net-dns/mydns/files/digest-mydns-0.11.0 | 1 | ||||
-rw-r--r-- | net-dns/mydns/files/mydns.rc6 | 4 | ||||
-rw-r--r-- | net-dns/mydns/files/mydns.rc6-0.11.0 | 35 |
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 $? +} |