mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
5c5531c863
This commit has been automatically submitted by Github Actions.
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://openvpn.net
|
|
TERMUX_PKG_DESCRIPTION="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
|
|
# License: GPL-2.0-with-OpenSSL-exception
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.6.12"
|
|
TERMUX_PKG_SRCURL=https://github.com/OpenVPN/openvpn/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=cbca5e13b2b1c4de5ef0361d37c44b5e97e8654948f80d95ca249b474108d4c0
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libcap-ng, 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_pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
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"
|
|
}
|