summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-07-30 18:23:19 +0000
committerSven Wegener <swegener@gentoo.org>2005-07-30 18:23:19 +0000
commit688300d41909a1cc1d8a0bc504775c7c63144e34 (patch)
treebea2d589540ddc7119ea825c8ba89867d362a897 /net-misc/ptrtd
parentQA: No need to cd ${S} at start of src_compile. (diff)
downloadgentoo-2-688300d41909a1cc1d8a0bc504775c7c63144e34.tar.gz
gentoo-2-688300d41909a1cc1d8a0bc504775c7c63144e34.tar.bz2
gentoo-2-688300d41909a1cc1d8a0bc504775c7c63144e34.zip
QA: Use emake CFLAGS="..." instead of an sed-hack.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/ptrtd')
-rw-r--r--net-misc/ptrtd/ptrtd-0.5.2.ebuild21
1 files changed, 6 insertions, 15 deletions
diff --git a/net-misc/ptrtd/ptrtd-0.5.2.ebuild b/net-misc/ptrtd/ptrtd-0.5.2.ebuild
index 3153dbd354ed..e5cee66c56b1 100644
--- a/net-misc/ptrtd/ptrtd-0.5.2.ebuild
+++ b/net-misc/ptrtd/ptrtd-0.5.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ptrtd/ptrtd-0.5.2.ebuild,v 1.5 2004/09/03 15:12:19 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ptrtd/ptrtd-0.5.2.ebuild,v 1.6 2005/07/30 18:23:19 swegener Exp $
DESCRIPTION="Portable Transport Relay Translator Daemon for IPv6"
HOMEPAGE="http://v6web.litech.org/ptrtd/"
@@ -14,25 +14,16 @@ IUSE=""
DEPEND=""
RDEPEND="sys-apps/iproute2"
-src_unpack() {
- unpack ${A}
- cd ${S}
- mv -f Makefile.in ${T}
- sed -e "s:-Wall -g:-Wall ${CFLAGS}:" \
- ${T}/Makefile.in > Makefile.in
+src_compile() {
+ econf || die "econf failed"
+ emake CFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
einstall || die
- dodir /etc/init.d
- dodir /etc/conf.d
-
- exeinto /etc/init.d/
- newexe ${FILESDIR}/ptrtd.initd ptrtd
-
- insinto /etc/conf.d/
- newins ${FILESDIR}/ptrtd.confd ptrtd
+ newinitd ${FILESDIR}/ptrtd.initd ptrtd
+ newconfd ${FILESDIR}/ptrtd.confd ptrtd
dodoc README
}