diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-11 12:47:12 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-11 12:47:12 +0000 |
commit | 56f3134486f01ba73c67a84a1d99a72ca34729f1 (patch) | |
tree | ac7f6369c0c251de2fe0a1c9718c005552b0c20e /net-misc/tiers/tiers-1.1.ebuild | |
parent | Added ~sparc keyword. (diff) | |
download | gentoo-2-56f3134486f01ba73c67a84a1d99a72ca34729f1.tar.gz gentoo-2-56f3134486f01ba73c67a84a1d99a72ca34729f1.tar.bz2 gentoo-2-56f3134486f01ba73c67a84a1d99a72ca34729f1.zip |
Initial commit, ebuild by robbat2@gentoo.org
Diffstat (limited to 'net-misc/tiers/tiers-1.1.ebuild')
-rw-r--r-- | net-misc/tiers/tiers-1.1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-misc/tiers/tiers-1.1.ebuild b/net-misc/tiers/tiers-1.1.ebuild new file mode 100644 index 000000000000..3ca50480486a --- /dev/null +++ b/net-misc/tiers/tiers-1.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/tiers/tiers-1.1.ebuild,v 1.1 2004/01/11 12:47:12 robbat2 Exp $ + +MY_P="${PN}${PV}" +DESCRIPTION="Random network topography generator" +HOMEPAGE="http://www.isi.edu/nsnam/ns/ns-topogen.html#tiers" +SRC_URI="http://www.isi.edu/nsnam/dist/topogen/${MY_P}.tar.gz + http://www.isi.edu/nsnam/dist/topogen/tiers2ns-lan.awk" +LICENSE="BSD as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="sys-devel/gcc virtual/glibc" +RDEPEND="sys-apps/gawk media-gfx/gnuplot virtual/glibc" +S=${WORKDIR}/${PN}${PV} + +src_unpack() { + unpack ${MY_P}.tar.gz + epatch ${FILESDIR}/${MY_P}-gccfixes.patch + sed -e '1a\#!/bin/sh' -e '1d' -e "s|-f |-f /usr/share/${PN}/|g" -i ${S}/bin/strip4gnuplot3.5 +} + +src_compile() { + cd ${S}/src + emake CFLAGS="${CFLAGS}" CONFIGFILE="/etc/tiers-gnuplot.conf" EXEC="../bin/tiers-gnuplot" || die + # cleanup for a sec + rm *.o + emake CFLAGS="${CFLAGS}" CONFIGFILE="/etc/tiers.conf" EXEC="../bin/tiers" || die +} + +src_install() { + dobin bin/tiers bin/tiers-gnuplot bin/strip4gnuplot3.5 + insinto /etc + newins src/tiers_config.generic tiers.conf + newins src/tiers_config.gnuplot tiers-gnuplot.conf + insinto /usr/share/${PN} + doins bin/*.awk ${DISTDIR}/tiers2ns-lan.awk + dodoc CHANGES COPYRIGHT README docs/* +} |