wok view openvpn/receipt @ rev 19017

slitaz-arm-adm, slitaz-arm-codex, slitaz-arm-configs: hard code version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 01 10:34:29 2016 +0200 (2016-04-01)
parents 0d8a1a3edc72
children c5ff983a04cf
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.3.6"
5 CATEGORY="network"
6 SHORT_DESC="Full-featured open source SSL VPN solution."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://openvpn.net/"
11 WGET_URL="http://swupdate.openvpn.net/community/releases/$TARBALL"
12 TAGS="vpn tunnel network"
13 HOST_ARCH="i486 arm"
15 DEPENDS="lzo libcrypto openssl"
16 BUILD_DEPENDS="lzo-dev libcrypto-dev openssl-dev pam-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --enable-password-save \
25 $CONFIGURE_ARGS &&
26 make &&
27 ( cd plugin/auth-pam/ ; make ) &&
28 ( cd plugin/down-root/ ; make ) &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/sbin
36 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
37 cp -a $stuff/etc $fs
38 chown root.root $fs/etc/init.d/*
39 chmod 0644 $fs/etc/openvpn/openvpn.conf
40 }
42 post_remove()
43 {
44 # remove config
45 rm -rf ${root}/etc/openvpn
46 }