wok annotate openvpn/receipt @ rev 15466
asterisk: add some addons
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 08 09:51:52 2013 +0000 (2013-11-08) |
parents | f2ca3cf4f646 |
children | 051931e905b0 |
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@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" |
pascal@317 | 12 DEPENDS="lzo openssl" |
slaxemulator@6377 | 13 BUILD_DEPENDS="lzo-dev openssl-dev libcrypto-dev pam pam-dev" |
jozee@4970 | 14 TAGS="vpn tunnel network" |
pascal@317 | 15 |
pascal@317 | 16 # Rules to configure and make the package. |
pascal@317 | 17 compile_rules() |
pascal@317 | 18 { |
pascal@317 | 19 cd $src |
pankso@10810 | 20 ./configure \ |
pankso@10810 | 21 --prefix=/usr \ |
pankso@10810 | 22 --enable-password-save \ |
pankso@10810 | 23 $CONFIGURE_ARGS && |
pascal@1514 | 24 make && |
pascal@2224 | 25 ( cd plugin/auth-pam/ ; make ) && |
pascal@2224 | 26 ( cd plugin/down-root/ ; make ) && |
slaxemulator@10125 | 27 make DESTDIR=$DESTDIR install |
pascal@317 | 28 } |
pascal@317 | 29 |
pascal@317 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@317 | 31 genpkg_rules() |
pascal@317 | 32 { |
pascal@317 | 33 mkdir -p $fs/usr/sbin |
pascal@317 | 34 cp -a $_pkg/usr/sbin/openvpn $fs/usr/sbin |
pascal@317 | 35 } |
pascal@317 | 36 |
pascal@336 | 37 # Post install/remove commands for Tazpkg. |
pascal@336 | 38 post_install() |
pascal@336 | 39 { |
pascal@1137 | 40 mkdir -p $1/etc/openvpn $1/var/run/openvpn |
pascal@336 | 41 } |
pascal@336 | 42 |
pascal@336 | 43 post_remove() |
pascal@336 | 44 { |
pascal@336 | 45 # remove config and pids |
slaxemulator@10125 | 46 rm -rf $1/etc/openvpn $1/var/run/openvpn |
pascal@336 | 47 } |
pascal@336 | 48 |