blob: 1a7faa27a50103dba2f986c884cab9cc5922ae2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils systemd user git-2
DESCRIPTION="A C++ daemon for accessing the I2P anonymous network"
HOMEPAGE="https://github.com/PrivacySolutions/i2pd"
SRC_URI=""
EGIT_REPO_URI="git://github.com/PrivacySolutions/i2pd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
>=dev-libs/boost-1.46[threads]
dev-libs/crypto++"
DEPEND="${RDEPEND}
|| ( >=sys-devel/gcc-4.6 >=sys-devel/clang-3.3 )"
I2PD_USER="${I2PD_USER:-i2pd}"
I2PD_GROUP="${I2PD_GROUP:-i2pd}"
#CMAKE_USE_DIR="${S}/build"
src_compile() {
emake
}
src_install() {
mkdir -p "${D}/usr/bin"
cp "${S}/i2pd" "${D}/usr/bin"
mkdir -p "${D}/var/lib/certificates/"
cp -r "${S}/contrib/certificates/" "${D}/var/lib/certificates"
dodoc ${S}/docs/*.md
doman ${S}/debian/i2pd.1
}
pkg_setup() {
enewgroup "${I2PD_GROUP}"
enewuser "${I2PD_USER}" -1 -1 "/var/lib/run/${PN}" "${I2PD_GROUP}"
}
|