wok-4.x view openvpn/receipt @ rev 3522
tazdev+tazpkg-web: Tiny fix and clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 21 03:56:11 2009 +0200 (2009-06-21) |
parents | 52dc4b48ed81 |
children | f135405894d8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.0.9"
5 CATEGORY="network"
6 SHORT_DESC="Full-featured open source SSL VPN solution."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://openvpn.net/"
10 WGET_URL="${WEB_SITE}release/$TARBALL"
11 DEPENDS="lzo openssl"
12 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr \
19 $CONFIGURE_ARGS &&
20 make &&
21 ( cd plugin/auth-pam/ ; make ) &&
22 ( cd plugin/down-root/ ; make ) &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/sbin
30 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 mkdir -p $1/etc/openvpn $1/var/run/openvpn
37 }
39 post_remove()
40 {
41 # remove config and pids
42 rm -rf /etc/openvpn /var/run/openvpn
43 }