Annotation of /trunk/extras/openvpn/openvpn-2.4.6-r1.smage2
Parent Directory | Revision Log
Revision 31352 -
(hide annotations)
(download)
Thu Jun 21 15:22:37 2018 UTC (6 years, 3 months ago) by niro
File size: 1535 byte(s)
Thu Jun 21 15:22:37 2018 UTC (6 years, 3 months ago) by niro
File size: 1535 byte(s)
auto added: ver bump to 2.4.6-r1
1 | niro | 31352 | # $Id$ |
2 | |||
3 | PNAME="openvpn" | ||
4 | PVER="2.4.6" | ||
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.1.0h | ||
14 | >= sys-apps/iproute2-3.17 | ||
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-plugins \ | ||
44 | --enable-systemd \ | ||
45 | --enable-x509-alt-username \ | ||
46 | || die | ||
47 | |||
48 | mmake || die | ||
49 | } | ||
50 | |||
51 | src_install() | ||
52 | { | ||
53 | cd ${SRCDIR} | ||
54 | mmake DESTDIR=${BINDIR} install || die | ||
55 | |||
56 | minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die | ||
57 | minstallfile sample/sample-config-files/\* /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die | ||
58 | minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die | ||
59 | minstallfile sample/sample-scripts/\* /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die | ||
60 | |||
61 | # initscript stuff | ||
62 | mkeepdir /etc/openvpn || die | ||
63 | minstallunit openvpn.service 'openvpn@.service' || die | ||
64 | |||
65 | minstalldocs AUTHORS COPYING COPYRIGHT.GPL ChangeLog NEWS PORTS README || die | ||
66 | } | ||
67 |