Magellan Linux

Annotation of /branches/R11-stable/extras/openvpn/openvpn-2.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17266 - (hide annotations) (download)
Thu Jun 6 12:44:31 2013 UTC (11 years ago) by niro
Original Path: trunk/extras/openvpn/openvpn-2.3.2-r1.smage2
File size: 1498 byte(s)
-re-worked smage2, plugins can be enabled via configure
1 niro 17265 # $Id$
2    
3     PNAME="openvpn"
4     PVER="2.3.2"
5     PBUILD="r1"
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.1e
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
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 niro 17266 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 niro 17265 mmake || die
48     }
49    
50     src_install()
51     {
52     cd ${SRCDIR}
53 niro 17266 mmake DESTDIR=${BINDIR} install || die
54 niro 17265
55     minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
56 niro 17266 minstallfile sample-config-files/\* /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
57 niro 17265 minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
58 niro 17266 minstallfile sample-scripts/\* /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
59 niro 17265
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