diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-15 06:53:46 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-15 06:53:46 +0000 |
commit | f69fd6cbdee4b9558d2d6df398d2d2c7a1e0b70b (patch) | |
tree | cab8bdabe6cc85e7df8d5fa5d4b3f181e861b10f /sys-apps | |
parent | new package as per bug #22103, submitted by cparpart@surakware.net, but heavi... (diff) | |
download | gentoo-2-f69fd6cbdee4b9558d2d6df398d2d2c7a1e0b70b.tar.gz gentoo-2-f69fd6cbdee4b9558d2d6df398d2d2c7a1e0b70b.tar.bz2 gentoo-2-f69fd6cbdee4b9558d2d6df398d2d2c7a1e0b70b.zip |
new package as per bug #22103, submitted by cparpart@surakware.net, but heavily modified to build properly
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/tcng/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/tcng/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/tcng/files/digest-tcng-9h | 4 | ||||
-rw-r--r-- | sys-apps/tcng/tcng-9h.ebuild | 88 |
4 files changed, 104 insertions, 1 deletions
diff --git a/sys-apps/tcng/ChangeLog b/sys-apps/tcng/ChangeLog new file mode 100644 index 000000000000..bd809d2e7fad --- /dev/null +++ b/sys-apps/tcng/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-apps/tcng +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/tcng/ChangeLog,v 1.1 2003/11/15 06:53:43 robbat2 Exp $ + +*tcng-9h (14 Nov 2003) + + 14 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> tcng-9h.ebuild: + new package as per bug #22103, submitted by cparpart@surakware.net, but + heavily modified to build properly + diff --git a/sys-apps/tcng/Manifest b/sys-apps/tcng/Manifest index 29f9a734a324..3ccccb474aba 100644 --- a/sys-apps/tcng/Manifest +++ b/sys-apps/tcng/Manifest @@ -1,2 +1,3 @@ -MD5 b4f1320da9e6bb6e71894cf0413da049 tcng-9h.ebuild 1764 +MD5 c92b6f964481d9fe5f49c4636c8549ed tcng-9h.ebuild 2462 +MD5 ae5171ff2158e80477a8c1327dfa34dd ChangeLog 413 MD5 452318324f0c5e0571d8db1a63ee78d2 files/digest-tcng-9h 270 diff --git a/sys-apps/tcng/files/digest-tcng-9h b/sys-apps/tcng/files/digest-tcng-9h new file mode 100644 index 000000000000..6d093976527e --- /dev/null +++ b/sys-apps/tcng/files/digest-tcng-9h @@ -0,0 +1,4 @@ +MD5 9b7c520f92b312a5a00da12bad35f57d tcng-9h.tar.gz 509887 +MD5 b05a4e375d9468be3a1dd3f0e83daee8 iproute2-2.4.7-now-ss010824.tar.gz 140139 +MD5 ac343233aa5d745341da9e4ec22475af iproute_20010824-11.diff.gz 44736 +MD5 3064fd8642ce6a7e155a29c5205b99d4 htb3.6-020525.tgz 64218 diff --git a/sys-apps/tcng/tcng-9h.ebuild b/sys-apps/tcng/tcng-9h.ebuild new file mode 100644 index 000000000000..9c4226ad3b71 --- /dev/null +++ b/sys-apps/tcng/tcng-9h.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/tcng/tcng-9h.ebuild,v 1.1 2003/11/15 06:53:43 robbat2 Exp $ + +DESCRIPTION="tcng - Traffic Control Next Generation" +HOMEPAGE="http://tcng.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="doc? ( app-text/ghostscript app-text/tetex media-gfx/transfig ) + dev-lang/perl + virtual/os-headers + sys-apps/iproute" +RDEPEND="sys-devel/gcc + tcng-tcsim? ( media-gfx/gnuplot ) + dev-lang/perl + sys-apps/iproute" + +IPROUTE_PN="iproute" +IPROUTE_PV="20010824" +IPROUTE_DEBIAN_PATCH_PV="11" +IPROUTE_P="${IPROUTE_PN}-${IPROUTE_PV}" +IPROUTE_DEBIAN_PATCH="${IPROUTE_P/-/_}-${IPROUTE_DEBIAN_PATCH_PV}.diff.gz" +IPROUTE_SRCFILE="iproute2-2.4.7-now-ss${IPROUTE_PV/20}.tar.gz" + +# note this project does NOT use the SF mirroring system +SRC_URI="http://tcng.sourceforge.net/dist/${P}.tar.gz + tcng-tcsim? ( ftp://ftp.inr.ac.ru/ip-routing/${IPROUTE_SRCFILE} + http://ftp.debian.org/debian/pool/main/i/iproute/${IPROUTE_DEBIAN_PATCH} )" + +S=${WORKDIR}/tcng +IPROUTE_S=${WORKDIR}/${IPROUTE_P} + +src_unpack() { + #unpack tcng + unpack ${P}.tar.gz + + if use tcng-tcsim; then + #unpack iproute + unpack ${IPROUTE_SRCFILE} + mv iproute2 iproute-20010824 + epatch ${DISTDIR}/${IPROUTE_DEBIAN_PATCH} + + ln -s ${IPROUTE_S} ${S}/tcsim/iproute2 + mkdir -p ${S}/tcsim/linux + ln -s /usr/include ${S}/tcsim/linux/include + fi +} + +src_compile() { + local myconf + use tcng-tcsim && myconf="${myconf} --with-tcsim" || myconf="${myconf} --no-tcsim" + ./configure \ + --install-directory /usr \ + --no-manual \ + ${myconf} \ + || die "configure failed" +# --with-tcsim <=== FIXME! +# --kernel /usr/src/linux +# --iproute2 ${IPROUTE_S} + emake || die + cd ${S}/doc + make tcng.txt + use doc && make tcng.pdf +} + +src_install() { + dodir /usr + dodir /usr/bin + # fix the install location + sed 's;INSTALL_DIR=\(.*\);INSTALL_DIR=${D}\1;g' -i config + make install-tcc || die "make install-tcc failed" + if use tcng-tcsim; then + make install-tcsim install-tests || die "make install-tcsim install-tests failed" + fi + + # lots of doc stuff + dodoc CHANGES COPYING.GPL COPYING.LGPL README TODO VERSION tcc/PARAMETERS + newdoc tcsim/BUGS BUGS.tcsim + newdoc tcsim/README README.tcsim + cp -ra examples examples-ng ${D}/usr/share/doc/${PF} + dodoc doc/tcng.txt doc/README.tccext + newdoc doc/README README.doc + if use doc; then + dodoc doc/tcng.ps doc/tcng.pdf + fi +} |