/[gentoo-x86]/net-misc/sstp-client/sstp-client-1.0.9-r1.ebuild
Gentoo

Contents of /net-misc/sstp-client/sstp-client-1.0.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 3 09:24:00 2015 UTC (4 years, 8 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Fix hardcoding libdir, make proper use of multilib eclass instead

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)

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/sstp-client/sstp-client-1.0.9-r1.ebuild,v 1.1 2015/05/03 09:21:39 pinkbyte Exp $
4
5 EAPI=5
6
7 inherit eutils linux-info multilib user
8
9 DESCRIPTION="A client implementation of Secure Socket Tunneling Protocol (SSTP)"
10 HOMEPAGE="http://sstp-client.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/sstp-client/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="static"
17
18 RDEPEND=">=dev-libs/libevent-2.0.10
19 dev-libs/openssl:0
20 net-dialup/ppp:="
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig"
23
24 CONFIG_CHECK="~NETFILTER_NETLINK"
25 DOCS=( AUTHORS ChangeLog DEVELOPERS INSTALL NEWS README TODO USING )
26
27 pkg_setup() {
28 enewgroup sstpc
29 enewuser sstpc -1 -1 -1 sstpc
30 }
31
32 src_prepare() {
33 # set proper examples dir, --docdir overriding is src_configure does not work
34 sed -i -e "/^docdir/s:@PACKAGE@:${PF}/examples:" Makefile.in || die 'sed on Makefile.in failed'
35
36 epatch_user
37 }
38
39 src_configure() {
40 local PPPD_VER="$(best_version net-dialup/ppp)"
41 PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
42 PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
43 econf \
44 --enable-ppp-plugin \
45 --enable-group=sstpc \
46 --enable-user=sstpc \
47 --with-pppd-plugin-dir="/usr/$(get_libdir)/pppd/${PPPD_VER}" \
48 $(use_enable static)
49 }
50
51 src_install() {
52 default
53 prune_libtool_files --modules
54 }

  ViewVC Help
Powered by ViewVC 1.1.20