wok-6.x annotate openvpn/receipt @ rev 16381
ARM: add openvpn, openssh, fuse, sshfs-fuse and more
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 15 04:46:37 2014 +0200 (2014-04-15) |
parents | 6167b0fd38db |
children | cc6e05d2cb9a |
rev | line source |
---|---|
pascal@317 | 1 # SliTaz package receipt. |
pascal@317 | 2 |
pascal@317 | 3 PACKAGE="openvpn" |
pankso@15785 | 4 VERSION="2.3.2" |
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" |
pankso@15785 | 12 TAGS="vpn tunnel network" |
pankso@16381 | 13 HOST_ARCH="i486 arm" |
pankso@15785 | 14 |
pankso@16381 | 15 DEPENDS="lzo libcrypto openssl" |
pankso@16381 | 16 BUILD_DEPENDS="lzo-dev libcrypto-dev openssl-dev pam-dev" |
pascal@317 | 17 |
pascal@317 | 18 # Rules to configure and make the package. |
pascal@317 | 19 compile_rules() |
pascal@317 | 20 { |
pascal@317 | 21 cd $src |
pankso@10810 | 22 ./configure \ |
pankso@10810 | 23 --prefix=/usr \ |
pankso@10810 | 24 --enable-password-save \ |
pankso@10810 | 25 $CONFIGURE_ARGS && |
pascal@1514 | 26 make && |
pascal@2224 | 27 ( cd plugin/auth-pam/ ; make ) && |
pascal@2224 | 28 ( cd plugin/down-root/ ; make ) && |
slaxemulator@10125 | 29 make DESTDIR=$DESTDIR install |
pascal@317 | 30 } |
pascal@317 | 31 |
pascal@317 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@317 | 33 genpkg_rules() |
pascal@317 | 34 { |
pascal@317 | 35 mkdir -p $fs/usr/sbin |
pascal@15603 | 36 cp -a $install/usr/sbin/openvpn $fs/usr/sbin |
pascal@317 | 37 } |
pascal@317 | 38 |
pascal@336 | 39 # Post install/remove commands for Tazpkg. |
pascal@336 | 40 post_install() |
pascal@336 | 41 { |
pankso@15785 | 42 mkdir -p ${root}/etc/openvpn ${root}/var/run/openvpn |
pascal@336 | 43 } |
pascal@336 | 44 |
pascal@336 | 45 post_remove() |
pascal@336 | 46 { |
pascal@336 | 47 # remove config and pids |
pankso@15785 | 48 rm -rf ${root}/etc/openvpn ${root}/var/run/openvpn |
pascal@336 | 49 } |
pascal@336 | 50 |