wok-stable annotate openvpn/receipt @ rev 9492
Up: tazpkg (4.4) - New notification and stuff from GoKhlaYeh branch (I dont want branch...)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 06 01:56:27 2011 +0200 (2011-04-06) |
parents | 6ec17b55b59a |
children | 744bfcbb6e1d |
rev | line source |
---|---|
pascal@317 | 1 # SliTaz package receipt. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
slaxemulator@6377 | 4 VERSION="2.1.3" |
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@317 | 10 WGET_URL="${WEB_SITE}release/$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 |
pascal@317 | 19 ./configure --prefix=/usr \ |
pascal@1514 | 20 $CONFIGURE_ARGS && |
pascal@1514 | 21 make && |
pascal@2224 | 22 ( cd plugin/auth-pam/ ; make ) && |
pascal@2224 | 23 ( cd plugin/down-root/ ; make ) && |
pascal@317 | 24 make DESTDIR=$PWD/_pkg install |
pascal@317 | 25 } |
pascal@317 | 26 |
pascal@317 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@317 | 28 genpkg_rules() |
pascal@317 | 29 { |
pascal@317 | 30 mkdir -p $fs/usr/sbin |
pascal@317 | 31 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin |
pascal@317 | 32 } |
pascal@317 | 33 |
pascal@336 | 34 # Post install/remove commands for Tazpkg. |
pascal@336 | 35 post_install() |
pascal@336 | 36 { |
pascal@1137 | 37 mkdir -p $1/etc/openvpn $1/var/run/openvpn |
pascal@336 | 38 } |
pascal@336 | 39 |
pascal@336 | 40 post_remove() |
pascal@336 | 41 { |
pascal@336 | 42 # remove config and pids |
pascal@336 | 43 rm -rf /etc/openvpn /var/run/openvpn |
pascal@336 | 44 } |
pascal@336 | 45 |