diff options
author | psyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet> | 1984-04-04 00:44:28 +0000 |
---|---|---|
committer | psyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet> | 1984-04-04 00:44:28 +0000 |
commit | e954ad441fa3d705442dc8bde32539c58721da70 (patch) | |
tree | 5f144c6fd8fa170e874b04f3a84d7f74c32afac8 | |
parent | 049ab14cb32bdc0cdfd57282d31ee475b0ab8680 (diff) | |
download | youbroketheinternet-overlay-e954ad441fa3d705442dc8bde32539c58721da70.tar.gz youbroketheinternet-overlay-e954ad441fa3d705442dc8bde32539c58721da70.zip |
adding rc5, pretty stable version of gnunet
-rw-r--r-- | net-misc/gnunet/gnunet-0.10.2_rc4.ebuild | 4 | ||||
-rw-r--r-- | net-misc/gnunet/gnunet-0.10.2_rc5.ebuild | 235 | ||||
-rw-r--r-- | net-misc/gnunet/gnunet-9999.ebuild | 4 |
3 files changed, 243 insertions, 0 deletions
diff --git a/net-misc/gnunet/gnunet-0.10.2_rc4.ebuild b/net-misc/gnunet/gnunet-0.10.2_rc4.ebuild index d705cf1..22bb6aa 100644 --- a/net-misc/gnunet/gnunet-0.10.2_rc4.ebuild +++ b/net-misc/gnunet/gnunet-0.10.2_rc4.ebuild | |||
@@ -36,6 +36,10 @@ case ${PV} in | |||
36 | # using latest git. caution: | 36 | # using latest git. caution: |
37 | # this method is prone to man-in-the-middle attacks | 37 | # this method is prone to man-in-the-middle attacks |
38 | ;; | 38 | ;; |
39 | "0.10.2_rc5") | ||
40 | inherit autotools git-r3 user python-any-r1 flag-o-matic | ||
41 | EGIT_COMMIT="67367ce73933cd065f77b176762fb22b3ef849f1" | ||
42 | ;; | ||
39 | "0.10.2_rc4") | 43 | "0.10.2_rc4") |
40 | inherit autotools git-r3 user python-any-r1 flag-o-matic | 44 | inherit autotools git-r3 user python-any-r1 flag-o-matic |
41 | EGIT_COMMIT="6bcc73a1cbb1d4a609884762eab1b6de761ad1d9" | 45 | EGIT_COMMIT="6bcc73a1cbb1d4a609884762eab1b6de761ad1d9" |
diff --git a/net-misc/gnunet/gnunet-0.10.2_rc5.ebuild b/net-misc/gnunet/gnunet-0.10.2_rc5.ebuild new file mode 100644 index 0000000..22bb6aa --- /dev/null +++ b/net-misc/gnunet/gnunet-0.10.2_rc5.ebuild | |||
@@ -0,0 +1,235 @@ | |||
1 | # Copyright 1999-2016 Gentoo Foundation | ||
2 | # Distributed under the terms of the GNU General Public License v2 | ||
3 | # Written by, in historic order: vminko, vonlynX, ng0. | ||
4 | # https://gnunet.org/gentoo-build is outdated, please ignore. | ||
5 | # | ||
6 | # taken from https://338909.bugs.gentoo.org/attachment.cgi?id=381924 | ||
7 | # referenced at https://bugs.gentoo.org/show_bug.cgi?id=338909 | ||
8 | # merged with 9999 variant from emery overlay | ||
9 | # refined 2015-07 by carlo von lynX of youbroketheinternet.org | ||
10 | # tweaks since 2015-07 by ng0 and lynX | ||
11 | |||
12 | EAPI=6 | ||
13 | |||
14 | DESCRIPTION="Cryptographic GNU Mesh/Underlay Network Routing Layer" | ||
15 | HOMEPAGE="https://gnunet.org/" | ||
16 | LICENSE="GPL-3" | ||
17 | KEYWORDS="~" | ||
18 | # KEYWORDS="~amd64 ~x86" | ||
19 | SLOT="0" | ||
20 | |||
21 | PYTHON_COMPAT=( python2_7 ) | ||
22 | WANT_AUTOCONF="2.5" | ||
23 | WANT_AUTOMAKE="1.11" | ||
24 | # WANT_LIBTOOL="2.2" | ||
25 | AUTOTOOLS_AUTORECONF=1 | ||
26 | |||
27 | # if you're a gnunet developer, you can put a symlink to your local git here: | ||
28 | EGIT_REPO_URI="/usr/local/src/${PN} | ||
29 | https://gnunet.org/git/${PN} | ||
30 | https://github.com/gnunet/${PN} | ||
31 | git://git.gnunet.org/${PN}" | ||
32 | |||
33 | case ${PV} in | ||
34 | "9999") | ||
35 | inherit autotools git-r3 user python-any-r1 flag-o-matic | ||
36 | # using latest git. caution: | ||
37 | # this method is prone to man-in-the-middle attacks | ||
38 | ;; | ||
39 | "0.10.2_rc5") | ||
40 | inherit autotools git-r3 user python-any-r1 flag-o-matic | ||
41 | EGIT_COMMIT="67367ce73933cd065f77b176762fb22b3ef849f1" | ||
42 | ;; | ||
43 | "0.10.2_rc4") | ||
44 | inherit autotools git-r3 user python-any-r1 flag-o-matic | ||
45 | EGIT_COMMIT="6bcc73a1cbb1d4a609884762eab1b6de761ad1d9" | ||
46 | ;; | ||
47 | "0.10.1") | ||
48 | inherit autotools user python-any-r1 flag-o-matic | ||
49 | SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" | ||
50 | S="${WORKDIR}/${PN}" | ||
51 | # tests of gnunet <= 0.10.1 are using python 2.7, gnunet HEAD uses python 3. | ||
52 | ;; | ||
53 | esac | ||
54 | #S="${WORKDIR}/${PF}/${PN}" | ||
55 | |||
56 | AUTOTOOLS_IN_SOURCE_BUILD=1 | ||
57 | |||
58 | # XXX: There is a false warning about root or sudo required for GNS NSS library | ||
59 | # installation, claiming that it will not be installed if it is missing from the | ||
60 | # build environment. With current HEAD (Aug 28 2016) it seems that sudo is no | ||
61 | # longer needed, neither is root. This warning must be fixed in gnunet. | ||
62 | IUSE="debug +httpd +sqlite postgres mysql nls +nss +X +gnutls dane +bluetooth \ | ||
63 | ssl libressl experimental extra pulseaudio gstreamer qr tex test \ | ||
64 | +gnurl +curl curl_ssl_gnutls" | ||
65 | |||
66 | # !!! TODO: Sort run depend, required use, build time use. | ||
67 | REQUIRED_USE="|| ( mysql postgres sqlite ) | ||
68 | ?? ( pulseaudio gstreamer ) | ||
69 | experimental? ( || ( extra ) ) | ||
70 | extra? ( || ( experimental ) )" | ||
71 | |||
72 | # XXX: We do not know if libressl is functional here, at least it does build, | ||
73 | # so buildtime is safe, runtime should be too. If you find bugs, get in contact | ||
74 | # with me. | ||
75 | ## Helpful notes: https://gnunet.org/bugs/view.php?id=4618#bugnotes | ||
76 | RDEPEND=" | ||
77 | mysql? ( >=virtual/mysql-5.1 ) | ||
78 | postgres? ( >=dev-db/postgresql-8.3:= ) | ||
79 | sqlite? ( >=dev-db/sqlite-3.0 ) | ||
80 | >=media-libs/libextractor-0.6.1 | ||
81 | >=dev-libs/libgcrypt-1.6 | ||
82 | >=dev-libs/libunistring-0.9.3 | ||
83 | curl? ( | ||
84 | gnurl? ( >=net-misc/gnurl-7.50.1 ) | ||
85 | !gnurl? ( >=net-misc/curl-7.50.1[curl_ssl_gnutls] ) | ||
86 | ) | ||
87 | gnutls? ( net-libs/gnutls ) | ||
88 | dane? ( net-libs/gnutls[dane] ) | ||
89 | ssl? ( | ||
90 | !libressl? ( dev-libs/openssl:0= ) | ||
91 | libressl? ( dev-libs/libressl:0= ) | ||
92 | ) | ||
93 | net-dns/libidn | ||
94 | sys-libs/zlib | ||
95 | httpd? ( >=net-libs/libmicrohttpd-0.9.42[messages] ) | ||
96 | nls? ( >=sys-devel/gettext-0.18.1 ) | ||
97 | nss? ( | ||
98 | dev-libs/nss | ||
99 | sys-libs/glibc | ||
100 | ) | ||
101 | dev-libs/gmp:0= | ||
102 | X? ( | ||
103 | x11-libs/libXt | ||
104 | x11-libs/libXext | ||
105 | x11-libs/libX11 | ||
106 | x11-libs/libXrandr | ||
107 | ) | ||
108 | dev-libs/jansson | ||
109 | >=sci-mathematics/glpk-4.43 | ||
110 | extra? ( | ||
111 | qr? ( >=media-gfx/zbar-0.10[python] ) | ||
112 | tex? ( >=app-text/texlive-2012 ) | ||
113 | ) | ||
114 | gstreamer? ( | ||
115 | media-libs/gstreamer:1.0 | ||
116 | dev-libs/glib:2 | ||
117 | ) | ||
118 | pulseaudio? ( >=media-sound/pulseaudio-2.0 ) | ||
119 | >=media-libs/opus-1.0.1 | ||
120 | >=media-libs/libogg-1.3.0 | ||
121 | bluetooth? ( net-wireless/bluez ) | ||
122 | test? ( ${PYTHON_DEPS} )" | ||
123 | |||
124 | DEPEND="${RDEPEND} | ||
125 | sys-devel/automake:1.14" | ||
126 | |||
127 | # TODO: We should run tests on Gentoo, currently this fails. | ||
128 | |||
129 | # XXX: parallel building fails, run one job only. | ||
130 | MAKEOPTS="-j1" | ||
131 | |||
132 | pkg_setup() { | ||
133 | export GNUNET_HOME="${GNUNET_HOME:=/var/lib/gnunet}" | ||
134 | # this does not work, someone fix this. | ||
135 | export GNUNET_PREFIX="${EPREFIX}/usr/lib" | ||
136 | enewgroup gnunetdns | ||
137 | enewgroup gnunet | ||
138 | enewuser gnunet -1 /bin/sh "${GNUNET_HOME}" gnunet | ||
139 | if [[ $(egethome gnunet) != ${GNUNET_HOME} ]]; then | ||
140 | ewarn "For homedir different from" | ||
141 | ewarn "/var/lib/gnunet set GNUNET_HOME in your make.conf" | ||
142 | ewarn "and re-emerge." | ||
143 | esethome gnunet "${GNUNET_HOME}" | ||
144 | fi | ||
145 | } | ||
146 | |||
147 | # Here we add and run what bootstrap would do. | ||
148 | src_prepare() { | ||
149 | if [[ "${PV}" == "0.10.1_pre01021" ]]; then | ||
150 | rm -rf libltdl || die | ||
151 | eautoreconf | ||
152 | ./contrib/pogen.sh || die | ||
153 | default | ||
154 | eapply_user | ||
155 | elif [[ "${PV}" == "9999" ]]; then | ||
156 | rm -rf libltdl || die | ||
157 | eautoreconf | ||
158 | ./contrib/pogen.sh || die | ||
159 | default | ||
160 | eapply_user | ||
161 | else | ||
162 | default | ||
163 | eapply_user | ||
164 | fi | ||
165 | } | ||
166 | |||
167 | src_configure() { | ||
168 | ./bootstrap | ||
169 | econf \ | ||
170 | $(use_enable experimental ) \ | ||
171 | $(use_with httpd microhttpd ) \ | ||
172 | $(use_with mysql ) \ | ||
173 | $(use_with postgres postgresql ) \ | ||
174 | $(use_with sqlite ) \ | ||
175 | $(use_with X x ) \ | ||
176 | $(use_with gnutls ) \ | ||
177 | --with-extractor | ||
178 | } | ||
179 | # $(use_with sudo ) | ||
180 | |||
181 | |||
182 | src_install() { | ||
183 | into / | ||
184 | use nss && dolib.so src/gns/nss/.libs/libnss_gns*.so* | ||
185 | emake DESTDIR="${D}" install | ||
186 | rm -rf ${D}/usr/lib/gnunet/nss | ||
187 | newinitd "${FILESDIR}/${PN}.initd" gnunet | ||
188 | insinto /etc | ||
189 | use nss && doins "${FILESDIR}/nsswitch.conf" | ||
190 | insinto /etc/gnunet | ||
191 | doins "${FILESDIR}/gnunet.conf" | ||
192 | keepdir /var/{lib,log}/gnunet | ||
193 | fowners gnunet:gnunet /var/lib/gnunet /var/log/gnunet | ||
194 | } | ||
195 | |||
196 | pkg_postinst() { | ||
197 | # We should update the gtk icon cache for the icons. | ||
198 | # @TODO: provide average working example config to copy for user. | ||
199 | # @TODO: point out that exact time is needed currently. | ||
200 | elog " " | ||
201 | elog "To configure" | ||
202 | elog " 1) Add desired user(s) to the 'gnunet' group" | ||
203 | elog " 2) Edit the system-wide config file '/etc/gnunet/gnunet.conf'" | ||
204 | elog " preferably using 'gnunet-setup -c /etc/gnunet/gnunet.conf'" | ||
205 | elog " ('gnunet-setup' is part of the gnunet-gtk package)" | ||
206 | elog " 3) You may want to choose other bootstrap nodes than the ones" | ||
207 | elog " provided in /usr/share/gnunet/hellos or remove them if you" | ||
208 | elog " want to run GNUnet another way." | ||
209 | elog " 4) Certain services will require '/dev/net/tun' to exist," | ||
210 | elog " which you must enable in your kernel." | ||
211 | elog " " | ||
212 | elog "Optionally, emerge gnunet-gtk to get a GUI for file-sharing and" | ||
213 | elog "configuration. This is particularly recommended" | ||
214 | elog "if your network setup is non-trivial, as gnunet-setup can be" | ||
215 | elog "used to test in the GUI if your network configuration is working." | ||
216 | elog "gnunet-setup should be run as the \"gnunet\" user under X. As it" | ||
217 | elog "does very little with the network, running it as \"root\" is likely" | ||
218 | elog "also harmless. You can also run it as a normal user, but then" | ||
219 | elog "you have to copy \"~/.gnunet/gnunet.conf\" over to the \"gnunet\" user's" | ||
220 | elog "home directory in the end." | ||
221 | elog " " | ||
222 | elog "Once you have configured your peer, run (as the 'gnunet' user)" | ||
223 | elog "\"gnunet-arm -s\" to start the peer. You can then run the various" | ||
224 | elog "GNUnet-tools as your \"normal\" user (who should only be in the group 'gnunet')." | ||
225 | elog " " | ||
226 | elog "Please emerge a network time protocol daemon or use other means to keep accurate" | ||
227 | elog "time on your device, otherwise you might experience problems." | ||
228 | } | ||
229 | |||
230 | pkg_postrm() { | ||
231 | elog " " | ||
232 | elog "You have to manually remove the previously created gnunet user" | ||
233 | elog "and the gnunet + gnunetdns groups." | ||
234 | elog " " | ||
235 | } | ||
diff --git a/net-misc/gnunet/gnunet-9999.ebuild b/net-misc/gnunet/gnunet-9999.ebuild index d705cf1..22bb6aa 100644 --- a/net-misc/gnunet/gnunet-9999.ebuild +++ b/net-misc/gnunet/gnunet-9999.ebuild | |||
@@ -36,6 +36,10 @@ case ${PV} in | |||
36 | # using latest git. caution: | 36 | # using latest git. caution: |
37 | # this method is prone to man-in-the-middle attacks | 37 | # this method is prone to man-in-the-middle attacks |
38 | ;; | 38 | ;; |
39 | "0.10.2_rc5") | ||
40 | inherit autotools git-r3 user python-any-r1 flag-o-matic | ||
41 | EGIT_COMMIT="67367ce73933cd065f77b176762fb22b3ef849f1" | ||
42 | ;; | ||
39 | "0.10.2_rc4") | 43 | "0.10.2_rc4") |
40 | inherit autotools git-r3 user python-any-r1 flag-o-matic | 44 | inherit autotools git-r3 user python-any-r1 flag-o-matic |
41 | EGIT_COMMIT="6bcc73a1cbb1d4a609884762eab1b6de761ad1d9" | 45 | EGIT_COMMIT="6bcc73a1cbb1d4a609884762eab1b6de761ad1d9" |