diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-05-16 17:08:34 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-05-16 17:08:34 +0000 |
commit | a1802b2cd96e946c671b20bf984248d9283ed8f1 (patch) | |
tree | 461222ca654304ace5d45931738bfdfe83c83dc3 /net-nntp | |
parent | gcc.eclass -> toolchains-funcs.eclass; x86 (diff) | |
download | gentoo-2-a1802b2cd96e946c671b20bf984248d9283ed8f1.tar.gz gentoo-2-a1802b2cd96e946c671b20bf984248d9283ed8f1.tar.bz2 gentoo-2-a1802b2cd96e946c671b20bf984248d9283ed8f1.zip |
Added cross-compile support.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'net-nntp')
-rw-r--r-- | net-nntp/sn/ChangeLog | 5 | ||||
-rw-r--r-- | net-nntp/sn/sn-0.3.8.ebuild | 21 |
2 files changed, 14 insertions, 12 deletions
diff --git a/net-nntp/sn/ChangeLog b/net-nntp/sn/ChangeLog index 5cf170ef8cac..c0a9c86ac11e 100644 --- a/net-nntp/sn/ChangeLog +++ b/net-nntp/sn/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-nntp/sn # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/sn/ChangeLog,v 1.2 2005/01/17 21:50:41 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/sn/ChangeLog,v 1.3 2005/05/16 17:08:34 swegener Exp $ + + 16 May 2005; Sven Wegener <swegener@gentoo.org> sn-0.3.8.ebuild: + Added cross-compile support. *sn-0.3.8 (17 Jan 2005) diff --git a/net-nntp/sn/sn-0.3.8.ebuild b/net-nntp/sn/sn-0.3.8.ebuild index d8485e903d02..aead52c4727e 100644 --- a/net-nntp/sn/sn-0.3.8.ebuild +++ b/net-nntp/sn/sn-0.3.8.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/sn/sn-0.3.8.ebuild,v 1.1 2005/01/17 20:11:50 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/sn/sn-0.3.8.ebuild,v 1.2 2005/05/16 17:08:34 swegener Exp $ + +inherit toolchain-funcs DESCRIPTION="Hassle-free Usenet news system for small sites" SRC_URI="http://infa.abo.fi/~patrik/sn/files/${P}.tar.bz2" @@ -21,6 +23,7 @@ src_compile() { echo ${CFLAGS} >>cc-flags emake -j1 \ + CC="$(tc-getCC)" LD="$(tc-getCC)" \ SNROOT=/var/spool/news \ BINDIR=/usr/sbin \ MANDIR=/usr/share/man \ @@ -29,16 +32,12 @@ src_compile() { src_install() { dodir /var/spool/news /usr/sbin /usr/share/man/man8 - mknod -m 600 ${D}/var/spool/news/.fifo p + mknod -m 600 "${D}"/var/spool/news/.fifo p make install \ - SNROOT=${D}/var/spool/news \ - BINDIR=${D}/usr/sbin \ - MANDIR=${D}/usr/share/man \ + SNROOT="${D}"/var/spool/news \ + BINDIR="${D}"/usr/sbin \ + MANDIR="${D}"/usr/share/man \ || die "make install failed" - dodoc CHANGES FAQ INSTALL* INTERNALS README* THANKS TODO -} - -pkg_postinst() { - chown news:news /var/spool/news - chown news:news /var/spool/news/.fifo + dodoc CHANGES FAQ INSTALL* INTERNALS README* THANKS TODO || die "dodoc failed" + fowners news:news /var/spool/news{,/.fifo} } |