Line
Link Here
|
0 |
-- gnunet-0.8.1.ebuild |
0 |
++ gnunet-0.8.1.ebuild |
Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
|
6 |
|
7 |
inherit eutils autotools |
7 |
inherit autotools eutils |
8 |
|
8 |
|
9 |
S="${WORKDIR}/GNUnet-${PV}" |
9 |
S="${WORKDIR}/GNUnet-${PV}" |
10 |
DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network." |
10 |
DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network." |
Lines 13-19
Link Here
|
13 |
#tests don't work |
13 |
#tests don't work |
14 |
RESTRICT="test" |
14 |
RESTRICT="test" |
15 |
|
15 |
|
16 |
IUSE="ipv6 mysql +sqlite ncurses nls gtk" |
16 |
IUSE="gtk mysql nls +sqlite" |
17 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
17 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
18 |
LICENSE="GPL-2" |
18 |
LICENSE="GPL-2" |
19 |
SLOT="0" |
19 |
SLOT="0" |
Lines 27-33
Link Here
|
27 |
gtk? ( >=x11-libs/gtk+-2.6.10 ) |
27 |
gtk? ( >=x11-libs/gtk+-2.6.10 ) |
28 |
sys-apps/sed |
28 |
sys-apps/sed |
29 |
>=dev-scheme/guile-1.8.0 |
29 |
>=dev-scheme/guile-1.8.0 |
30 |
ncurses? ( sys-libs/ncurses ) |
30 |
sys-libs/ncurses |
31 |
mysql? ( >=virtual/mysql-4.0 ) |
31 |
mysql? ( >=virtual/mysql-4.0 ) |
32 |
sqlite? ( >=dev-db/sqlite-3.0.8 ) |
32 |
sqlite? ( >=dev-db/sqlite-3.0.8 ) |
33 |
nls? ( sys-devel/gettext )" |
33 |
nls? ( sys-devel/gettext )" |
Lines 59-87
Link Here
|
59 |
sed -i "s:AC_DEFINE_UNQUOTED..HAVE_GTK.*:true:" configure.ac |
59 |
sed -i "s:AC_DEFINE_UNQUOTED..HAVE_GTK.*:true:" configure.ac |
60 |
fi |
60 |
fi |
61 |
|
61 |
|
62 |
AT_M4DIR="${S}/m4" eautoreconf |
62 |
epatch "${FILESDIR}"/${PV}-asneeded.patch |
|
|
63 |
epatch "${FILESDIR}"/${PV}-parallel-build.patch |
64 |
eautoreconf |
63 |
} |
65 |
} |
64 |
|
66 |
|
65 |
src_compile() { |
67 |
src_configure() { |
66 |
local myconf |
68 |
local myconf |
67 |
|
69 |
|
68 |
use mysql || myconf="${myconf} --without-mysql" |
70 |
use mysql || myconf="${myconf} --without-mysql" |
69 |
|
71 |
|
70 |
econf \ |
72 |
econf \ |
71 |
$(use_with sqlite) \ |
73 |
$(use_with sqlite) \ |
72 |
$(use_enable ipv6) \ |
|
|
73 |
$(use_enable nls) \ |
74 |
$(use_enable nls) \ |
74 |
$(use_enable ncurses) \ |
|
|
75 |
${myconf} || die "econf failed" |
75 |
${myconf} || die "econf failed" |
76 |
|
|
|
77 |
emake -j1 || die "emake failed" |
78 |
} |
76 |
} |
79 |
|
77 |
|
80 |
src_install() { |
78 |
src_install() { |
81 |
emake DESTDIR="${D}" -j1 install || die "make install failed" |
79 |
emake DESTDIR="${D}" install || die "make install failed" |
82 |
dodoc AUTHORS ChangeLog INSTALL NEWS PLATFORMS README README.fr UPDATING |
80 |
dodoc AUTHORS ChangeLog INSTALL NEWS PLATFORMS README UPDATING |
83 |
insinto /etc |
81 |
insinto /etc |
84 |
newins contrib/gnunet.root gnunet.conf |
82 |
newins contrib/gnunet.conf gnunet.conf |
85 |
docinto contrib |
83 |
docinto contrib |
86 |
dodoc contrib/* |
84 |
dodoc contrib/* |
87 |
newinitd "${FILESDIR}"/${PN}.initd gnunet |
85 |
newinitd "${FILESDIR}"/${PN}.initd gnunet |
Lines 93-99
Link Here
|
93 |
# make sure permissions are ok |
91 |
# make sure permissions are ok |
94 |
chown -R gnunetd:gnunetd "${ROOT}"/var/lib/gnunet |
92 |
chown -R gnunetd:gnunetd "${ROOT}"/var/lib/gnunet |
95 |
|
93 |
|
96 |
use ipv6 && ewarn "ipv6 support is -very- experimental and prone to bugs" |
|
|
97 |
einfo |
94 |
einfo |
98 |
einfo "To configure" |
95 |
einfo "To configure" |
99 |
einfo " 1) Add user(s) to the gnunetd group" |
96 |
einfo " 1) Add user(s) to the gnunetd group" |