1 |
commit: fe5fd83596357ada4499493537ebcdfbb4ac1985 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 4 11:51:19 2012 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 4 11:51:19 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=fe5fd835 |
7 |
|
8 |
net-p2p/gnunet: trying to save gnunet |
9 |
|
10 |
--- |
11 |
net-p2p/gnunet/Manifest | 4 ++ |
12 |
net-p2p/gnunet/files/gnunet.initd | 32 ++++++++++++ |
13 |
net-p2p/gnunet/gnunet-0.9.2.ebuild | 96 ++++++++++++++++++++++++++++++++++++ |
14 |
net-p2p/gnunet/metadata.xml | 10 ++++ |
15 |
4 files changed, 142 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/net-p2p/gnunet/Manifest b/net-p2p/gnunet/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..c193704 |
20 |
--- /dev/null |
21 |
+++ b/net-p2p/gnunet/Manifest |
22 |
@@ -0,0 +1,4 @@ |
23 |
+AUX gnunet.initd 643 RMD160 434eb6752143fbb600f96a58ed7c5ba1a47e654d SHA1 de7f208ce286a05310551a35345b2f02f5712831 SHA256 c6748f137d7c808685a741617e1449024bcb37dcfc11e883d859f5e0134744a6 |
24 |
+DIST gnunet-0.9.2.tar.gz 6239795 RMD160 6b1da8dcfc9edf51954b2d7b627e712a10ecde7a SHA1 f6a85e2af64e743a33a743be4445e67025db4d72 SHA256 24f5f1cb93782c22bd61ffdc9d99b7cfb2532dc4b6fb7d3468931e5a10eb47e9 |
25 |
+EBUILD gnunet-0.9.2.ebuild 2505 RMD160 47943072d7ebcdd7c822638ddfe0aa0b2586d2da SHA1 5b7a8d2ce97c3343bc83497503d5a2675fc77731 SHA256 fa1fd72bd82d47adac7a960aacb71f89ba4e904e1b9b35c8abdd76afc5292a0e |
26 |
+MISC metadata.xml 451 RMD160 d905b5dd5d7bead232a718516ad06811832e670d SHA1 5a6954f3e22d46f6b0d3c504473d8350a2a27c36 SHA256 09eb158e2fd2a05896fc8da3765428557812ba7afb4abf046e0284505ae1fb56 |
27 |
|
28 |
diff --git a/net-p2p/gnunet/files/gnunet.initd b/net-p2p/gnunet/files/gnunet.initd |
29 |
new file mode 100644 |
30 |
index 0000000..ffd0107 |
31 |
--- /dev/null |
32 |
+++ b/net-p2p/gnunet/files/gnunet.initd |
33 |
@@ -0,0 +1,32 @@ |
34 |
+#!/sbin/runscript |
35 |
+# Copyright 1999-2008 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+depend() { |
39 |
+ need net |
40 |
+} |
41 |
+ |
42 |
+start() { |
43 |
+ if ! test -f "/etc/gnunetd.conf"; then |
44 |
+ eerror "You must create /etc/gnunetd.conf file first" |
45 |
+ return 1 |
46 |
+ fi |
47 |
+ |
48 |
+ ebegin "Starting GNUnet" |
49 |
+ # -u username, -c path to gnunet.conf file |
50 |
+ start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \ |
51 |
+ -- -u gnunetd -c /etc/gnunetd.conf |
52 |
+ eend $? "Failed to start GNUnet" |
53 |
+} |
54 |
+ |
55 |
+stop() { |
56 |
+ ebegin "Stopping GNUnet" |
57 |
+ killall gnunetd |
58 |
+ eend $? "Failed to stop GNUnet" |
59 |
+} |
60 |
+ |
61 |
+restart() { |
62 |
+ svc_stop |
63 |
+ sleep 3 |
64 |
+ svc_start |
65 |
+} |
66 |
|
67 |
diff --git a/net-p2p/gnunet/gnunet-0.9.2.ebuild b/net-p2p/gnunet/gnunet-0.9.2.ebuild |
68 |
new file mode 100644 |
69 |
index 0000000..60d1921 |
70 |
--- /dev/null |
71 |
+++ b/net-p2p/gnunet/gnunet-0.9.2.ebuild |
72 |
@@ -0,0 +1,96 @@ |
73 |
+# Copyright 1999-2011 Gentoo Foundation |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.8.1-r2.ebuild,v 1.3 2011/03/28 14:24:51 nirbheek Exp $ |
76 |
+ |
77 |
+EAPI="4" |
78 |
+ |
79 |
+DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network." |
80 |
+HOMEPAGE="http://gnunet.org/" |
81 |
+SRC_URI="ftp://ftp.gnu.org/gnu/gnunet/${P}.tar.gz" |
82 |
+#RESTRICT="test" |
83 |
+ |
84 |
+REQUIRED_USE="|| ( sqlite mysql postgres )" |
85 |
+IUSE="microhttpd +sqlite mysql postgres nls setup" |
86 |
+KEYWORDS="~amd64 ~x86" |
87 |
+LICENSE="GPL-2" |
88 |
+SLOT="0" |
89 |
+ |
90 |
+RDEPEND=" |
91 |
+ >=media-libs/libextractor-0.6.1 |
92 |
+ >=dev-libs/libgcrypt-1.2 |
93 |
+ >=net-misc/curl-7.21.0 |
94 |
+ >=dev-libs/libunistring-0.9.2 |
95 |
+ >=sys-devel/libtool-2.2 |
96 |
+" |
97 |
+ |
98 |
+# microhttpd? ( >=net-libs/libmicrohttpd-0.9.18 ) |
99 |
+# sqlite? ( >=dev-db/sqlite-3.0 ) |
100 |
+# mysql? ( >=virtual/mysql-5.1 ) |
101 |
+# postgres? ( >= dev-db/postgresql-server-8.3 ) |
102 |
+# nls? ( sys-devel/gettext )" |
103 |
+# setup? ( net-p2p/gnunet-gtk-0.9.2 ) |
104 |
+# >=dev-libs/gmp-4.0.0 |
105 |
+# sys-libs/zlib |
106 |
+ |
107 |
+DEPEND="${RDEPEND} |
108 |
+ sys-apps/sed |
109 |
+ dev-util/pkgconfig" |
110 |
+ |
111 |
+pkg_preinst() { |
112 |
+ enewgroup gnunetd |
113 |
+ enewuser gnunetd -1 -1 /dev/null gnunetd |
114 |
+} |
115 |
+ |
116 |
+#src_prepare() { |
117 |
+# if ! use sqlite; then |
118 |
+# # make mysql default sqstore if we do not compile sqlite support |
119 |
+# # (bug #107330) |
120 |
+# if use mysql; then \ |
121 |
+# sed -i 's:default "sqstore_sqlite":default "sqstore_mysql":' \ |
122 |
+# contrib/config-daemon.in |
123 |
+# else |
124 |
+# ewarn |
125 |
+# ewarn "You didn't specify preferred database (mysql or sqlite)" |
126 |
+# ewarn "Choosing sqlite for you." |
127 |
+# ewarn |
128 |
+# fi |
129 |
+# fi |
130 |
+# |
131 |
+# # we do not want to built gtk support with USE=-gtk |
132 |
+# if ! use gtk ; then |
133 |
+# sed -i "s:AC_DEFINE_UNQUOTED..HAVE_GTK.*:true:" configure.ac |
134 |
+# fi |
135 |
+#} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ econf \ |
139 |
+ $(use_with microhttpd) \ |
140 |
+ $(use_with sqlite) \ |
141 |
+ $(use_with mysql) \ |
142 |
+ $(use_with postgres) \ |
143 |
+ $(use_enable postgres) |
144 |
+} |
145 |
+ |
146 |
+#src_install() { |
147 |
+# emake DESTDIR="${D}" install || die "make install failed" |
148 |
+# dodoc AUTHORS ChangeLog INSTALL NEWS PLATFORMS README UPDATING || die |
149 |
+# insinto /etc |
150 |
+# newins contrib/gnunet.conf gnunet.conf |
151 |
+# docinto contrib |
152 |
+# dodoc contrib/* || die |
153 |
+# newinitd "${FILESDIR}"/${PN}.initd gnunet |
154 |
+# dodir /var/lib/gnunet |
155 |
+# chown gnunetd:gnunetd "${D}"/var/lib/gnunet |
156 |
+#} |
157 |
+ |
158 |
+pkg_postinst() { |
159 |
+ # make sure permissions are ok |
160 |
+ chown -R gnunetd:gnunetd "${ROOT}"/var/lib/gnunet |
161 |
+ |
162 |
+ einfo |
163 |
+ einfo "To configure" |
164 |
+ einfo " 1) Add user(s) to the gnunetd group" |
165 |
+ einfo " 2) Run 'gnunet-setup' to generate your client config file" |
166 |
+ einfo " 3) Run gnunet-setup -d as root to generate a server config file" |
167 |
+ einfo |
168 |
+} |
169 |
|
170 |
diff --git a/net-p2p/gnunet/metadata.xml b/net-p2p/gnunet/metadata.xml |
171 |
new file mode 100644 |
172 |
index 0000000..237d111 |
173 |
--- /dev/null |
174 |
+++ b/net-p2p/gnunet/metadata.xml |
175 |
@@ -0,0 +1,10 @@ |
176 |
+<?xml version="1.0" encoding="UTF-8"?> |
177 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
178 |
+<pkgmetadata> |
179 |
+ <herd>net-p2p</herd> |
180 |
+ <longdescription>GNUnet is a framework for secure peer-to-peer networking that does not use any centralized or otherwise trusted services</longdescription> |
181 |
+ <use> |
182 |
+ <flag name="microhttpd">enable embedded http server support</flag> |
183 |
+ <flag name="setup">enable setup wizard</flag> |
184 |
+ </use> |
185 |
+</pkgmetadata> |