summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-05-16 17:23:32 +0000
committerSven Wegener <swegener@gentoo.org>2005-05-16 17:23:32 +0000
commit2eb5c3f17034790a689f535ca05d6f9b43be7a25 (patch)
treeec286f0b9b6339fdb0126e81e8b609c7d3f98168 /net-nntp/nntpswitch
parentyou see nothing (diff)
downloadgentoo-2-2eb5c3f17034790a689f535ca05d6f9b43be7a25.tar.gz
gentoo-2-2eb5c3f17034790a689f535ca05d6f9b43be7a25.tar.bz2
gentoo-2-2eb5c3f17034790a689f535ca05d6f9b43be7a25.zip
Added cross-compile support.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'net-nntp/nntpswitch')
-rw-r--r--net-nntp/nntpswitch/ChangeLog5
-rw-r--r--net-nntp/nntpswitch/nntpswitch-0.11.ebuild15
2 files changed, 13 insertions, 7 deletions
diff --git a/net-nntp/nntpswitch/ChangeLog b/net-nntp/nntpswitch/ChangeLog
index 80f632c3135d..22c899b25620 100644
--- a/net-nntp/nntpswitch/ChangeLog
+++ b/net-nntp/nntpswitch/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-nntp/nntpswitch
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nntpswitch/ChangeLog,v 1.2 2005/01/17 21:44:44 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nntpswitch/ChangeLog,v 1.3 2005/05/16 17:23:32 swegener Exp $
+
+ 16 May 2005; Sven Wegener <swegener@gentoo.org> nntpswitch-0.11.ebuild:
+ Added cross-compile support.
*nntpswitch-0.11 (17 Jan 2005)
diff --git a/net-nntp/nntpswitch/nntpswitch-0.11.ebuild b/net-nntp/nntpswitch/nntpswitch-0.11.ebuild
index 68052fcf99c1..d911811d5ae1 100644
--- a/net-nntp/nntpswitch/nntpswitch-0.11.ebuild
+++ b/net-nntp/nntpswitch/nntpswitch-0.11.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nntpswitch/nntpswitch-0.11.ebuild,v 1.1 2005/01/17 19:40:02 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nntpswitch/nntpswitch-0.11.ebuild,v 1.2 2005/05/16 17:23:32 swegener Exp $
+
+inherit toolchain-funcs
DESCRIPTION="Load Balancing NNTP Router"
HOMEPAGE="http://www.nntpswitch.org/"
@@ -17,21 +19,22 @@ RDEPEND="mysql? ( dev-db/mysql )
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
-S=${WORKDIR}/${PN}
+S="${WORKDIR}"/${PN}
src_unpack() {
unpack ${A}
sed -i \
+ -e "s/gcc/$(tc-getCC)/" \
-e "s/-O3/${CFLAGS}/" \
-e "s:lib/nntpswitch:$(get_libdir)/nntpswitch:" \
- ${S}/Makefile
+ "${S}"/Makefile
sed -i \
-e "s:/usr/local/lib:/usr/$(get_libdir)/nntpswitch:" \
- ${S}/nntpswitch.conf.in
+ "${S}"/nntpswitch.conf.in
sed -i \
-e "s:/usr/local/etc/nntpswitch/passwd:/etc/nntpswitch/passwd:" \
- ${S}/etc/access.conf
+ "${S}"/etc/access.conf
}
src_compile() {
@@ -63,7 +66,7 @@ src_install() {
dosym /var/lib/nntpswitch/active /etc/nntpswitch/active || die "dosym failed"
dosym /var/lib/nntpswitch/newsgroups /etc/nntpswitch/newsgroups || die "dosym failed"
- newinitd ${FILESDIR}/nntpswitch.init.d nntpswitch || die "newinitd failed"
+ newinitd "${FILESDIR}"/nntpswitch.init.d nntpswitch || die "newinitd failed"
}
pkg_postinst() {