Magellan Linux

Contents of /branches/R11-stable/extras/openvpn/openvpn-2.3.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20878 - (show annotations) (download)
Tue Feb 11 10:05:07 2014 UTC (10 years, 3 months ago) by niro
File size: 1520 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="openvpn"
4 PVER="2.3.2"
5 PBUILD="r2"
6
7 PCAT="net-vpn"
8
9 DESCRIPTION="openvpn - an OpenSource SSL-VPN client."
10 HOMEPAGE="http://openvpn.net/"
11
12 DEPEND=">= dev-libs/lzo-2
13 >= dev-libs/openssl-1.0.1f
14 >= sys-apps/iproute2-3.9
15 >= sys-libs/pam-1.1"
16
17 SDEPEND=">= virtual/kernel-headers"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild mtools systemd
23
24 SRC_URI=(
25 http://swupdate.openvpn.org/community/releases/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/openvpn.service
28 )
29
30 # no _alpha, _beta, _RC
31 UP2EXCLUDE="_[a-Z]"
32 UP2DATE="updatecmd http://openvpn.net/index.php/open-source/downloads.html | grep ${PNAME}-[0-9] | firsttarball gz"
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 mconfigure \
38 --enable-lzo \
39 --enable-crypto \
40 --enable-ssl \
41 --enable-pthread \
42 --enable-iproute2 \
43 --enable-plugin-auth-pam \
44 --enable-plugin-down-root \
45 || die
46
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake DESTDIR=${BINDIR} install || die
54
55 minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
56 minstallfile sample/sample-config-files/\* /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
57 minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
58 minstallfile sample/sample-scripts/\* /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
59
60 # initscript stuff
61 mkeepdir /etc/openvpn || die
62 minstallunit openvpn.service 'openvpn@.service' || die
63
64 minstalldocs AUTHORS COPYING COPYRIGHT.GPL ChangeLog NEWS PORTS README || die
65 }
66