Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340861 - net-misc/taptap-1.0.ebuild addition request
Summary: net-misc/taptap-1.0.ebuild addition request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.munted.org.uk/programming/...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-10-13 16:56 UTC by Alex Buell
Modified: 2010-11-07 20:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for net-misc/taptap-1.0 (taptap-1.0.ebuild,574 bytes, text/plain)
2010-10-13 16:58 UTC, Alex Buell
Details
ebuild for net-misc/taptap-1.0; obselotes previous one (taptap-1.0.ebuild,562 bytes, text/plain)
2010-11-07 20:16 UTC, Alex Buell
Details
patch to remove an extra 'taptap' in ebuild (patch,392 bytes, text/plain)
2010-11-07 20:41 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2010-10-13 16:56:59 UTC
Included with this is an ebuild for a very useful utility that I think more people should know about. taptap creates two /dev/tap* devices and connects each other. This is very useful for emulators that need to be on a separate subnet such as simh-vax etc.
Comment 1 Alex Buell 2010-10-13 16:58:22 UTC
Created attachment 250465 [details]
ebuild for net-misc/taptap-1.0
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-10-14 00:28:28 UTC
Homepage is 403/Forbidden
Comment 3 Alex Buell 2010-10-14 08:34:40 UTC
That's right there's only the tarball in there. I'll add an index page. Sorry for the omission!
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-11-07 19:59:41 UTC
> inherit eutils toolchain-funcs

There is no need to put "eutils" in inherit if you don't plan to use it. Nothing in this ebuild does.

> LICENSE="GPLv2"

LICENSE is _a filename_ from /usr/portage/licenses/ so it's called GPL-2 instead of GPLv2.

> KEYWORDS="x86 ppc arm amd64"

New ebuilds get only ~arch keywords, and only for arches you have tested them yourself. And it's good practise to alphabetically sort it. 

> emake CC="$(tc-getCC)" -C taptap || die
[ .. ]
> emake DESTDIR="${D}" -C taptap install || die

If you always target -C taptap, you might as well set:

S=${WORKDIR}/taptap or S=${WORKDIR}/${PN}

And drop the -C taptap's since then you'd be inside that directory.
Comment 5 Alex Buell 2010-11-07 20:16:42 UTC
Created attachment 253555 [details]
ebuild for net-misc/taptap-1.0; obselotes previous one
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-11-07 20:31:03 UTC
+*taptap-1.0 (07 Nov 2010)
+
+  07 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> +taptap-1.0.ebuild:
+  Initial commit wrt #340861 by Alex Buell.
Comment 7 Alex Buell 2010-11-07 20:40:21 UTC
Previous ebuild was wrong, here's the patch for it, sorry :S

--- /home/alex/bittorrents/taptap-1.0.ebuild	2010-11-07 20:37:39.982000001 +0000
+++ taptap-1.0.ebuild	2010-11-07 20:34:58.698000001 +0000
@@ -8,7 +8,7 @@
 
 DESCRIPTION="Creates a pair of tap devices and connect them together"
 HOMEPAGE="http://www.munted.org.uk/programming/taptap/"
-SRC_URI="${HOMEPAGE}taptap/${P}.tar.bz2"
+SRC_URI="${HOMEPAGE}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
Comment 8 Alex Buell 2010-11-07 20:41:25 UTC
Created attachment 253557 [details]
patch to remove an extra 'taptap' in ebuild