Version bumped. Fixed Bug 77895.
authorMatsuu Takuto <matsuu@gentoo.org>
Sat, 15 Jan 2005 03:31:00 +0000 (03:31 +0000)
committerMatsuu Takuto <matsuu@gentoo.org>
Sat, 15 Jan 2005 03:31:00 +0000 (03:31 +0000)
net-dns/mydns/ChangeLog
net-dns/mydns/Manifest
net-dns/mydns/files/digest-mydns-0.10.3 [deleted file]
net-dns/mydns/files/digest-mydns-1.0.0 [new file with mode: 0644]
net-dns/mydns/files/mydns.rc6
net-dns/mydns/files/mydns.rc6-0.11.0
net-dns/mydns/mydns-0.11.0.ebuild
net-dns/mydns/mydns-1.0.0.ebuild [moved from net-dns/mydns/mydns-0.10.3.ebuild with 57% similarity]

index 16de712306275a6e3de3fd1a62ae672f51d33b15..1902816441ac4a1d0269d2bf746c4eef15526f9c 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-dns/mydns
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.9 2004/07/01 22:12:33 eradicator Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.10 2005/01/15 03:31:00 matsuu Exp $
+
+*mydns-1.0.0 (15 Jan 2005)
+
+  15 Jan 2005; MATSUU Takuto <matsuu@gentoo.org> files/mydns.rc6,
+  -mydns-0.10.3.ebuild, mydns-0.11.0.ebuild, +mydns-1.0.0.ebuild:
+  Version bumped.
+  Fixed init.d script. Bug 77895.
 
   01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> mydns-0.10.3.ebuild,
   mydns-0.11.0.ebuild:
index ab11ff62a1e6e4b5501cdf1c269284b41d2fa10b..75a34e4f6af4287444ecec0178dc4a60f5716df2 100644 (file)
@@ -1,8 +1,8 @@
-MD5 18d723ed0c6503a4c74971bcbb53a109 mydns-0.11.0.ebuild 2151
-MD5 9f720b874e87fe3083e5fda03acce92e mydns-0.10.3.ebuild 2017
-MD5 ff40f0a7b30879e6360a2938f796b6ad ChangeLog 1420
+MD5 b074efd15224ab763202228869a39787 mydns-0.11.0.ebuild 2148
+MD5 5cc0e6aa86e23fa4998919d246db44f6 mydns-1.0.0.ebuild 2142
+MD5 977a0f7387866f238411497640a7162d ChangeLog 1630
 MD5 c50346bf0fb8b39c521dca42b145f6ee metadata.xml 230
-MD5 871f4b34b46c15aaf75e5c286a83a37d files/mydns.rc6-0.11.0 778
-MD5 83880130e9ae2691250f3449a0da8156 files/mydns.rc6 736
-MD5 ebba13e9f1c850faa314aed56723486d files/digest-mydns-0.10.3 65
+MD5 4c0162b2fafe950563e223e5a939c5c7 files/mydns.rc6-0.11.0 763
+MD5 38219cb6d2a256e9fbe8fbac5a0a01d6 files/mydns.rc6 903
 MD5 23af670a16b78f2ed91017e898efa177 files/digest-mydns-0.11.0 65
+MD5 9d4a562f99499ac86ee42d360e55b4d8 files/digest-mydns-1.0.0 64
diff --git a/net-dns/mydns/files/digest-mydns-0.10.3 b/net-dns/mydns/files/digest-mydns-0.10.3
deleted file mode 100644 (file)
index e0b1245..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 1a549ec56413ac74a7601a4501cc689f mydns-0.10.3.tar.bz2 540942
diff --git a/net-dns/mydns/files/digest-mydns-1.0.0 b/net-dns/mydns/files/digest-mydns-1.0.0
new file mode 100644 (file)
index 0000000..c38688e
--- /dev/null
@@ -0,0 +1 @@
+MD5 3a0b312f53c6a8fb17cb7d2cf27fad24 mydns-1.0.0.tar.bz2 545441
index 6f5679361b29697e7507df42777ff175aac7fc93..f52849b258f4875a6120dd9b98ba5e99da984c22 100644 (file)
@@ -1,29 +1,32 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6,v 1.4 2004/07/14 23:24:43 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6,v 1.5 2005/01/15 03:31:00 matsuu Exp $
 
 depend() {
-       use mysql postgresql
+       need net __db__
+       use logger
 }
 
 checkconfig() {
        if [ ! -f /etc/mydns.conf ] ; then
                eerror "No /etc/mydns.conf file exists!"
+               eerror "You should now run these commands:"
+               eerror "# /usr/sbin/mydns --dump-config > /etc/mydns.conf"
+               eerror "# chmod 0600 /etc/mydns.conf"
                return 1
        fi
 }
 
 start() {
        checkconfig || return 1
-       ebegin "Starting mydnsd"
-       sleep 2
-       /usr/sbin/mydns -b >/dev/null 2>&1 &
+       ebegin "Starting mydns"
+       start-stop-daemon --start --quiet --exec /usr/sbin/mydns -- -b
        eend $?
 }
 
 stop () {
-       ebegin "Stopping mydnsd"
+       ebegin "Stopping mydns"
        PIDFILE=`cat /etc/mydns.conf | grep pidfile | awk '{ print $3 }'`
        if [ $PIDFILE == "" ]; then
                PIDFILE=/var/run/mydns.pid
index 8e7814b75e5d10de79d56286cde2cfb660c4ca21..17d2e930563648aea91cd1cc3c0e047e1ee80479 100644 (file)
@@ -1,12 +1,11 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # 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.2 2004/07/14 23:24:43 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/files/mydns.rc6-0.11.0,v 1.3 2005/01/15 03:31:00 matsuu Exp $
 
 depend() {
        need net __db__
        use logger
-       provide dns
 }
 
 checkconfig() {
index 47e04bc1f66db98b3fc8e16e89d269f50d85917d..50536b5852b72fcbe083b9f531175a1778daeeaf 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-0.11.0.ebuild,v 1.4 2004/07/14 23:29:06 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-0.11.0.ebuild,v 1.5 2005/01/15 03:31:00 matsuu Exp $
 
 DESCRIPTION="A DNS-Server which gets its data from mysql-databases"
 HOMEPAGE="http://mydns.bboy.net/"
@@ -8,7 +8,7 @@ SRC_URI="http://mydns.bboy.net/download/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
+KEYWORDS="x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
 IUSE="debug mysql nls postgres ssl static zlib"
 
 RDEPEND="virtual/libc
similarity index 57%
rename from net-dns/mydns/mydns-0.10.3.ebuild
rename to net-dns/mydns/mydns-1.0.0.ebuild
index a99f01221c04c328551e810d5c9045c196566157..6832e7406182ac182f2c461d6408ffa6c9c1e046 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-0.10.3.ebuild,v 1.6 2004/07/14 23:29:06 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.0.0.ebuild,v 1.1 2005/01/15 03:31:00 matsuu Exp $
 
 DESCRIPTION="A DNS-Server which gets its data from mysql-databases"
 HOMEPAGE="http://mydns.bboy.net/"
@@ -8,32 +8,36 @@ SRC_URI="http://mydns.bboy.net/download/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
 IUSE="debug mysql nls postgres ssl static zlib"
 
 RDEPEND="virtual/libc
-       mysql? ( dev-db/mysql )
-       postgres? ( dev-db/postgresql )
        ssl? ( dev-libs/openssl )
-       zlib? ( sys-libs/zlib )"
+       zlib? ( sys-libs/zlib )
+       || (
+               mysql? ( dev-db/mysql )
+               postgres? ( dev-db/postgresql )
+               !postgres? ( dev-db/mysql )
+       )"
 DEPEND="${RDEPEND}
        sys-devel/bison"
 
 src_compile() {
-       if ! use mysql && ! use postgres; then
-               eerror "MyDNS needs either MySQL or PostgreSQL."
-               eerror "Please set USE=\"mysql\" or USE=\"postgres\", and try again."
-               die
+       local myconf
+
+       if use mysql || ! use postgres; then
+               myconf="${myconf} --with-mysql"
+       else
+               myconf="${myconf} --without-mysql --with-pgsql"
        fi
 
        econf --enable-alias \
                `use_enable nls` \
                `use_enable debug` \
                `use_enable static static-build` \
-               `use_with postgres pgsql` \
-               `use_with mysql` \
                `use_with ssl openssl` \
-               `use_with zlib` || die
+               `use_with zlib` \
+               ${myconf} || die
 
        emake || die
 }
@@ -42,10 +46,16 @@ src_install() {
        make DESTDIR=${D} install || die
 
        dodoc ABOUT-NLS AUTHORS BUGS ChangeLog INSTALL NEWS README TODO
-       use mysql && dodoc QUICKSTART.mysql
-       use postgres && dodoc QUICKSTART.postgres
 
        exeinto /etc/init.d; newexe ${FILESDIR}/mydns.rc6 mydns || die
+
+       if use mysql || ! use postgres; then
+               sed -i -e 's/__db__/mysql/g' ${D}/etc/init.d/mydns || die
+               dodoc QUICKSTART.mysql
+       else
+               sed -i -e 's/__db__/postgresql/g' ${D}/etc/init.d/mydns || die
+               dodoc QUICKSTART.postgres
+       fi
 }
 
 pkg_postinst() {
@@ -54,13 +64,13 @@ pkg_postinst() {
        einfo
        einfo "# /usr/sbin/mydns --dump-config > /etc/mydns.conf"
        einfo "# chmod 0600 /etc/mydns.conf"
-       if use mysql ; then
-               einfo "# mysqladmin -u <username> -p create mydns"
-               einfo "# /usr/sbin/mydns --create-tables | mysql -u <user> -p mydns"
+       if use mysql || ! use postgres; then
+               einfo "# mysqladmin -u <useruname> -p create mydns"
+               einfo "# /usr/sbin/mydns --create-tables | mysql -u <username> -p mydns"
                einfo
                einfo "to create the tables in the MySQL-Database."
                einfo "For more info see QUICKSTART.mysql."
-       elif use postgres ; then
+       else
                einfo "# createdb mydns"
                einfo "# /usr/sbin/mydns --create-tables | psql mydns"
                einfo