termux-packages/root-packages/openvpn/build.sh

31 lines
1.0 KiB
Bash
Raw Normal View History

2019-09-18 13:48:31 +02:00
TERMUX_PKG_HOMEPAGE=https://openvpn.net
TERMUX_PKG_DESCRIPTION="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2020-05-10 16:04:54 +02:00
TERMUX_PKG_VERSION=2.4.9
TERMUX_PKG_REVISION=1
2019-09-18 13:48:31 +02:00
TERMUX_PKG_SRCURL=https://swupdate.openvpn.net/community/releases/openvpn-${TERMUX_PKG_VERSION}.tar.xz
2020-05-10 16:04:54 +02:00
TERMUX_PKG_SHA256=641f3add8694b2ccc39fd4fd92554e4f089ad16a8db6d2b473ec284839a5ebe2
2019-09-18 13:48:31 +02:00
TERMUX_PKG_DEPENDS="liblz4, liblzo, net-tools, openssl"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-plugin-auth-pam
--disable-systemd
--disable-debug
--enable-iproute2
--enable-small
--enable-x509-alt-username
ac_cv_func_getpwnam=yes
IFCONFIG=$TERMUX_PREFIX/bin/ifconfig
ROUTE=$TERMUX_PREFIX/bin/route
IPROUTE=$TERMUX_PREFIX/bin/ip
NETSTAT=$TERMUX_PREFIX/bin/netstat
"
termux_step_post_make_install() {
# Examples.
install -d -m700 "$TERMUX_PREFIX/share/openvpn/examples"
cp "$TERMUX_PKG_SRCDIR"/sample/sample-config-files/* "$TERMUX_PREFIX/share/openvpn/examples"
}