2017-02-08 00:44:12 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://openvpn.net
|
2017-04-09 22:02:35 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
|
2017-05-15 15:27:45 +02:00
|
|
|
TERMUX_PKG_VERSION=2.4.2
|
2017-04-09 22:02:35 +02:00
|
|
|
TERMUX_PKG_DEPENDS="openssl, liblzo, net-tools"
|
2017-02-08 00:44:12 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://swupdate.openvpn.net/community/releases/openvpn-${TERMUX_PKG_VERSION}.tar.xz
|
2017-05-15 15:27:45 +02:00
|
|
|
TERMUX_PKG_SHA256=df5c4f384b7df6b08a2f6fa8a84b9fd382baf59c2cef1836f82e2a7f62f1bff9
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-plugin-auth-pam
|
2017-04-09 22:02:35 +02:00
|
|
|
--disable-systemd
|
|
|
|
--disable-debug
|
|
|
|
--enable-iproute2
|
|
|
|
--enable-small
|
|
|
|
--enable-x509-alt-username
|
|
|
|
ac_cv_func_getpwnam=yes
|
|
|
|
ac_cv_func_getpass=yes
|
|
|
|
IFCONFIG=$TERMUX_PREFIX/bin/ifconfig
|
|
|
|
ROUTE=$TERMUX_PREFIX/bin/route
|
|
|
|
IPROUTE=$TERMUX_PREFIX/bin/ip
|
|
|
|
NETSTAT=$TERMUX_PREFIX/bin/netstat"
|
|
|
|
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
2017-02-08 00:44:12 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
# need to provide getpass, else you "can't get console input"
|
|
|
|
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/src/openvpn/"
|
|
|
|
|
|
|
|
# CFLAGS="$CFLAGS -DTARGET_ANDROID"
|
|
|
|
LDFLAGS="$LDFLAGS -llog "
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
# helper script
|
2017-04-09 22:02:35 +02:00
|
|
|
install -m700 "$TERMUX_PKG_BUILDER_DIR/termux-openvpn" "$TERMUX_PREFIX/bin/"
|
2017-02-08 00:44:12 +01:00
|
|
|
# Install examples
|
2017-04-09 22:02:35 +02:00
|
|
|
install -d -m755 "$TERMUX_PREFIX/share/openvpn/examples"
|
|
|
|
cp "$TERMUX_PKG_SRCDIR"/sample/sample-config-files/* "$TERMUX_PREFIX/share/openvpn/examples"
|
2017-02-08 00:44:12 +01:00
|
|
|
}
|