Magellan Linux

Contents of /branches/R11-unstable/extras/openvpn/openvpn-2.3.6-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25693 - (show annotations) (download)
Tue Nov 25 04:10:46 2014 UTC (9 years, 5 months ago) by niro
File size: 1521 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="openvpn"
4 PVER="2.3.6"
5 PBUILD="r3"
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.2a
14 >= sys-apps/iproute2-3.16
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