Mercurial > hg > portage
annotate net-dialup/pptpclient/pptpclient-1.7.2-r3.ebuild @ 345:208cbe4d2de1
maintain my own libsdl ebulid without --shared-alsa
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 20 Jun 2013 08:42:33 +0200 |
parents | 60459a8f4bd6 |
children |
rev | line source |
---|---|
339
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2010 Gentoo Foundation |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpclient/pptpclient-1.7.2-r2.ebuild,v 1.3 2010/04/29 19:46:17 truedfx Exp $ |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI="2" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 inherit eutils toolchain-funcs |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 MY_P=${P/client} |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 MY_CMD=pptp-command-20050401 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 DESCRIPTION="Linux client for PPTP" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 HOMEPAGE="http://pptpclient.sourceforge.net/" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 SRC_URI="mirror://sourceforge/pptpclient/${MY_P}.tar.gz |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 mirror://gentoo/${MY_CMD}.gz" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 SLOT="0" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 LICENSE="GPL-2" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 KEYWORDS="alpha amd64 ppc ppc64 x86" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 IUSE="tk" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 DEPEND="net-dialup/ppp |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 dev-lang/perl |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 tk? ( dev-perl/perl-tk )" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 RDEPEND="${DEPEND} |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 sys-apps/iproute2" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 RESTRICT="test" #make test is useless and vector_test.c is broken |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 S="${WORKDIR}/${MY_P}" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 src_prepare() { |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 epatch "${FILESDIR}"/${P}-process-name.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 epatch "${FILESDIR}"/${P}-ip-path.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 epatch "${FILESDIR}"/${P}-sign-compare.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 epatch "${FILESDIR}"/${P}-const.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 epatch "${FILESDIR}"/${P}-field-init.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 epatch "${FILESDIR}"/${P}-unused.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 epatch "${FILESDIR}"/${P}-prototype.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 epatch "${FILESDIR}"/${P}-nested-externs.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 epatch "${FILESDIR}"/${P}-aliasing.patch |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 } |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 src_compile() { |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 emake OPTIMISE= DEBUG= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die "emake failed" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 } |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 src_install() { |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 emake DESTDIR="${D}" install || die "emake install failed" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 dodoc AUTHORS ChangeLog DEVELOPERS NEWS README TODO USING |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 dodoc Documentation/* |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 dodir /etc/pptp.d |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 # The current version of pptp-linux doesn't include the |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 # RH-specific portions, so include them ourselves. |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 newsbin "${WORKDIR}/${MY_CMD}" pptp-command |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 dosbin "${FILESDIR}/pptp_fe.pl" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 use tk && dosbin "${FILESDIR}/xpptp_fe.pl" |
60459a8f4bd6
pptp ebuild that includes some stability patches from redhat
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 } |