1 |
voyageur 14/02/26 15:40:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gogoc-1.2-r3.ebuild |
5 |
Log: |
6 |
Add systemd unit, thanks Jauhien Piatlicki <piatlicki@×××××.com> in bug #501596 |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C74525F2) |
9 |
|
10 |
Revision Changes Path |
11 |
1.24 net-misc/gogoc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?rev=1.24&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?rev=1.24&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?r1=1.23&r2=1.24 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v |
20 |
retrieving revision 1.23 |
21 |
retrieving revision 1.24 |
22 |
diff -u -r1.23 -r1.24 |
23 |
--- ChangeLog 23 May 2013 20:39:53 -0000 1.23 |
24 |
+++ ChangeLog 26 Feb 2014 15:40:46 -0000 1.24 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-misc/gogoc |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v 1.23 2013/05/23 20:39:53 voyageur Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v 1.24 2014/02/26 15:40:46 voyageur Exp $ |
31 |
+ |
32 |
+*gogoc-1.2-r3 (26 Feb 2014) |
33 |
+ |
34 |
+ 26 Feb 2014; Bernard Cafarelli <voyageur@g.o> +gogoc-1.2-r3.ebuild, |
35 |
+ +files/gogoc.service: |
36 |
+ Add systemd unit, thanks Jauhien Piatlicki <piatlicki@×××××.com> in bug |
37 |
+ #501596 |
38 |
|
39 |
23 May 2013; Bernard Cafarelli <voyageur@g.o> -gogoc-1.2-r1.ebuild, |
40 |
gogoc-1.2-r2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-misc/gogoc/gogoc-1.2-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/gogoc-1.2-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/gogoc-1.2-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gogoc-1.2-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/gogoc-1.2-r3.ebuild,v 1.1 2014/02/26 15:40:46 voyageur Exp $ |
54 |
|
55 |
EAPI=4 |
56 |
|
57 |
inherit eutils systemd versionator toolchain-funcs |
58 |
|
59 |
MY_P=${PN}-$(replace_all_version_separators "_") |
60 |
if [[ ${MY_P/_beta/} != ${MY_P} ]]; then |
61 |
MY_P=${MY_P/_beta/-BETA} |
62 |
else |
63 |
MY_P=${MY_P}-RELEASE |
64 |
fi |
65 |
|
66 |
DESCRIPTION="Client to connect to a tunnel broker using the TSP protocol (freenet6 for example)" |
67 |
HOMEPAGE="http://gogonet.gogo6.com/page/download-1" |
68 |
SRC_URI="http://gogo6.com/downloads/${MY_P}.tar.gz" |
69 |
|
70 |
# GPL-2 for Gentoo init script |
71 |
LICENSE="MIT GPL-2" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~hppa ~sparc ~x86" |
74 |
IUSE="debug" |
75 |
|
76 |
DEPEND="dev-libs/openssl" |
77 |
RDEPEND="${DEPEND} |
78 |
sys-apps/iproute2 |
79 |
>=sys-apps/net-tools-1.60_p20120127084908" |
80 |
|
81 |
S="${WORKDIR}/${MY_P}" |
82 |
|
83 |
src_prepare() { |
84 |
epatch "${FILESDIR}"/${P}-overflow.patch |
85 |
epatch "${FILESDIR}"/${P}+gcc-4.6.patch |
86 |
|
87 |
# Make the makefile handle linking correctly |
88 |
find . -name Makefile -exec sed -i \ |
89 |
-e 's:LDFLAGS:LDLIBS:g' \ |
90 |
-e '/\$(LDLIBS)/s:-o:$(LDFLAGS) -o:' \ |
91 |
{} + || die "multised failed" |
92 |
|
93 |
sed -i -e 's:/usr/local/etc/gogoc:/etc/gogoc:' \ |
94 |
gogoc-tsp/platform/*/tsp_local.c \ |
95 |
|| die "path sed failed" |
96 |
|
97 |
# Newer net-tools use /bin |
98 |
sed -i -e "/^\(route\|ifconfig\)=/s/sbin/bin/" \ |
99 |
gogoc-tsp/template/linux.sh \ |
100 |
|| die "net-tools sed failed" |
101 |
} |
102 |
|
103 |
src_configure() { :; } |
104 |
|
105 |
src_compile() { |
106 |
# parallel make fails as inter-directory dependecies are missing. |
107 |
emake -j1 \ |
108 |
AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \ |
109 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getCXX)" \ |
110 |
EXTRA_CFLAGS="${CFLAGS}" EXTRA_CXXFLAGS="${CXXFLAGS}" \ |
111 |
$(use debug && echo DEBUG=1) \ |
112 |
all target=linux |
113 |
|
114 |
emake -C gogoc-tsp/conf \ |
115 |
PLATFORM=linux PLATFORM_DIR=../platform BIN_DIR=../bin \ |
116 |
gogoc.conf.sample |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
dodoc README |
121 |
|
122 |
cd "${S}"/gogoc-tsp |
123 |
dosbin bin/gogoc |
124 |
|
125 |
dodoc bin/gogoc.conf.sample |
126 |
|
127 |
exeinto /etc/gogoc/template |
128 |
doexe template/linux.sh |
129 |
|
130 |
newinitd "${FILESDIR}"/gogoc.rc gogoc |
131 |
systemd_dounit "${FILESDIR}"/${PN}.service |
132 |
|
133 |
doman man/{man5/gogoc.conf.5,man8/gogoc.8} |
134 |
keepdir /var/lib/gogoc |
135 |
|
136 |
diropts -m0700 |
137 |
keepdir /etc/gogoc |
138 |
} |
139 |
|
140 |
pkg_postinst() { |
141 |
elog "You should create an /etc/gogoc/gogoc.conf file starting from" |
142 |
elog "the sample configuration in /usr/share/doc/${PF}/gogoc.conf.sample.*" |
143 |
elog "" |
144 |
elog "To add support for a TSP IPv6 connection at startup," |
145 |
elog "remember to run:" |
146 |
elog "# rc-update add gogoc default" |
147 |
} |