# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/noip-updater/noip-updater-2.1.1-r1.ebuild,v 1.9 2007/07/15 03:31:10 mr_bones_ Exp $ inherit eutils IUSE="" MY_P=${P/-updater/} S=${WORKDIR}/${MY_P} DESCRIPTION="no-ip.com dynamic DNS updater" HOMEPAGE="http://www.no-ip.com" SRC_URI="http://www.no-ip.com/client/linux/${MY_P}.tar.gz" PATCHES="${FILESDIR}/${MY_P}.patch" SLOT="0" LICENSE="GPL-2" KEYWORDS="alpha ~amd64 ~hppa ia64 ~mips ~ppc ppc64 sparc x86" RDEPEND="virtual/libc" DEPEND="${RDEPEND} sys-devel/gcc" src_unpack() { unpack ${A} cd ${S} sed -i \ -e "s:\(#define CONFIG_FILEPATH\).*:\1 \"/etc\":" \ -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" \ noip2.c } src_compile() { emake \ PREFIX=/usr \ CONFDIR=/etc || die } src_install() { into /usr dosbin noip2 dodoc README.FIRST COPYING newinitd ${FILESDIR}/noip2.start noip prepalldocs } pkg_postinst() { elog "Configuration can be done manually via:" elog "/usr/sbin/noip2 -C or " elog "first time you use the /etc/init.d/noip script; or" elog "by using this ebuild's config option." elog elog "You must update the /etc/init.d/noip script, the " elog "binary name and the command line options have " elog "changed." } pkg_config() { cd /tmp einfo "Answer the following questions." noip2 -C || die }