Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/freenet6: ChangeLog freenet6-6.0.ebuild
Date: Mon, 06 Apr 2009 11:09:43
Message-Id: E1Lqmhx-0007B8-Hj@stork.gentoo.org
1 voyageur 09/04/06 11:09:41
2
3 Modified: ChangeLog
4 Added: freenet6-6.0.ebuild
5 Log:
6 Version bump, thanks to Dmitry S. Kulyabov <yamadharma@×××××.com> in bug #264350
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.40 net-misc/freenet6/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/freenet6/ChangeLog?rev=1.40&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/freenet6/ChangeLog?rev=1.40&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/freenet6/ChangeLog?r1=1.39&r2=1.40
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v
19 retrieving revision 1.39
20 retrieving revision 1.40
21 diff -u -r1.39 -r1.40
22 --- ChangeLog 30 Dec 2008 13:36:53 -0000 1.39
23 +++ ChangeLog 6 Apr 2009 11:09:41 -0000 1.40
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-misc/freenet6
26 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.39 2008/12/30 13:36:53 voyageur Exp $
28 +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.40 2009/04/06 11:09:41 voyageur Exp $
30 +
31 +*freenet6-6.0 (06 Apr 2009)
32 +
33 + 06 Apr 2009; Bernard Cafarelli <voyageur@g.o> +freenet6-6.0.ebuild:
34 + Version bump, thanks to Dmitry S. Kulyabov <yamadharma@×××××.com> in bug
35 + #264350
36
37 30 Dec 2008; Bernard Cafarelli <voyageur@g.o> files/gw6c.rc:
38 Stopping the tunnel needs SIGHUP, thanks Christian Limberg
39
40
41
42 1.1 net-misc/freenet6/freenet6-6.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/freenet6/freenet6-6.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/freenet6/freenet6-6.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: freenet6-6.0.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-6.0.ebuild,v 1.1 2009/04/06 11:09:41 voyageur Exp $
52
53 inherit eutils versionator toolchain-funcs
54
55 MY_P=gw6c-$(replace_all_version_separators "_")
56 MY_P=${MY_P/_beta/-BETA}
57
58 DESCRIPTION="Client to configure an IPv6 tunnel to freenet6"
59 HOMEPAGE="http://www.freenet6.net"
60 SRC_URI="http://go6.net/4105/file.asp?file_id=158&file=/${MY_P}.tar.gz"
61
62 LICENSE="VPL-1.0"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
65 IUSE="radvd"
66
67 DEPEND="dev-libs/openssl
68 sys-apps/iproute2
69 radvd? ( net-misc/radvd )"
70 RDEPEND="${DEPEND}"
71
72 S="${WORKDIR}/${MY_P}"
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77
78 epatch "${FILESDIR}"/${PN}-5.1-gcc43.patch
79 epatch "${FILESDIR}"/${PN}-6.0_beta4-no-template-validation.patch
80
81 for i in gw6c-config gw6c-messaging ; do
82 sed -i -e "s/-O2//" \
83 -e "s/CXXFLAGS=/CXXFLAGS+=/" \
84 -e "s/CFLAGS=/CFLAGS+=/" \
85 -e "s/LDFAGS=/LDFLAGS+=/" \
86 ${i}/Makefile || die "sed failed in ${i}"
87 done
88
89 cd tspc-advanced
90 for i in platform/linux platform/unix-common src/lib src/net src/tsp src/xml ; do
91 sed -i -e "s/-O2//" \
92 -e "s/CXXFLAGS=/CXXFLAGS+=/" \
93 -e "s/CFLAGS=/CFLAGS+=/" \
94 -e "s/LDFAGS=/LDFLAGS+=/" \
95 ${i}/Makefile || die "sed failed in ${i}"
96 done
97 }
98
99 src_compile() {
100 # Parallel compilation broken
101 emake -j1\
102 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
103 CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
104 all configdir=/etc/freenet6 target=linux || die "Build Failed"
105 }
106
107 src_install() {
108 cd "${S}"/tspc-advanced
109 dosbin bin/gw6c
110
111 insopts -m 600
112 insinto /etc/freenet6
113 doins "${FILESDIR}"/gw6c.conf
114 exeinto /etc/freenet6/template
115 doexe template/linux.sh
116
117 newinitd "${FILESDIR}"/gw6c.rc gw6c
118
119 doman man/{man5/gw6c.conf.5,man8/gw6c.8}
120 dodir /var/lib/freenet6
121
122 dodoc "${S}"/*.pdf
123 }
124
125 pkg_preinst() {
126 has_version "=${CATEGORY}/${PN}-1*"
127 upgrade_from_1_x=$?
128 }
129
130 pkg_postinst() {
131 if [[ $upgrade_from_1_x = 0 ]] ; then
132 ewarn "Warning: you are upgrading from an older version"
133 ewarn "The configuration file has been renamed to gw6c.conf"
134 ewarn "Remember to port your personal settings from tspc.conf to it"
135 ewarn "The init script has been renamed to 'gw6c',"
136 else
137 elog "The freenet6 ebuild installs an init script named 'gw6c'"
138 fi
139 elog "to coincide with the name of the client binary installed"
140 elog "To add support for a freenet6 connection at startup, do"
141 elog ""
142 elog "# rc-update add gw6c default"
143 }