/[gentoo-x86]/net-dialup/pptpclient/pptpclient-1.7.2-r2.ebuild
Gentoo

Contents of /net-dialup/pptpclient/pptpclient-1.7.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Apr 29 19:46:17 2010 UTC (4 years, 2 months ago) by truedfx
Branch: MAIN
Changes since 1.2: +2 -2 lines
Fix quoting for #293577
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpclient/pptpclient-1.7.2-r2.ebuild,v 1.2 2010/01/02 14:43:35 ranger Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 MY_P=${P/client}
10 MY_CMD=pptp-command-20050401
11
12 DESCRIPTION="Linux client for PPTP"
13 HOMEPAGE="http://pptpclient.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/pptpclient/${MY_P}.tar.gz
15 mirror://gentoo/${MY_CMD}.gz"
16
17 SLOT="0"
18 LICENSE="GPL-2"
19 KEYWORDS="alpha amd64 ppc ppc64 x86"
20 IUSE="tk"
21
22 DEPEND="net-dialup/ppp
23 dev-lang/perl
24 tk? ( dev-perl/perl-tk )"
25 RDEPEND="${DEPEND}
26 sys-apps/iproute2"
27
28 RESTRICT="test" #make test is useless and vector_test.c is broken
29
30 S="${WORKDIR}/${MY_P}"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-process-name.patch
34 epatch "${FILESDIR}"/${P}-ip-path.patch
35 }
36
37 src_compile() {
38 emake OPTIMISE= DEBUG= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die "emake failed"
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install || die "emake install failed"
43 dodoc AUTHORS ChangeLog DEVELOPERS NEWS README TODO USING
44 dodoc Documentation/*
45 dodir /etc/pptp.d
46
47 # The current version of pptp-linux doesn't include the
48 # RH-specific portions, so include them ourselves.
49 newsbin "${WORKDIR}/${MY_CMD}" pptp-command
50 dosbin "${FILESDIR}/pptp_fe.pl"
51 use tk && dosbin "${FILESDIR}/xpptp_fe.pl"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20