Contents of /branches/magellan-0_10_0/todo/openvpn/openvpn-2.1_rc9-r1.smage2
Parent Directory | Revision Log
Revision 3000 -
(show annotations)
(download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1923 byte(s)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1923 byte(s)
created branch 'magellan-0_10_0'
1 | # $Header: /magellan-cvs/smage/openvpn/openvpn-2.1_rc9-r1.smage2,v 1.1 2008/08/11 19:26:42 niro Exp $ |
2 | |
3 | PNAME="openvpn" |
4 | PVER="2.1_rc9" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-vpn" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="openvpn - an OpenSource SSL-VPN client." |
11 | HOMEPAGE="http://openvpn.net/" |
12 | |
13 | DEPEND=">= dev-libs/lzo-2 |
14 | >= dev-libs/openssl-0.9.8" |
15 | |
16 | SDEPEND=">= virtual/kernel-headers" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude mbuild mtools |
22 | |
23 | ENABLED_PLUGINS="auth-pam down-root" |
24 | |
25 | SRC_URI=( |
26 | http://openvpn.net/release/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/openvpn.rc |
29 | ) |
30 | |
31 | src_compile() |
32 | { |
33 | cd ${SRCDIR} |
34 | |
35 | mconfigure --enable-lzo --enable-crypto --enable-ssl --enable-pthread || die |
36 | mmake || die |
37 | |
38 | local plugin |
39 | for plugin in ${ENABLED_PLUGINS} |
40 | do |
41 | mmake -C plugin/${plugin} || die ${plugin} |
42 | done |
43 | } |
44 | |
45 | src_install() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | # needed directories |
50 | minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die |
51 | minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die |
52 | minstalldir /usr/$(mlibdir)/openvpn/plugins || die |
53 | |
54 | mmake DESTDIR=${BINDIR} install || die |
55 | |
56 | minstallfile sample-config-files/\* \ |
57 | /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die |
58 | minstallfile sample-scripts/\* \ |
59 | /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die |
60 | |
61 | # install enabled plugins |
62 | local plugin |
63 | for plugin in ${ENABLED_PLUGINS} |
64 | do |
65 | minstallexec plugin/${plugin}/openvpn-${plugin}.so \ |
66 | /usr/$(mlibdir)/openvpn/plugins || die ${plugin} |
67 | cp plugin/${plugin}/{,${plugin}}README || die ${plugin} |
68 | minstalldocs plugin/${plugin}/${plugin}.README || die ${plugin} |
69 | done |
70 | |
71 | # initscript stuff |
72 | mkeepdir /etc/openvpn || die |
73 | minstallrc openvpn.rc openvpn || die |
74 | |
75 | minstalldocs AUTHORS COPYING COPYRIGHT.GPL ChangeLog NEWS PORTS README || die |
76 | } |
77 | |
78 | postinstall() |
79 | { |
80 | mstartservice openvpn |
81 | } |
82 | |
83 | postremove() |
84 | { |
85 | [[ ! -f /usr/sbin/openvpn ]] && mstopservice openvpn |
86 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |