Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68197 - New ebuild: sipcalc
Summary: New ebuild: sipcalc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Andrej Kacian (RETIRED)
URL: http://www.routemeister.net/projects/...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-10-19 13:21 UTC by Marti Raudsepp
Modified: 2005-03-30 15:40 UTC (History)
0 users

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


Attachments
The proposed sipcalc version 1.1.2 ebuild file (sipcalc-1.1.2.ebuild,621 bytes, text/plain)
2004-10-19 13:23 UTC, Marti Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marti Raudsepp 2004-10-19 13:21:59 UTC
Portage doesn't include an useful utility named sipcalc.
Short description: Sipcalc is an advanced console-based IP subnet calculator. It can take multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude of information about a given subnet.

Freshmeat URL: http://www.routemeister.net/projects/sipcalc/
Project URL: http://freshmeat.net/redir/sipcalc/20433/url_homepage/sipcalc

A proposed ebuild is included. I'm new to writing ebuilds, so I could have done something wrong, although it works fine for me.

Reproducible: Always
Steps to Reproduce:




# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

IUSE=""
DESCRIPTION="Sipcalc is an advanced console-based IP subnet calculator."
HOMEPAGE="http://www.routemeister.net/projects/sipcalc/"
KEYWORDS="~x86"
SRC_URI="http://www.routemeister.net/projects/sipcalc/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"

DEPEND="virtual/glibc"

src_compile() {
	econf --prefix="${D}" --bindir="${D}/usr/bin" --mandir="${D}/usr/man" || die 
"econf failed"
	emake || die
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc ChangeLog AUTHORS COPYING INSTALL NEWS README TODO
}
Comment 1 Marti Raudsepp 2004-10-19 13:23:54 UTC
Created attachment 42218 [details]
The proposed sipcalc version 1.1.2 ebuild file
Comment 2 Marti Raudsepp 2004-10-19 14:08:59 UTC
Comment on attachment 42218 [details]
The proposed sipcalc version 1.1.2 ebuild file

net-misc/sipcalc/sipcalc-1.1.2.ebuild
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2004-11-20 06:12:29 UTC
I'll take this one.
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2004-11-20 06:23:26 UTC
Passing all those prefixes to econf is not a good idea. Have a look at where it installs files when merging into live system - they're installed back inside sandbox image (/var/tmp/portage/${P}/image/), instead of live system (/).
Just 'econf || die "econf failed"' suffices.

Also, we need to use virtual/libc in DEPEND now, as there are more libc packages (glibc, uclibc, other on some exotic arches).

Anyway, I've corrected the ebuild and have submitted it to CVS portage. Should be hitting mirrors in few hours. Thanks for submission!
Comment 5 Octavio Ruiz (Ta^3) 2005-03-30 15:36:42 UTC
net-misc/sipcalc-1.1.2 works for amd64, see bug #87346
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2005-03-30 15:40:47 UTC
Thanks for letting me know