/[gentoo-x86]/net-misc/ipv6calc/ipv6calc-0.98.0.ebuild
Gentoo

Contents of /net-misc/ipv6calc/ipv6calc-0.98.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 8 01:27:54 2015 UTC (2 years, 11 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Remove older versions.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ipv6calc/ipv6calc-0.98.0.ebuild,v 1.1 2015/08/08 00:49:16 blueness Exp $
4
5 EAPI="5"
6 inherit eutils
7
8 DESCRIPTION="IPv6 address calculator"
9 HOMEPAGE="http://www.deepspace6.net/projects/ipv6calc.html"
10 SRC_URI="ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
15 IUSE="geoip test"
16
17 RDEPEND="
18 dev-libs/openssl:=
19 geoip? ( >=dev-libs/geoip-1.4.7 )
20 "
21 DEPEND="${RDEPEND}
22 test? ( dev-perl/Digest-SHA1 )
23 "
24
25 #dev-perl/URI is needed for web interface, that is not installed now
26
27 src_configure() {
28 # These options are broken. You can't disable them. That's
29 # okay because we want then force enabled.
30 # --disable-db-as-registry
31 # --disable-db-cc-registry
32 if use geoip; then
33 myconf=$(use_enable geoip)
34 myconf+=" --with-geoip-db=${EPREFIX}/usr/share/GeoIP"
35 fi
36 econf \
37 --disable-bundled-getopt \
38 --disable-bundled-md5 \
39 --enable-shared \
40 --enable-dynamic-load \
41 --enable-db-ieee \
42 --enable-db-ipv4 \
43 --enable-db-ipv6 \
44 --disable-dbip \
45 --disable-external \
46 --disable-ip2location \
47 ${myconf}
48 }
49
50 src_compile() {
51 # Disable default CFLAGS (-O2 and -g)
52 emake DEFAULT_CFLAGS=""
53 }
54
55 src_test() {
56 if [[ ${EUID} -eq 0 ]]; then
57 # Disable tests that fail as root
58 echo true > ipv6logstats/test_ipv6logstats.sh
59 fi
60 default
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install
65 dodoc ChangeLog CREDITS README TODO USAGE
66 }

  ViewVC Help
Powered by ViewVC 1.1.20