/[gentoo-x86]/net-misc/i2pd/i2pd-0.6.0.ebuild
Gentoo

Contents of /net-misc/i2pd/i2pd-0.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Feb 2 17:06:04 2015 UTC (4 years, 10 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Use cpu_flags_x86_aes, bug #538556.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/i2pd/i2pd-0.6.0.ebuild,v 1.1 2015/01/08 22:44:46 blueness Exp $
4
5 EAPI=5
6 inherit eutils systemd user cmake-utils
7
8 DESCRIPTION="A C++ daemon for accessing the I2P anonymous network"
9 HOMEPAGE="https://github.com/PrivacySolutions/i2pd"
10 SRC_URI="https://github.com/PrivacySolutions/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="cpu_flags_x86_aes i2p-hardening static"
15
16 RDEPEND="!static? ( >=dev-libs/boost-1.46[threads] )
17 !static? ( dev-libs/crypto++ )"
18 DEPEND="${RDEPEND}
19 static? ( >=dev-libs/boost-1.46[static-libs,threads] )
20 static? ( dev-libs/crypto++[static-libs] )
21 >=dev-util/cmake-2.8.5
22 i2p-hardening? ( >=sys-devel/gcc-4.6 )
23 || ( >=sys-devel/gcc-4.6 >=sys-devel/clang-3.3 )"
24
25 I2PD_USER="${I2PD_USER:-i2pd}"
26 I2PD_GROUP="${I2PD_GROUP:-i2pd}"
27
28 CMAKE_USE_DIR="${S}/build"
29
30 src_configure() {
31 mycmakeargs=(
32 $(cmake-utils_use_with cpu_flags_x86_aes AESNI)
33 $(cmake-utils_use_with i2p-hardening HARDENING)
34 $(cmake-utils_use_with static STATIC)
35 -DWITH_LIBRARY=OFF
36 -DWITH_BINARY=ON
37 )
38 cmake-utils_src_configure
39 }
40
41 src_install() {
42 cmake-utils_src_install
43 dodoc README.md
44 doman "${FILESDIR}/${PN}.1"
45 keepdir /var/lib/i2pd/
46 fowners "${I2PD_USER}:${I2PD_GROUP}" /var/lib/i2pd/
47 fperms 700 /var/lib/i2pd/
48 insinto /etc/
49 doins "${FILESDIR}/${PN}.conf"
50 fowners "${I2PD_USER}:${I2PD_GROUP}" "/etc/${PN}.conf"
51 fperms 600 "/etc/${PN}.conf"
52 dodir /usr/share/i2pd
53 cp -R "${S}/contrib/certificates" "${D}/var/lib/i2pd" || die "Install failed!"
54 newconfd "${FILESDIR}/${PN}.confd" "${PN}"
55 newinitd "${FILESDIR}/${PN}.initd" "${PN}"
56 systemd_dounit "${FILESDIR}/${PN}.service"
57 doenvd "${FILESDIR}/99${PN}"
58 insinto /etc/logrotate.d
59 newins "${FILESDIR}/${PN}.logrotate" "${PN}"
60 }
61
62 pkg_setup() {
63 enewgroup "${I2PD_GROUP}"
64 enewuser "${I2PD_USER}" -1 -1 "/var/lib/run/${PN}" "${I2PD_GROUP}"
65 }

  ViewVC Help
Powered by ViewVC 1.1.20