Magellan Linux

Annotation of /trunk/extras/openvpn/openvpn-2.1_rc22-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4321 - (hide annotations) (download)
Tue Dec 1 17:31:11 2009 UTC (14 years, 6 months ago) by niro
File size: 1977 byte(s)
auto added: ver bump to 2.1_rc22-r1
1 niro 4321 # $Id$
2    
3     PNAME="openvpn"
4     PVER="2.1_rc22"
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     >= sys-apps/iproute2-2.6
16     >= sys-libs/pam-1.1"
17    
18     SDEPEND=">= virtual/kernel-headers"
19    
20     SRCFILE="${PNAME}-${PVER}.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23     sminclude mbuild mtools
24    
25     ENABLED_PLUGINS="auth-pam down-root"
26    
27     SRC_URI=(
28     http://openvpn.net/release/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     mirror://${PNAME}/openvpn.rc
31     )
32    
33     UP2DATE="updatecmd http://openvpn.net/release/ | grep ${PNAME}- | lasttarball gz"
34    
35     src_compile()
36     {
37     cd ${SRCDIR}
38    
39     mconfigure --enable-lzo --enable-crypto --enable-ssl --enable-pthread --enable-iproute2 || die
40     mmake || die
41    
42     local plugin
43     for plugin in ${ENABLED_PLUGINS}
44     do
45     mmake -C plugin/${plugin} || die ${plugin}
46     done
47     }
48    
49     src_install()
50     {
51     cd ${SRCDIR}
52    
53     # needed directories
54     minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
55     minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
56     minstalldir /usr/$(mlibdir)/openvpn/plugins || die
57    
58     mmake DESTDIR=${BINDIR} install || die
59    
60     minstallfile sample-config-files/\* \
61     /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die
62     minstallfile sample-scripts/\* \
63     /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die
64    
65     # install enabled plugins
66     local plugin
67     for plugin in ${ENABLED_PLUGINS}
68     do
69     minstallexec plugin/${plugin}/openvpn-${plugin}.so \
70     /usr/$(mlibdir)/openvpn/plugins || die ${plugin}
71     cp plugin/${plugin}/{,${plugin}}README || die ${plugin}
72     minstalldocs plugin/${plugin}/${plugin}.README || die ${plugin}
73     done
74    
75     # initscript stuff
76     mkeepdir /etc/openvpn || die
77     minstallrc openvpn.rc openvpn || die
78    
79     minstalldocs AUTHORS COPYING COPYRIGHT.GPL ChangeLog NEWS PORTS README || die
80     }
81    
82     postinstall()
83     {
84     mstartservice openvpn
85     }
86    
87     postremove()
88     {
89     [[ ! -f /usr/sbin/openvpn ]] && mstopservice openvpn
90     }

Properties

Name Value
svn:keywords Id