# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/autoaxfr/autoaxfr-1.2.ebuild,v 1.0 2005/05/28 17:20:10 ali3nx Exp $ inherit eutils DESCRIPTION="A wrapper script for axfr-get for automatic zone replication with djbdns" HOMEPAGE="http://www.lickey.com/autoaxfr/" SRC_URI="http://www.lickey.com/autoaxfr/dist/autoaxfr-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~ia64 ~amd64 ~s390" IUSE="" DEPEND=">=dev-lang/perl-5.8.4-r2 sys-process/daemontools sys-apps/ucspi-tcp >=net-dns/djbdns-1.05*" RDEPEND="" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/autoaxfr-conf.gentoo-paths.patch } src_compile() { einfo "Nothing to compile. Installing" } src_install() { insinto /usr/share/doc/${PN} dodoc "README" insinto /usr/share/doc/${PN} dodoc "LICENSE" exeinto /usr/bin doexe "autoaxfr" exeinto /usr/bin doexe "autoaxfr-conf" } pkg_postinst() { einfo "Adding user and group for autoaxfr" enewgroup autoaxfr enewuser autoaxfr -1 /bin/false /nonexistent autoaxfr einfo "Use autoaxfr-conf to configure autoaxfr" echo "" einfo "Official documentation is available on the autoaxfr website" einfo "http://www.lickey.com/autoaxfr/" echo "" ewarn "***SECURITY NOTICE***" ewarn "If you are planning zone data replication use ip address access" ewarn "control and run autoaxfr as a non privledged user or your zone records" ewarn "could be replicated without authorization." ebeep 5 }