Contents of /trunk/extras/openvpn/openvpn-2.3.3-r1.smage2
Parent Directory | Revision Log
Revision 21235 -
(show annotations)
(download)
Fri Apr 11 09:36:16 2014 UTC (10 years, 5 months ago) by niro
File size: 1520 byte(s)
Fri Apr 11 09:36:16 2014 UTC (10 years, 5 months ago) by niro
File size: 1520 byte(s)
auto added: ver bump to 2.3.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="openvpn" |
4 | PVER="2.3.3" |
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.1g |
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 |