Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/gnunet: ChangeLog gnunet-0.8.1.ebuild
Date: Thu, 28 Jan 2010 11:48:12
Message-Id: E1NaSr2-0002rH-Cc@stork.gentoo.org
1 patrick 10/01/28 11:48:08
2
3 Modified: ChangeLog
4 Added: gnunet-0.8.1.ebuild
5 Log:
6 Bump for #300533
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.67 net-p2p/gnunet/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/gnunet/ChangeLog?rev=1.67&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/gnunet/ChangeLog?rev=1.67&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/gnunet/ChangeLog?r1=1.66&r2=1.67
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v
19 retrieving revision 1.66
20 retrieving revision 1.67
21 diff -u -r1.66 -r1.67
22 --- ChangeLog 10 Sep 2008 13:52:58 -0000 1.66
23 +++ ChangeLog 28 Jan 2010 11:48:07 -0000 1.67
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-p2p/gnunet
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.66 2008/09/10 13:52:58 armin76 Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.67 2010/01/28 11:48:07 patrick Exp $
30 +
31 +*gnunet-0.8.1 (28 Jan 2010)
32 +
33 + 28 Jan 2010; Patrick Lauer <patrick@g.o> +gnunet-0.8.1.ebuild:
34 + Bump for #300533
35
36 10 Sep 2008; Raúl Porcel <armin76@g.o> gnunet-0.7.3-r1.ebuild,
37 gnunet-0.8.0.ebuild:
38
39
40
41 1.1 net-p2p/gnunet/gnunet-0.8.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/gnunet/gnunet-0.8.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/gnunet/gnunet-0.8.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gnunet-0.8.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.8.1.ebuild,v 1.1 2010/01/28 11:48:07 patrick Exp $
51
52 EAPI=2
53
54 inherit eutils autotools
55
56 S="${WORKDIR}/GNUnet-${PV}"
57 DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network."
58 HOMEPAGE="http://gnunet.org/"
59 SRC_URI="http://gnunet.org/download/GNUnet-${PV}.tar.gz"
60 #tests don't work
61 RESTRICT="test"
62
63 IUSE="ipv6 mysql +sqlite ncurses nls gtk"
64 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
65 LICENSE="GPL-2"
66 SLOT="0"
67
68 DEPEND=">=dev-libs/libgcrypt-1.2.0
69 >=media-libs/libextractor-0.5.18a
70 >=dev-libs/gmp-4.0.0
71 gnome-base/libglade
72 sys-libs/zlib
73 net-misc/curl
74 gtk? ( >=x11-libs/gtk+-2.6.10 )
75 sys-apps/sed
76 >=dev-scheme/guile-1.8.0
77 ncurses? ( sys-libs/ncurses )
78 mysql? ( >=virtual/mysql-4.0 )
79 sqlite? ( >=dev-db/sqlite-3.0.8 )
80 nls? ( sys-devel/gettext )"
81
82 pkg_setup() {
83 if ! use mysql && ! use sqlite; then
84 einfo
85 einfo "You need to specify at least one of 'mysql' or 'sqlite'"
86 einfo "USE flag in order to have properly installed gnunet"
87 einfo
88 die "Invalid USE flag set"
89 fi
90 }
91
92 pkg_preinst() {
93 enewgroup gnunetd
94 enewuser gnunetd -1 -1 /dev/null gnunetd
95 }
96
97 src_prepare() {
98 # make mysql default sqstore if we do not compile sqlite support
99 # (bug #107330)
100 ! use sqlite && \
101 sed -i 's:default "sqstore_sqlite":default "sqstore_mysql":' \
102 contrib/config-daemon.in
103
104 # we do not want to built gtk support with USE=-gtk
105 if ! use gtk ; then
106 sed -i "s:AC_DEFINE_UNQUOTED..HAVE_GTK.*:true:" configure.ac
107 fi
108
109 AT_M4DIR="${S}/m4" eautoreconf
110 }
111
112 src_compile() {
113 local myconf
114
115 use mysql || myconf="${myconf} --without-mysql"
116
117 econf \
118 $(use_with sqlite) \
119 $(use_enable ipv6) \
120 $(use_enable nls) \
121 $(use_enable ncurses) \
122 ${myconf} || die "econf failed"
123
124 emake -j1 || die "emake failed"
125 }
126
127 src_install() {
128 emake DESTDIR="${D}" -j1 install || die "make install failed"
129 dodoc AUTHORS ChangeLog INSTALL NEWS PLATFORMS README README.fr UPDATING
130 insinto /etc
131 newins contrib/gnunet.root gnunet.conf
132 docinto contrib
133 dodoc contrib/*
134 newinitd "${FILESDIR}"/${PN}.initd gnunet
135 dodir /var/lib/gnunet
136 chown gnunetd:gnunetd "${D}"/var/lib/gnunet
137 }
138
139 pkg_postinst() {
140 # make sure permissions are ok
141 chown -R gnunetd:gnunetd "${ROOT}"/var/lib/gnunet
142
143 use ipv6 && ewarn "ipv6 support is -very- experimental and prone to bugs"
144 einfo
145 einfo "To configure"
146 einfo " 1) Add user(s) to the gnunetd group"
147 einfo " 2) Run 'gnunet-setup' to generate your client config file"
148 einfo " 3) Run gnunet-setup -d as root to generate a server config file"
149 einfo
150 }