# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/sql2data/sql2data-2.0.ebuild,v 1.0 2005/05/29 17:20:10 ali3nx Exp $ inherit eutils DESCRIPTION="A perl script for automatic zone replication with djbdns via mysql" HOMEPAGE="http://partisans.spurious.biz/~pkremer/projects/scripting/sql2data.php" SRC_URI="http://partisans.spurious.biz/~pkremer/projects/scripting/sql2data/${P}.tgz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~ia64 ~amd64 ~s390" IUSE="" DEPEND=">=dev-lang/perl-5.8.4-r2 dev-perl/Net-DNS virtual/cron dev-db/mysql sys-process/daemontools sys-apps/ucspi-tcp >=net-dns/djbdns-1.05*" RDEPEND="" src_unpack() { unpack ${A} cd ${S} } src_compile() { einfo "Nothing to compile. Installing" } src_install() { # doc stuff dodoc README LICENSE CHANGES TODO mysql.sql insinto /usr/share/doc/${P}/contrib doins "contrib/Makefile" # exe stuff exeinto /usr/bin doexe "sql2data" # /etc stuff diropts "-m0750" insinto /etc/sql2data doins "${FILESDIR}/sql2data.conf" insinto /etc/sql2data doins "sql2data.conf.sample" } pkg_postinst() { einfo "Sample configuration /etc/sql2data.conf has been provided" einfo "you will also need to create a database table in mysql for tinydns" einfo "and update tinydns from your mysql database tables" einfo "mysql.sql script can be found in shared documentation" einfo "sql2data.conf can be run from cron with the following cron job example" einfo "0,10,20,30,40,50 * * * * sql2data -c /etc/sql2data/sql2data.conf >/dev/null 2>&1" echo "" }