wok view openvpn/receipt @ rev 20668

Up pjsip (2.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 21 10:25:55 2019 +0100 (2019-01-21)
parents 63d2fe54fb44
children a78610b2eb47
line source
1 # SliTaz package receipt.
3 PACKAGE="openvpn"
4 VERSION="2.3.17"
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 ./configure \
22 --prefix=/usr \
23 --enable-password-save \
24 $CONFIGURE_ARGS &&
25 make &&
26 ( cd plugin/auth-pam/ ; make ) &&
27 ( cd plugin/down-root/ ; make ) &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/sbin
35 cp -a $install/usr/sbin/openvpn $fs/usr/sbin
36 cp -a $stuff/etc $fs
37 chown root.root $fs/etc/init.d/*
38 chmod 0644 $fs/etc/openvpn/openvpn.conf
39 }
41 post_remove()
42 {
43 # remove config
44 rm -rf ${root}/etc/openvpn
45 }