# 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:
-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
+++ /dev/null
-MD5 1a549ec56413ac74a7601a4501cc689f mydns-0.10.3.tar.bz2 540942
--- /dev/null
+MD5 3a0b312f53c6a8fb17cb7d2cf27fad24 mydns-1.0.0.tar.bz2 545441
#!/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
#!/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() {
-# 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/"
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
-# 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/"
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
}
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() {
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