diff options
-rw-r--r-- | net-dns/mydns/ChangeLog | 8 | ||||
-rw-r--r-- | net-dns/mydns/Manifest | 18 | ||||
-rw-r--r-- | net-dns/mydns/files/mydns.confd | 4 | ||||
-rw-r--r-- | net-dns/mydns/files/mydns.initd | 35 | ||||
-rw-r--r-- | net-dns/mydns/mydns-1.2.8.31.ebuild | 85 |
5 files changed, 136 insertions, 14 deletions
diff --git a/net-dns/mydns/ChangeLog b/net-dns/mydns/ChangeLog index 9b5383ec7a46..7efb1c3d2a81 100644 --- a/net-dns/mydns/ChangeLog +++ b/net-dns/mydns/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dns/mydns # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.36 2011/05/17 16:09:22 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.37 2011/12/04 02:17:25 matsuu Exp $ + +*mydns-1.2.8.31 (04 Dec 2011) + + 04 Dec 2011; MATSUU Takuto <matsuu@gentoo.org> +mydns-1.2.8.31.ebuild, + +files/mydns.confd, +files/mydns.initd: + Version bumped, bug #389331. 17 May 2011; Markos Chandras <hwoarang@gentoo.org> mydns-1.2.8.27.ebuild, +files/mydns-1.2.8.27-gentoo.patch, +files/mydns-1.2.8.27-m4.patch: diff --git a/net-dns/mydns/Manifest b/net-dns/mydns/Manifest index eb301e4b08e6..f37e35fd9938 100644 --- a/net-dns/mydns/Manifest +++ b/net-dns/mydns/Manifest @@ -1,26 +1,18 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX 04-update-smash-fix.dpatch 1175 RMD160 344a2360a1b746da4d612a7fc070aca5a552930a SHA1 8ecd7ab4365e9b4f42d8cd74c5daa2e86137cfbc SHA256 2f4054a5c65e59e2f41e6633b07078bbc736b8196db22c11aaae3bae2cb9f11e AUX mydns-1.1.0-gcc41.patch 9447 RMD160 d04c549f711f8afc405dc05e97582a7e8c994e06 SHA1 29826d1cd87935ec72e8289bad852d6334a8648a SHA256 2f1431b9c08735203351d12d3043c469bd5ec65d77c0f44bcc6ca4c3801b0a1b AUX mydns-1.1.0-gentoo.patch 2069 RMD160 dfe4248f3a5a7ab816f3542e0b876d7b54c2571e SHA1 aa78ac0b185940135c9aad3671420ce97175595b SHA256 6e776c52b4eaf824a0582dac84b3a15cf9a140c414eef8292b1cbf4850f41338 AUX mydns-1.1.0-m4.patch 3055 RMD160 2a0c9843f05b713efd6d21671d960ab079766780 SHA1 aa5e2820608f8047f23d460e84dcb71bfc8d26d0 SHA256 9cf87e1dd03cd83655099eb850285f2b67893fe490cd20f053c33e9bec8046c2 AUX mydns-1.2.8.27-gentoo.patch 1998 RMD160 981f169d165966916f97e187543b6360bfbb9300 SHA1 da6acbb59d5bf1b207f9b352033b5fdaf1df067c SHA256 3e14d2284912585aa23e0abcb2297825f8f888be8a5e0f8b7491b5b52c5a2969 AUX mydns-1.2.8.27-m4.patch 1983 RMD160 dcc69d0d66ddeb8951e78e211672ab8ecd7ce63a SHA1 e2bdbf974014f20cdf0f07840e2ed2c00de2e8ae SHA256 ebd6a22d9af6c6fd734b0756583b116755935f4f1c6a1bd6b10dc685521cbc13 +AUX mydns.confd 84 RMD160 a6593709fe456d812839de47b69dcd9ec26fe49b SHA1 47a406ab01485115ffd207c6a36fae907e6debd5 SHA256 3a8228a51851bf0ecd08a9db9102a09c2acf40c50700b3cf7faf9b0af018551c +AUX mydns.initd 849 RMD160 ca93bd0f1b2ebae39daf775c1a630a4576e58d73 SHA1 a58866b46841317d8d4970143ce9cd16ebcfeeef SHA256 05fa7703f8045c424fc3ffec98b784125e468ba1e056fe6b828fcd6c06256ea8 AUX mydns.rc6 903 RMD160 bb97a7ce94249f9de78e4a5e9164f17339f873c9 SHA1 fb1477b08584cbc2e9027fe1351c3a5e34e802f6 SHA256 36dadbe2c880928a43d33049c02026df47478f79ff97768a6143db6cddc3aba4 DIST mydns-1.1.0.tar.bz2 573261 RMD160 ffd7c5d42d5e004e06562d4fb497cc515f31fed9 SHA1 71979409bf46e38b443ee940a6ecb0e42464bc0b SHA256 ecfcc8bb8fd9f707d2e7af808317cdcc3a4d701375265840944c4e0ff0d66bf6 DIST mydns-1.2.8.27.tar.gz 1055969 RMD160 fd3f06fee61ead3eea1c4a4cc8c325c81e576698 SHA1 69eae81fa4e8896ea4e2c5a0cb9cef54635f917c SHA256 9f9a80d2c3b47b91e15daf49aa3442b29e2f2c175ffb98358ccb9103087edc21 +DIST mydns-1.2.8.31.tar.gz 958701 RMD160 96f766a1e17ae35673c7afb3f262192a9c19d504 SHA1 b076335d405b353c81efc0de8624b1fef5a7cc4e SHA256 cb10de11ccd948d3b86296c03c6fb692489945d58b0aaee5d17be083f3263629 EBUILD mydns-1.1.0-r1.ebuild 2182 RMD160 a64213334ec22f3b9938b64d85f8af83e8871b5b SHA1 ab1998201ecf253cde86a9e40b8fa1d5d25f60af SHA256 48acc68ddb54c61ff8bd5e52fb81d513e496995b34d2da283bed1d41ddf5669e EBUILD mydns-1.1.0-r2.ebuild 2330 RMD160 d4d1492ffb68adc1aad64cbeff83b45c8688cf93 SHA1 3d206dc2f8028d23237955324d5c62c39fb3b094 SHA256 dbe43eb856c68b958e4ca6ac2231b56676c05d8c2c149cf9e54bb354b179cae7 EBUILD mydns-1.2.8.27.ebuild 2609 RMD160 181203e04bf62a47bc34fa784a4a72efa3b90b0e SHA1 333c95c4b2c7a5c0de65f1509aa4bfae3153dcf2 SHA256 3f43e2cfc746fee2b667c4966b3fa2a3d228f4d8e0fe460b7f2815605e7d928c -MISC ChangeLog 5139 RMD160 ed7e66ad06a275d8110aceab4c2a4d8644eb4c4d SHA1 d7cf711f2a8f63d624cf8ce5aacbfad52a443a10 SHA256 715db17b615053cd93f4dd72903cf5effaeea26813e92f523a438d69d5536c56 +EBUILD mydns-1.2.8.31.ebuild 2180 RMD160 28fc8ca51235a28421beac7148c3c1d4251ed5a5 SHA1 8d8c3ff5d662ce7e5a6c4114af905a164dc18c31 SHA256 b1ffd089059ca27a255668dae7cc43b6c8f6743586d1cb32d0f12276ddec0b29 +MISC ChangeLog 5315 RMD160 2401cb335571e8641b7f0c537b94635461dce683 SHA1 79afc356bcd0bdf39bd65b18662f2ce5e835581b SHA256 af087cad5a47a164ffd09deca00f810fcb2a2d02f33188d094087641e3e090a8 MISC metadata.xml 379 RMD160 f12e1c0b6d7181e193286f03cd5ae163f5887934 SHA1 6975bd4bbea77d511193c88959fc6e7f0a3128ad SHA256 c708ee11c8082c742503da88b47c89501d75aa8688656b478eafcbcb08775c64 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) - -iJwEAQEIAAYFAk59qNoACgkQfXuS5UK5QB3uGQP8Dtj5ucO2vQ7Zu0x3phUpnJgj -wB2PCfXCDUEapcf5XthqvDjHScFzjlgqw5hNa68fyM//QrQdfq2n0T8w6vrb5Nan -Z9Fc8BsFtzUmo4jFn1pyXD/ltFrf+KcQJZOSmqO9Pz5ML0i7nSXhkNpI6csIyOyn -e+mlDkiYEfpidnCtcDA= -=8/vJ ------END PGP SIGNATURE----- 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..970876191731 --- /dev/null +++ b/net-dns/mydns/files/mydns.initd @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2011 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 $? +} diff --git a/net-dns/mydns/mydns-1.2.8.31.ebuild b/net-dns/mydns/mydns-1.2.8.31.ebuild new file mode 100644 index 000000000000..f455f4f0ad58 --- /dev/null +++ b/net-dns/mydns/mydns-1.2.8.31.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.2.8.31.ebuild,v 1.1 2011/12/04 02:17:25 matsuu Exp $ + +EAPI="4" +inherit autotools confutils eutils + +DESCRIPTION="A DNS-Server which gets its data from a MySQL-/PostgreSQL-database" +HOMEPAGE="http://www.mydns.pl/" +SRC_URI="mirror://sourceforge/mydns-ng/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" +IUSE="alias debug nls mysql postgres ssl static status" + +RDEPEND="mysql? ( virtual/mysql ) + nls? ( virtual/libintl ) + postgres? ( dev-db/postgresql-base ) + ssl? ( dev-libs/openssl ) + virtual/libiconv" +DEPEND="${RDEPEND} + nls? ( >=sys-devel/gettext-0.12 ) + sys-devel/bison" + +pkg_setup() { + confutils_require_one mysql postgres +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.2.8.27-m4.patch" + eautoreconf +} + +src_configure() { + econf \ + $(use_enable alias) \ + $(use_enable nls) \ + $(use_enable debug) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_enable static) \ + $(use_enable static static-build) \ + $(use_enable status) \ + $(use_with ssl openssl) \ + --without-included-gettext || die +} + +src_install() { + default + + dodoc AUTHORS BUGS ChangeLog QUICKSTART* NEWS README* TODO + docinto contrib + dodoc contrib/*.php contrib/*.pl contrib/*.pm contrib/README* + + newinitd "${FILESDIR}/mydns.initd" mydns + newconfd "${FILESDIR}/mydns.confd" mydns + + ## Avoid file collision + rm -f "${ED}/usr/share/locale/locale.alias" + + # Install config file + insinto /etc + newins mydns.conf mydns.conf + fowners root:root /etc/mydns.conf + fperms 0600 /etc/mydns.conf +} + +pkg_postinst() { + if use postgres; then + elog "# createdb mydns" + elog "# /usr/sbin/mydns --create-tables | psql mydns" + elog + elog "to create the tables in the PostgreSQL-Database." + elog "For more info see QUICKSTART.postgres." + fi + if use mysql; then + elog "# mysqladmin -u <useruname> -p create mydns" + elog "# /usr/sbin/mydns --create-tables | mysql -u <username> -p mydns" + elog + elog "to create the tables in the MySQL-Database." + elog "For more info see QUICKSTART.mysql." + fi + elog +} |