/[gentoo-x86]/net-misc/badvpn/badvpn-1.999.123-r3.ebuild
Gentoo

Contents of /net-misc/badvpn/badvpn-1.999.123-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Dec 11 16:56:32 2012 UTC (2 years ago) by axs
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
virtualize udev dependency

(Portage version: 2.1.11.33/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/badvpn/badvpn-1.999.123-r3.ebuild,v 1.3 2012/10/17 11:06:29 ago Exp $
4
5 EAPI=4
6 inherit eutils cmake-utils user
7
8 MY_P=${PN}-${PV/_rc/rc}
9 DESCRIPTION="Peer-to-peer VPN, NCD scripting language, tun2socks proxifier"
10 HOMEPAGE="http://code.google.com/p/badvpn/"
11 SRC_URI="http://badvpn.googlecode.com/files/${MY_P}.tar.bz2"
12
13 LICENSE="BSD"
14 KEYWORDS="amd64 x86"
15 SLOT="0"
16 TARGETS="+client +ncd +server +tun2socks +udpgw"
17 IUSE="${TARGETS} debug"
18
19 COMMON_DEPEND="
20 client? (
21 dev-libs/nspr
22 dev-libs/nss
23 dev-libs/openssl
24 )
25 server? (
26 dev-libs/nspr
27 dev-libs/nss
28 dev-libs/openssl
29 )
30 ncd? (
31 dev-libs/openssl
32 )"
33 RDEPEND="${COMMON_DEPEND}
34 ncd? (
35 net-firewall/iptables
36 net-wireless/wpa_supplicant
37 sys-apps/iproute2
38 >=virtual/udev-171
39 )"
40 DEPEND="${COMMON_DEPEND}
41 virtual/pkgconfig"
42 # we need at least one target
43 REQUIRED_USE="|| ( ${TARGETS//+/} )"
44
45 S=${WORKDIR}/${MY_P}
46
47 pkg_setup() {
48 enewuser ${PN}
49 }
50
51 src_prepare() {
52 # allow user to easily apply patches
53 epatch_user
54 }
55
56 src_configure() {
57 local mycmakeargs=(
58 -DBUILD_NOTHING_BY_DEFAULT=1
59 $(cmake-utils_use_build client CLIENT)
60 $(cmake-utils_use_build server SERVER)
61 $(cmake-utils_use_build ncd NCD)
62 $(cmake-utils_use_build tun2socks TUN2SOCKS)
63 $(cmake-utils_use_build udpgw UDPGW)
64 )
65
66 cmake-utils_src_configure
67 }
68
69 src_install() {
70 cmake-utils_src_install
71 dodoc ChangeLog
72
73 if use server; then
74 newinitd "${FILESDIR}"/${PN}-server.init ${PN}-server
75 newconfd "${FILESDIR}"/${PN}-server.conf ${PN}-server
76 fi
77
78 if use ncd; then
79 newinitd "${FILESDIR}"/${PN}-ncd.init ${PN}-ncd
80 newconfd "${FILESDIR}"/${PN}-ncd.conf ${PN}-ncd
81 fi
82 }

  ViewVC Help
Powered by ViewVC 1.1.20