rev |
line source |
pascal@317
|
1 # SliTaz package receipt.
|
pascal@317
|
2
|
pascal@317
|
3 PACKAGE="openvpn"
|
pankso@15785
|
4 VERSION="2.3.2"
|
pascal@317
|
5 CATEGORY="network"
|
pascal@317
|
6 SHORT_DESC="Full-featured open source SSL VPN solution."
|
pascal@317
|
7 MAINTAINER="pascal.bellard@slitaz.org"
|
pascal@14698
|
8 LICENSE="GPL2"
|
pascal@317
|
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
|
pascal@317
|
10 WEB_SITE="http://openvpn.net/"
|
pascal@10585
|
11 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
|
pankso@15785
|
12 TAGS="vpn tunnel network"
|
pankso@15785
|
13
|
pascal@317
|
14 DEPENDS="lzo openssl"
|
pankso@15785
|
15 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev pam-dev"
|
pascal@317
|
16
|
pascal@317
|
17 # Rules to configure and make the package.
|
pascal@317
|
18 compile_rules()
|
pascal@317
|
19 {
|
pascal@317
|
20 cd $src
|
pankso@10810
|
21 ./configure \
|
pankso@10810
|
22 --prefix=/usr \
|
pankso@10810
|
23 --enable-password-save \
|
pankso@10810
|
24 $CONFIGURE_ARGS &&
|
pascal@1514
|
25 make &&
|
pascal@2224
|
26 ( cd plugin/auth-pam/ ; make ) &&
|
pascal@2224
|
27 ( cd plugin/down-root/ ; make ) &&
|
slaxemulator@10125
|
28 make DESTDIR=$DESTDIR install
|
pascal@317
|
29 }
|
pascal@317
|
30
|
pascal@317
|
31 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pascal@317
|
32 genpkg_rules()
|
pascal@317
|
33 {
|
pascal@317
|
34 mkdir -p $fs/usr/sbin
|
pascal@15603
|
35 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
|
pascal@317
|
36 }
|
pascal@317
|
37
|
pascal@336
|
38 # Post install/remove commands for Tazpkg.
|
pascal@336
|
39 post_install()
|
pascal@336
|
40 {
|
pankso@15785
|
41 mkdir -p ${root}/etc/openvpn ${root}/var/run/openvpn
|
pascal@336
|
42 }
|
pascal@336
|
43
|
pascal@336
|
44 post_remove()
|
pascal@336
|
45 {
|
pascal@336
|
46 # remove config and pids
|
pankso@15785
|
47 rm -rf ${root}/etc/openvpn ${root}/var/run/openvpn
|
pascal@336
|
48 }
|
pascal@336
|
49
|