wok annotate openvpn/receipt @ rev 961
Add linux-jfs linux-xfs linux-gfs2 linux-udf linux-cifs linux-ncp linux-coda and wireless cards RT61PCI and RT73USB
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 29 18:45:01 2008 +0000 (2008-06-29) |
parents | 814121e1734f |
children | 10710b8535bc |
rev | line source |
---|---|
pascal@317 | 1 # SliTaz package receipt. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
pascal@317 | 4 VERSION="2.0.9" |
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" |
pascal@317 | 12 BUILD_DEPENDS="lzo-dev openssl-dev" |
pascal@317 | 13 |
pascal@317 | 14 # Rules to configure and make the package. |
pascal@317 | 15 compile_rules() |
pascal@317 | 16 { |
pascal@317 | 17 cd $src |
pascal@317 | 18 ./configure --prefix=/usr \ |
pascal@317 | 19 $CONFIGURE_ARGS |
pascal@317 | 20 make |
pascal@317 | 21 make DESTDIR=$PWD/_pkg install |
pascal@317 | 22 } |
pascal@317 | 23 |
pascal@317 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@317 | 25 genpkg_rules() |
pascal@317 | 26 { |
pascal@317 | 27 mkdir -p $fs/usr/sbin |
pascal@317 | 28 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin |
pascal@317 | 29 } |
pascal@317 | 30 |
pascal@336 | 31 # Post install/remove commands for Tazpkg. |
pascal@336 | 32 post_install() |
pascal@336 | 33 { |
pascal@336 | 34 mkdir -p /etc/openvpn /var/run/openvpn |
pascal@336 | 35 } |
pascal@336 | 36 |
pascal@336 | 37 post_remove() |
pascal@336 | 38 { |
pascal@336 | 39 # remove config and pids |
pascal@336 | 40 rm -rf /etc/openvpn /var/run/openvpn |
pascal@336 | 41 } |
pascal@336 | 42 |