wok-4.x annotate openvpn/receipt @ rev 12039

Up: tazlito (4.4) - Better russian dolls support and fixes
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 07 13:55:33 2012 +0100 (2012-03-07)
parents 065613bca28b
children
rev   line source
pascal@317 1 # SliTaz package receipt.
pascal@317 2
pascal@317 3 PACKAGE="openvpn"
slaxemulator@11061 4 VERSION="2.2.1"
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@317 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@317 9 WEB_SITE="http://openvpn.net/"
pascal@10585 10 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
pascal@317 11 DEPENDS="lzo openssl"
slaxemulator@6377 12 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev pam pam-dev"
jozee@4970 13 TAGS="vpn tunnel network"
pascal@317 14
pascal@317 15 # Rules to configure and make the package.
pascal@317 16 compile_rules()
pascal@317 17 {
pascal@317 18 cd $src
pankso@10810 19 ./configure \
pankso@10810 20 --prefix=/usr \
pankso@10810 21 --enable-password-save \
pankso@10810 22 $CONFIGURE_ARGS &&
pascal@1514 23 make &&
pascal@2224 24 ( cd plugin/auth-pam/ ; make ) &&
pascal@2224 25 ( cd plugin/down-root/ ; make ) &&
slaxemulator@10125 26 make DESTDIR=$DESTDIR install
pascal@317 27 }
pascal@317 28
pascal@317 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@317 30 genpkg_rules()
pascal@317 31 {
pascal@317 32 mkdir -p $fs/usr/sbin
pascal@317 33 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin
pascal@317 34 }
pascal@317 35
pascal@336 36 # Post install/remove commands for Tazpkg.
pascal@336 37 post_install()
pascal@336 38 {
pascal@1137 39 mkdir -p $1/etc/openvpn $1/var/run/openvpn
pascal@336 40 }
pascal@336 41
pascal@336 42 post_remove()
pascal@336 43 {
pascal@336 44 # remove config and pids
slaxemulator@10125 45 rm -rf $1/etc/openvpn $1/var/run/openvpn
pascal@336 46 }
pascal@336 47