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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 11 20:41:05 2010 UTC (9 years, 1 month ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump: fix overflow on 64-bit systems; update init script to note use --quiet and stop correctly; respect LDFLAGS (bug #334815); add debug USE flag.

(Portage version: 2.2_rc91/cvs/Linux x86_64)

1 # Copyright 1999-2009 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-r1.ebuild,v 1.1 2009/06/04 07:40:34 voyageur Exp $
4
5 inherit eutils versionator toolchain-funcs
6
7 MY_P=gw6c-$(replace_all_version_separators "_")
8 MY_P=${MY_P/_beta/-BETA}
9
10 DESCRIPTION="Client to connect to a tunnel broker using the TSP protocol (freenet6 for example)"
11 HOMEPAGE="http://go6.net/4105/application.asp"
12 SRC_URI="http://go6.net/4105/file.asp?file_id=158&file=/${MY_P}.tar.gz"
13
14 LICENSE="VPL-1.0"
15 SLOT="0"
16 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
17 IUSE="radvd"
18
19 DEPEND="dev-libs/openssl
20 sys-apps/iproute2
21 radvd? ( net-misc/radvd )"
22 RDEPEND="${DEPEND}"
23
24 S="${WORKDIR}/${MY_P}-RELEASE"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 epatch "${FILESDIR}"/${PN}-6.0_beta4-no-template-validation.patch
31
32 for i in gw6c-config gw6c-messaging ; do
33 sed -i -e "s/-O2//" \
34 -e "s/CXXFLAGS=/CXXFLAGS+=/" \
35 -e "s/CFLAGS=/CFLAGS+=/" \
36 -e "s/LDFAGS=/LDFLAGS+=/" \
37 ${i}/Makefile || die "sed failed in ${i}"
38 done
39
40 cd tspc-advanced
41 for i in platform/linux platform/unix-common src/lib src/net src/tsp src/xml ; do
42 sed -i -e "s/-O2//" \
43 -e "s/CXXFLAGS=/CXXFLAGS+=/" \
44 -e "s/CFLAGS=/CFLAGS+=/" \
45 -e "s/LDFAGS=/LDFLAGS+=/" \
46 ${i}/Makefile || die "sed failed in ${i}"
47 done
48 }
49
50 src_compile() {
51 # Parallel compilation broken
52 emake -j1\
53 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
54 CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
55 all configdir=/etc/gateway6 target=linux || die "Build Failed"
56 }
57
58 src_install() {
59 cd "${S}"/tspc-advanced
60 dosbin bin/gw6c
61
62 insopts -m 600
63 insinto /etc/gateway6
64 doins "${FILESDIR}"/gw6c.conf
65 exeinto /etc/gateway6/template
66 doexe template/linux.sh
67
68 newinitd "${FILESDIR}"/gw6c.rc gw6c
69
70 doman man/{man5/gw6c.conf.5,man8/gw6c.8}
71 dodir /var/lib/gateway6
72
73 dodoc "${S}"/*.pdf
74 }
75
76 pkg_postinst() {
77 elog "To add support for a TSP IPv6 connection at startup,"
78 elog "remember to run:"
79 elog "# rc-update add gw6c default"
80 }

  ViewVC Help
Powered by ViewVC 1.1.20