/[gentoo-x86]/net-misc/gateway6/gateway6-6.0-r2.ebuild
Gentoo

Contents of /net-misc/gateway6/gateway6-6.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Sep 7 09:22:21 2011 UTC (8 years, 3 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove packages.

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/gateway6/gateway6-6.0-r2.ebuild,v 1.5 2010/10/24 17:59:21 armin76 Exp $
4
5 EAPI=2
6
7 inherit eutils versionator toolchain-funcs
8
9 MY_P=gw6c-$(replace_all_version_separators "_")
10 MY_P=${MY_P/_beta/-BETA}
11
12 DESCRIPTION="Client to connect to a tunnel broker using the TSP protocol (freenet6 for example)"
13 HOMEPAGE="http://go6.net/4105/application.asp"
14 SRC_URI="http://go6.net/4105/file.asp?file_id=158&file=/${MY_P}.tar.gz"
15
16 LICENSE="VPL-1.0"
17 SLOT="0"
18 KEYWORDS="amd64 hppa sparc x86"
19 IUSE="debug"
20
21 DEPEND="dev-libs/openssl"
22 RDEPEND="${DEPEND}
23 sys-apps/iproute2"
24
25 S="${WORKDIR}/${MY_P}-RELEASE"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${PN}-6.0_beta4-no-template-validation.patch
29 epatch "${FILESDIR}"/${P}-overflow.patch
30
31 # Make the makefile handle linking correctly
32 find . -name Makefile -exec sed -i \
33 -e 's:LDFLAGS:LDLIBS:g' \
34 -e '/\$(LDLIBS)/s:-o:$(LDFLAGS) -o:' \
35 {} + || die "multised failed"
36 }
37
38 src_configure() { :; }
39
40 src_compile() {
41 # parallel make fails as inter-directory dependecies are missing.
42 emake -j1 \
43 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
44 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getCXX)" \
45 EXTRA_CFLAGS="${CFLAGS}" EXTRA_CXXFLAGS="${CXXFLAGS}" \
46 $(use debug && echo DEBUG=1) \
47 all configdir=/etc/gateway6 target=linux || die "Build Failed"
48 }
49
50 src_install() {
51 cd "${S}"/tspc-advanced
52 dosbin bin/gw6c || die
53
54 insopts -m 600
55 insinto /etc/gateway6
56 doins "${FILESDIR}"/gw6c.conf || die
57 exeinto /etc/gateway6/template
58 doexe template/linux.sh || die
59
60 newinitd "${FILESDIR}"/gw6c.rc2 gw6c || die
61
62 doman man/{man5/gw6c.conf.5,man8/gw6c.8} || die
63 keepdir /var/lib/gateway6 || die
64
65 insinto /usr/share/doc/${PF}
66 doins "${S}"/*.pdf || die
67 }
68
69 pkg_postinst() {
70 elog "To add support for a TSP IPv6 connection at startup,"
71 elog "remember to run:"
72 elog "# rc-update add gw6c default"
73 elog ""
74 elog "NOTE: authenticated connection to broker.freenet6.net seems to"
75 elog "not work with gateway6 anymore, it only seems to work with"
76 elog "anonymous usage."
77 }

  ViewVC Help
Powered by ViewVC 1.1.20