]>
Commit | Line | Data |
---|---|---|
f5d9b148 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without ipv6 # without IPv6 support | |
4 | # | |
f9a1bedf | 5 | Summary: An anonymous distributed secure network |
cfda3fa0 | 6 | Summary(pl.UTF-8): Anonimowa, rozproszona, bezpieczna sieć |
6ad3cf51 | 7 | Name: GNUnet |
f5d9b148 | 8 | Version: 0.6.5 |
f9a1bedf | 9 | Release: 0.1 |
f9a1bedf | 10 | License: GPL |
91f06b25 | 11 | Group: Applications/Networking |
755a0de5 | 12 | Source0: http://www.ovmj.org/GNUnet/download/%{name}-%{version}.tar.bz2 |
f5d9b148 | 13 | # Source0-md5: 8bca32b55dccdb5bde7bd2b38df9df03 |
f9a1bedf | 14 | Source1: gnunet.init |
e21d52e6 | 15 | Patch0: %{name}-nolibs.patch |
f5d9b148 | 16 | Patch1: %{name}-ipv6.patch |
f9a1bedf | 17 | URL: http://www.gnu.org/software/GNUnet/ |
e21d52e6 JB |
18 | BuildRequires: autoconf >= 2.57 |
19 | BuildRequires: automake | |
20 | BuildRequires: db-devel | |
21 | BuildRequires: gdbm-devel | |
f5d9b148 | 22 | BuildRequires: gettext-devel |
b517b910 | 23 | BuildRequires: gmp-devel >= 4.0.0 |
df9d3976 | 24 | BuildRequires: gtk+2-devel >= 2:2.4 |
f5d9b148 | 25 | BuildRequires: libextractor-devel >= 0.3.10 |
e21d52e6 JB |
26 | BuildRequires: libltdl-devel |
27 | BuildRequires: libtool >= 1:1.4.2-9 | |
28 | BuildRequires: mysql-devel >= 3.23.56 | |
3c319124 | 29 | BuildRequires: openssl-devel >= 0.9.7d |
91f06b25 | 30 | BuildRequires: rpmbuild(macros) >= 1.268 |
e21d52e6 | 31 | BuildRequires: tdb-devel |
91f06b25 ER |
32 | Requires(post,postun): /sbin/ldconfig |
33 | Requires(post,preun): /sbin/chkconfig | |
34 | Requires(postun): /usr/sbin/groupdel | |
35 | Requires(postun): /usr/sbin/userdel | |
f9a1bedf | 36 | Requires(pre): /bin/id |
9069b00e | 37 | Requires(pre): /usr/bin/getgid |
f9a1bedf | 38 | Requires(pre): /usr/sbin/groupadd |
39 | Requires(pre): /usr/sbin/useradd | |
6ad3cf51 JB |
40 | Requires: gdbm |
41 | Requires: gtk+ >= 1.2 | |
f5d9b148 | 42 | Requires: libextractor >= 0.3.10 |
43 | Requires: openssl >= 0.9.7d | |
91f06b25 | 44 | Requires: rc-scripts |
9069b00e | 45 | Provides: group(gnunet) |
46 | Provides: user(gnunet) | |
f9a1bedf | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
91f06b25 | 49 | %define _gnunethomedir /var/lib/GNUnet |
93709491 | 50 | |
1b503169 | 51 | %description |
52 | GNUnet is framework for secure peer-to-peer networking. The primary | |
53 | application for GNUnet is anonymous file-sharing. GNUnet is part of | |
91f06b25 | 54 | the GNU project <http://www.gnu.org/>. |
1b503169 | 55 | |
56 | While GNUnet file-sharing provides anonymity for its users, it also | |
57 | provides accounting to perform better resource allocation. | |
58 | Contributing users are rewarded with better service. Peers monitor the | |
59 | behavior of other peers and allocate resources for peers that are | |
60 | economically trusted. The content encoding makes it hard for peers to | |
61 | circumvent the reward system. | |
62 | ||
63 | GNUnet supports multiple transport protocols, currently UDP, TCP and | |
64 | SMTP. The framework automatically chooses a cheap transport that is | |
65 | currently available by both peers for any given link. It is possible | |
66 | to run GNUnet peers behind NAT boxes and almost all firewall | |
67 | configurations. | |
68 | ||
69 | This is a beta version. The important features have been implemented | |
70 | and tested. The security features are in place, but note that | |
71 | anonymity may be limited due to the small number of active | |
72 | participants. | |
73 | ||
74 | For a more detailed description of GNUnet, see our webpages at: | |
91f06b25 | 75 | <http://www.gnu.org/software/GNUnet/> and <http://www.ovmj.org/GNUnet/> |
1b503169 | 76 | |
8ba789ad JB |
77 | Note that this RPM contains only plain directories database frontend; |
78 | bdb, gdbm, mysql and tdb frontends are in separate subpackages. | |
1b503169 | 79 | |
cfda3fa0 | 80 | %description -l pl.UTF-8 |
f9a1bedf | 81 | GNUnet stanowi szkielet bezpiecznej sieci typu peer-to-peer. |
cfda3fa0 JR |
82 | Podstawową aplikacją GNUnet jest anonimowe współdzielenie plików. |
83 | GNUnet stanowi część projektu GNU (http://www.gnu.org/). | |
84 | ||
85 | Podczas gdy współdzielenie plików za pomocą GNUnet zapewnia | |
86 | użytkownikom anonimowość, umożliwia ono również ewidencjonowanie dla | |
87 | zapewnienia lepszego gospodarowania zasobami. Użytkownicy wnoszący coś | |
88 | są nagradzani lepszą jakością usługi. Każdy z równorzędnych | |
89 | użytkowników monitoruje zachowanie pozostałych i przydziela zasoby | |
90 | użytkownikom, którzy są ekonomicznie wiarygodni. Kodowanie treści | |
91 | czyni system nagród trudnym do przechytrzenia. | |
92 | ||
93 | GNUnet wspiera wiele protokołów transportowych, aktualnie: UDP, TCP i | |
94 | SMTP. Szkielet automatycznie wybiera tanią metodę transportu dostępną | |
95 | w danej chwili dla obu użytkowników przy dowolnym połączeniu. GNUnet | |
96 | może działać pomiędzy dwiema maszynami znajdującymi się za NAT i z | |
f9a1bedf | 97 | prawie wszystkimi konfiguracjami firewalli. |
98 | ||
cfda3fa0 JR |
99 | Jest to wersja beta. Najważniejsze funkcje zostały zaimplementowane i |
100 | przetestowane. Funkcje zapewniające bezpieczeństwo są na swoim | |
101 | miejscu, lecz należy zauważyć, że anonimowość może być ograniczona ze | |
102 | względu na małą liczbę aktywnych uczestników. | |
f9a1bedf | 103 | |
cfda3fa0 | 104 | Bardziej szczegółowy opis GNUnet można znaleźć na stronie: |
91f06b25 | 105 | <http://www.gnu.org/software/GNUnet/> i <http://www.ovmj.org/GNUnet/> |
f9a1bedf | 106 | |
cfda3fa0 JR |
107 | Należy też zauważyć, że ten pakiet zawiera tylko interfejs bazodanowy |
108 | dla zwykłych katalogów; wtyczki obsługujące bazy bdb, gdbm, mysql i | |
109 | tdb znajdują się w osobnych podpakietach. | |
f9a1bedf | 110 | |
e21d52e6 JB |
111 | %package bdb |
112 | Summary: BerkeleyDB database support for GNUnet | |
cfda3fa0 | 113 | Summary(pl.UTF-8): Obsługa bazy BerkeleyDB dla GNUnet |
b9698574 | 114 | Group: Applications/Networking |
f5d9b148 | 115 | Requires: %{name} = %{version}-%{release} |
e21d52e6 JB |
116 | |
117 | %description bdb | |
118 | This package contains BerkeleyDB database frontend for GNUnet. | |
119 | ||
cfda3fa0 | 120 | %description bdb -l pl.UTF-8 |
e21d52e6 JB |
121 | Pakiet ten zawiera interfejs bazy danych BerkeleyDB dla GNUnet. |
122 | ||
123 | %package gdbm | |
124 | Summary: GDBM database support for GNUnet | |
cfda3fa0 | 125 | Summary(pl.UTF-8): Obsługa bazy GDBM dla GNUnet |
b9698574 | 126 | Group: Applications/Networking |
f5d9b148 | 127 | Requires: %{name} = %{version}-%{release} |
e21d52e6 JB |
128 | |
129 | %description gdbm | |
130 | This package contains GDBM database frontend for GNUnet. | |
131 | ||
cfda3fa0 | 132 | %description gdbm -l pl.UTF-8 |
e21d52e6 JB |
133 | Pakiet ten zawiera interfejs bazy danych GDBM dla GNUnet. |
134 | ||
1b503169 | 135 | %package mysql |
136 | Summary: MySQL database support for GNUnet | |
cfda3fa0 | 137 | Summary(pl.UTF-8): Obsługa bazy MySQL dla GNUnet |
b9698574 | 138 | Group: Applications/Networking |
f5d9b148 | 139 | Requires: %{name} = %{version}-%{release} |
fbaab881 | 140 | Requires: mysql-libs >= 3.23.56 |
1b503169 | 141 | |
142 | %description mysql | |
143 | This package contains MySQL database frontend for GNUnet. | |
144 | ||
cfda3fa0 | 145 | %description mysql -l pl.UTF-8 |
f9a1bedf | 146 | Pakiet ten zawiera interfejs bazy danych MySQL dla GNUnet. |
147 | ||
e21d52e6 JB |
148 | %package tdb |
149 | Summary: TDB database support for GNUnet | |
cfda3fa0 | 150 | Summary(pl.UTF-8): Obsługa bazy TDB dla GNUnet |
b9698574 | 151 | Group: Applications/Networking |
f5d9b148 | 152 | Requires: %{name} = %{version}-%{release} |
1b503169 | 153 | |
e21d52e6 JB |
154 | %description tdb |
155 | This package contains TDB database frontend for GNUnet. | |
1b503169 | 156 | |
cfda3fa0 | 157 | %description tdb -l pl.UTF-8 |
e21d52e6 | 158 | Pakiet ten zawiera interfejs bazy danych TDB dla GNUnet. |
f9a1bedf | 159 | |
1b503169 | 160 | %prep |
1b503169 | 161 | %setup -q |
0f35fdb2 | 162 | %patch0 -p1 |
f5d9b148 | 163 | %{?with_ipv6:%patch1 -p1} |
1b503169 | 164 | |
165 | %build | |
f5d9b148 | 166 | %{__gettextize} |
167 | %{__libtoolize} --ltdl | |
b517b910 | 168 | %{__aclocal} -I m4 |
e21d52e6 JB |
169 | %{__autoconf} |
170 | %{__autoheader} | |
171 | %{__automake} | |
fbaab881 | 172 | %configure \ |
e21d52e6 | 173 | --disable-static \ |
fbaab881 | 174 | --with-gdbm=/usr \ |
175 | --with-mysql=/usr \ | |
176 | --with-tdb=/usr \ | |
acb10246 | 177 | --with-crypto=/usr \ |
f5d9b148 | 178 | %{?with_ipv6:--enable-ipv6} |
e21d52e6 | 179 | |
1b503169 | 180 | %{__make} |
181 | ||
182 | %install | |
183 | rm -rf $RPM_BUILD_ROOT | |
e21d52e6 JB |
184 | |
185 | %{__make} install \ | |
186 | DESTDIR=$RPM_BUILD_ROOT | |
187 | ||
755a0de5 TP |
188 | install -d $RPM_BUILD_ROOT/etc/{skel/.gnunet,/rc.d/init.d} \ |
189 | $RPM_BUILD_ROOT%{_gnunethomedir}/{state.sdb,data/{afs,credit,hosts}} | |
190 | ||
191 | install contrib/gnunet.root $RPM_BUILD_ROOT%{_sysconfdir}/gnunet.conf | |
192 | install contrib/gnunet.user $RPM_BUILD_ROOT%{_sysconfdir}/skel/.gnunet/gnunet.conf | |
193 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/gnunet | |
1b503169 | 194 | |
e21d52e6 | 195 | # these are normal, dynamically linked libraries - there is no -devel, so *.la not needed |
f5d9b148 | 196 | rm -f $RPM_BUILD_ROOT%{_libdir}/{libgnunetutil,libgnunet_afs_esed2,libgnunetdht_api}.la \ |
197 | $RPM_BUILD_ROOT%{_libdir}/{libgnunetdht_datastore_memory,libgnunetrpc_util}.la \ | |
198 | $RPM_BUILD_ROOT%{_includedir}/*.h | |
199 | ||
200 | %find_lang %{name} | |
e21d52e6 | 201 | |
1b503169 | 202 | %clean |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
93709491 | 205 | %pre |
f490ad8a ER |
206 | %groupadd -g 115 gnunet |
207 | %useradd -o -u 115 -d /var/lib/GNUnet -s /bin/sh -g gnunet -c "GNUnet daemon" gnunet | |
93709491 | 208 | |
1b503169 | 209 | %post |
1b503169 | 210 | /sbin/ldconfig |
fbaab881 | 211 | /sbin/chkconfig --add gnunet |
91f06b25 | 212 | %service gnunet restart "GNUnet" |
93709491 | 213 | |
214 | %preun | |
91f06b25 ER |
215 | if [ "$1" = 0 ]; then |
216 | %service gnunet stop | |
217 | /sbin/chkconfig --del gnunet | |
93709491 | 218 | fi |
219 | ||
220 | %postun | |
221 | /sbin/ldconfig | |
6ad3cf51 | 222 | if [ "$1" = "0" ]; then |
9069b00e | 223 | %userremove gnunet |
224 | %groupremove gnunet | |
6ad3cf51 | 225 | fi |
1b503169 | 226 | |
f5d9b148 | 227 | %files -f %{name}.lang |
1b503169 | 228 | %defattr(644,root,root,755) |
0f35fdb2 | 229 | %doc AUTHORS ChangeLog NEWS PLATFORMS README UPDATING |
1b503169 | 230 | %attr(755,root,root) %{_bindir}/gnunet-chat |
1b503169 | 231 | %attr(755,root,root) %{_bindir}/gnunet-check |
232 | %attr(755,root,root) %{_bindir}/gnunet-convert | |
f5d9b148 | 233 | %attr(755,root,root) %{_bindir}/gnunet-delete |
234 | %attr(755,root,root) %{_bindir}/gnunet-dht-join | |
235 | %attr(755,root,root) %{_bindir}/gnunet-dht-query | |
755a0de5 | 236 | %attr(755,root,root) %{_bindir}/gnunet-directory |
f5d9b148 | 237 | %attr(755,root,root) %{_bindir}/gnunet-download |
238 | #%attr(755,root,root) %{_bindir}/gnunet-download-manager.scm | |
239 | %attr(755,root,root) %{_bindir}/gnunet-gtk | |
240 | %attr(755,root,root) %{_bindir}/gnunet-insert | |
241 | %attr(755,root,root) %{_bindir}/gnunet-peer-info | |
755a0de5 | 242 | %attr(755,root,root) %{_bindir}/gnunet-pseudonym |
f5d9b148 | 243 | %attr(755,root,root) %{_bindir}/gnunet-search |
755a0de5 | 244 | %attr(755,root,root) %{_bindir}/gnunet-setup |
f5d9b148 | 245 | %attr(755,root,root) %{_bindir}/gnunet-stats |
246 | %attr(755,root,root) %{_bindir}/gnunet-tbench | |
755a0de5 | 247 | %attr(755,root,root) %{_bindir}/gnunet-testbed |
f5d9b148 | 248 | %attr(755,root,root) %{_bindir}/gnunet-tracekit |
249 | %attr(755,root,root) %{_bindir}/gnunet-transport-check | |
250 | %attr(755,root,root) %{_bindir}/gnunet-update | |
251 | %attr(755,root,root) %{_bindir}/gnunetd | |
e21d52e6 JB |
252 | |
253 | # normal, dynamically linked libraries | |
755a0de5 | 254 | %attr(755,root,root) %{_libdir}/libgnunet_afs_esed2.so.0.0.0 |
f5d9b148 | 255 | %attr(755,root,root) %{_libdir}/libgnunetdht_api.so.0.0.0 |
256 | %attr(755,root,root) %{_libdir}/libgnunetdht_datastore_memory.so.0.0.0 | |
257 | %attr(755,root,root) %{_libdir}/libgnunetrpc_util.so.0.0.0 | |
258 | %attr(755,root,root) %{_libdir}/libgnunetutil.so.0.0.0 | |
e21d52e6 JB |
259 | |
260 | # ltdlopened plugins - these must have *.la | |
755a0de5 | 261 | %attr(755,root,root) %{_libdir}/libgnunetafs_database_directory.so |
e21d52e6 | 262 | %{_libdir}/libgnunetafs_database_directory.la |
755a0de5 | 263 | %attr(755,root,root) %{_libdir}/libgnunetafs_protocol.so |
e21d52e6 | 264 | %{_libdir}/libgnunetafs_protocol.la |
755a0de5 | 265 | %attr(755,root,root) %{_libdir}/libgnunetchat_protocol.so |
e21d52e6 | 266 | %{_libdir}/libgnunetchat_protocol.la |
f5d9b148 | 267 | %attr(755,root,root) %{_libdir}/libgnunetdht_protocol.so |
268 | %{_libdir}/libgnunetdht_protocol.la | |
269 | %attr(755,root,root) %{_libdir}/libgnunetrpc_protocol.so | |
270 | %{_libdir}/libgnunetrpc_protocol.la | |
755a0de5 | 271 | %attr(755,root,root) %{_libdir}/libgnunettbench_protocol.so |
e21d52e6 | 272 | %{_libdir}/libgnunettbench_protocol.la |
f5d9b148 | 273 | %attr(755,root,root) %{_libdir}/libgnunettestbed_protocol.so |
274 | %{_libdir}/libgnunettestbed_protocol.la | |
755a0de5 | 275 | %attr(755,root,root) %{_libdir}/libgnunettracekit_protocol.so |
e21d52e6 | 276 | %{_libdir}/libgnunettracekit_protocol.la |
755a0de5 | 277 | %attr(755,root,root) %{_libdir}/libgnunettransport_http.so |
e21d52e6 | 278 | %{_libdir}/libgnunettransport_http.la |
f5d9b148 | 279 | %attr(755,root,root) %{_libdir}/libgnunettransport_nat.so |
280 | %{_libdir}/libgnunettransport_nat.la | |
281 | %attr(755,root,root) %{_libdir}/libgnunettransport_smtp.so | |
282 | %{_libdir}/libgnunettransport_smtp.la | |
755a0de5 | 283 | %attr(755,root,root) %{_libdir}/libgnunettransport_tcp.so |
e21d52e6 | 284 | %{_libdir}/libgnunettransport_tcp.la |
755a0de5 | 285 | %attr(755,root,root) %{_libdir}/libgnunettransport_udp.so |
e21d52e6 | 286 | %{_libdir}/libgnunettransport_udp.la |
f5d9b148 | 287 | %if %{with ipv6} |
288 | %attr(755,root,root) %{_libdir}/libgnunettransport_tcp6.so | |
289 | %{_libdir}/libgnunettransport_tcp6.la | |
acb10246 | 290 | %attr(755,root,root) %{_libdir}/libgnunettransport_udp6.so |
291 | %{_libdir}/libgnunettransport_udp6.la | |
f5d9b148 | 292 | %endif |
e21d52e6 | 293 | |
bd59aed7 | 294 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnunet.conf |
91f06b25 | 295 | /etc/skel/.gnunet |
e21d52e6 | 296 | %attr(754,root,root) /etc/rc.d/init.d/gnunet |
f5d9b148 | 297 | %{_mandir}/man1/gnunet-chat.1* |
298 | %{_mandir}/man1/gnunet-check.1* | |
6ad3cf51 | 299 | %{_mandir}/man1/gnunet-convert.1* |
6ad3cf51 | 300 | %{_mandir}/man1/gnunet-delete.1* |
f5d9b148 | 301 | %{_mandir}/man1/gnunet-directory.1* |
302 | %{_mandir}/man1/gnunet-download-manager.1* | |
303 | %{_mandir}/man1/gnunet-download.1* | |
304 | %{_mandir}/man1/gnunet-gtk.1* | |
6ad3cf51 | 305 | %{_mandir}/man1/gnunet-insert.1* |
6ad3cf51 | 306 | %{_mandir}/man1/gnunet-peer-info.1* |
755a0de5 | 307 | %{_mandir}/man1/gnunet-pseudonym.1* |
f5d9b148 | 308 | %{_mandir}/man1/gnunet-search.1* |
309 | %{_mandir}/man1/gnunet-stats.1* | |
310 | %{_mandir}/man1/gnunet-tbench.1* | |
755a0de5 | 311 | %{_mandir}/man1/gnunet-testbed.1* |
f5d9b148 | 312 | %{_mandir}/man1/gnunet-tracekit.1* |
313 | %{_mandir}/man1/gnunet-transport-check.1* | |
314 | %{_mandir}/man1/gnunet-update.1* | |
315 | %{_mandir}/man1/gnunetd.1* | |
755a0de5 | 316 | %{_mandir}/man5/gnunet.conf.5* |
fbaab881 | 317 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir} |
fbaab881 | 318 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data |
755a0de5 TP |
319 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/afs |
320 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/credit | |
fbaab881 | 321 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/hosts |
755a0de5 | 322 | %attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/state.sdb |
1b503169 | 323 | |
e21d52e6 | 324 | # these (and *.so for them) should be in -devel or /dev/null |
e21d52e6 | 325 | #%{_libdir}/libgnunetutil.la |
755a0de5 | 326 | #%{_libdir}/libgnunet_afs_esed2.la |
f5d9b148 | 327 | #%{_libdir}/libgnunetdht_api.la |
328 | #%{_libdir}/libgnunetdht_datastore_memory.la | |
329 | #%{_libdir}/libgnunetrpc_util.la | |
e21d52e6 JB |
330 | |
331 | %files bdb | |
332 | %defattr(644,root,root,755) | |
755a0de5 | 333 | %attr(755,root,root) %{_libdir}/libgnunetafs_database_bdb.so |
e21d52e6 JB |
334 | %{_libdir}/libgnunetafs_database_bdb.la |
335 | ||
336 | %files gdbm | |
337 | %defattr(644,root,root,755) | |
755a0de5 | 338 | %attr(755,root,root) %{_libdir}/libgnunetafs_database_gdbm.so |
e21d52e6 JB |
339 | %{_libdir}/libgnunetafs_database_gdbm.la |
340 | ||
1b503169 | 341 | %files mysql |
342 | %defattr(644,root,root,755) | |
755a0de5 | 343 | %attr(755,root,root) %{_libdir}/libgnunetafs_database_mysql.so |
e21d52e6 | 344 | %{_libdir}/libgnunetafs_database_mysql.la |
1b503169 | 345 | |
e21d52e6 JB |
346 | %files tdb |
347 | %defattr(644,root,root,755) | |
755a0de5 | 348 | %attr(755,root,root) %{_libdir}/libgnunetafs_database_tdb.so |
e21d52e6 | 349 | %{_libdir}/libgnunetafs_database_tdb.la |