# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="${PN}-pl-${PV}" DESCRIPTION="dy.fi dynamic DNS updater" HOMEPAGE="http://dy.fi/" SRC_URI="http://www.dy.fi/files/${MY_P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86" IUSE="" SLOT="0" LICENSE="GPL-2" DEPEND="dev-lang/perl" src_unpack() { unpack ${A} cd ${WORKDIR}/${MY_P} epatch ${FILESDIR}/${P}.gentoo.patch.bz2 } src_compile() { enewgroup dyfi } src_install() { cd ${WORKDIR}/${MY_P} make DESTDIR=${D} install } pkg_postinst() { if [ ! -e /var/log/dyfi-update.log ]; then einfo "touching /var/log/dyfi-update.log and making it awailable only for root and dyfi..." touch /var/log/dyfi-update.log chown root:dyfi /var/log/dyfi-update.log chmod 660 /var/log/dyfi-update.log fi einfo "Configuration file is located at" einfo "/etc/dyfi-update.conf" einfo "" }