summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-09 07:35:49 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-05-09 07:35:49 +0000
commit77d0bcf5679b755592ff6ac4937030c4ddc4004f (patch)
treebaad3ee0dcdeb4b170b8dc3d6555e4af43d1940f /net-misc/freenet6
parentUpdate to 6.1-RELEASE. (diff)
downloadgentoo-2-77d0bcf5679b755592ff6ac4937030c4ddc4004f.tar.gz
gentoo-2-77d0bcf5679b755592ff6ac4937030c4ddc4004f.tar.bz2
gentoo-2-77d0bcf5679b755592ff6ac4937030c4ddc4004f.zip
Add changes to build on Gentoo/*BSD (from Kiko, bug #132553) and respect CC/CFLAGS/LDFLAGS.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'net-misc/freenet6')
-rw-r--r--net-misc/freenet6/ChangeLog8
-rw-r--r--net-misc/freenet6/files/digest-freenet6-1.0.02
-rw-r--r--net-misc/freenet6/freenet6-1.0.0.ebuild29
3 files changed, 29 insertions, 10 deletions
diff --git a/net-misc/freenet6/ChangeLog b/net-misc/freenet6/ChangeLog
index f8abdaebb2b8..f56dda39039d 100644
--- a/net-misc/freenet6/ChangeLog
+++ b/net-misc/freenet6/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/freenet6
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.9 2005/05/01 17:04:02 hansmi Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.10 2006/05/09 07:35:49 flameeyes Exp $
+
+ 09 May 2006; Diego Pettenò <flameeyes@gentoo.org> freenet6-1.0.0.ebuild:
+ Add changes to build on Gentoo/*BSD (from Kiko, bug #132553) and respect
+ CC/CFLAGS/LDFLAGS.
01 May 2005; Michael Hanselmann <hansmi@gentoo.org> freenet6-1.0.0.ebuild:
Stable on ppc.
diff --git a/net-misc/freenet6/files/digest-freenet6-1.0.0 b/net-misc/freenet6/files/digest-freenet6-1.0.0
index aaaf67ec7e47..ac5d872da253 100644
--- a/net-misc/freenet6/files/digest-freenet6-1.0.0
+++ b/net-misc/freenet6/files/digest-freenet6-1.0.0
@@ -1 +1,3 @@
MD5 a2b4edb1d52b874587533b4cf40de1ba freenet6-1.0.0.tgz 330953
+RMD160 28c7cceaaea5ffe4b740d09f7dbd4aed5abac69d freenet6-1.0.0.tgz 330953
+SHA256 0d834b55538eff2abc569aa5c7831f24525bea56354727d0f6d5933d0e5f1116 freenet6-1.0.0.tgz 330953
diff --git a/net-misc/freenet6/freenet6-1.0.0.ebuild b/net-misc/freenet6/freenet6-1.0.0.ebuild
index a56f2188efc1..64f32747d8ae 100644
--- a/net-misc/freenet6/freenet6-1.0.0.ebuild
+++ b/net-misc/freenet6/freenet6-1.0.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-1.0.0.ebuild,v 1.7 2005/05/01 17:04:02 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-1.0.0.ebuild,v 1.8 2006/05/09 07:35:49 flameeyes Exp $
inherit toolchain-funcs
@@ -15,18 +15,31 @@ IUSE=""
DEPEND=""
-S=${WORKDIR}/freenet6-client-1.0
+S="${WORKDIR}/freenet6-client-1.0"
+
+pkg_setup() {
+ case ${CHOST} in
+ *-openbsd*) OS=openbsd ;;
+ *-freebsd* | *-dragonfly*) OS=freebsd44 ;;
+ *-netbsd*) OS=netbsd ;;
+ *-linux*) OS=linux ;;
+ *)
+ die "Unknown target, please report this error after checking your CHOST."
+ ;;
+ esac
+}
src_unpack() {
unpack ${A}
- cd ${S}
- sed -i \
- -e "s:gcc -g -I\$(INC) -Wall:$(tc-getCC) -I\$(INC) ${CFLAGS}:" \
+ cd "${S}"
+
+ sed -i -e 's:\$(CC) -c:$(CC) $(CFLAGS) -c:' \
+ -e 's:\$(CC) \$(OBJDIR):$(CC) $(LDFLAGS) $(OBJDIR):' \
src/Makefile
}
src_compile() {
- emake all target=linux || die "Build Failed"
+ emake all CC="$(tc-getCC)" target="${OS}" || die "Build Failed"
}
src_install() {
@@ -36,7 +49,7 @@ src_install() {
insinto /etc/freenet6
doins ${FILESDIR}/tspc.conf
exeinto /etc/freenet6/template
- doexe template/{linux,checktunnel}.sh
+ doexe template/{${OS},checktunnel}.sh
doexe ${FILESDIR}/gentoo.sh
dodoc CONTRIB.txt LEGAL README