littlecms: Update src checksum
[termux-packages] / disabled-packages / openvpn / build.sh
... / ...
CommitLineData
1TERMUX_PKG_HOMEPAGE=https://openvpn.net
2TERMUX_PKG_DESCRIPTION="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
3TERMUX_PKG_VERSION=2.4.2
4TERMUX_PKG_DEPENDS="openssl, liblzo, net-tools"
5TERMUX_PKG_SRCURL=https://swupdate.openvpn.net/community/releases/openvpn-${TERMUX_PKG_VERSION}.tar.xz
6TERMUX_PKG_SHA256=df5c4f384b7df6b08a2f6fa8a84b9fd382baf59c2cef1836f82e2a7f62f1bff9
7TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
8--disable-plugin-auth-pam
9--disable-systemd
10--disable-debug
11--enable-iproute2
12--enable-small
13--enable-x509-alt-username
14ac_cv_func_getpwnam=yes
15ac_cv_func_getpass=yes
16IFCONFIG=$TERMUX_PREFIX/bin/ifconfig
17ROUTE=$TERMUX_PREFIX/bin/route
18IPROUTE=$TERMUX_PREFIX/bin/ip
19NETSTAT=$TERMUX_PREFIX/bin/netstat"
20TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
21
22termux_step_pre_configure () {
23 # need to provide getpass, else you "can't get console input"
24 cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/src/openvpn/"
25
26# CFLAGS="$CFLAGS -DTARGET_ANDROID"
27 LDFLAGS="$LDFLAGS -llog "
28}
29
30termux_step_post_make_install () {
31 # helper script
32 install -m700 "$TERMUX_PKG_BUILDER_DIR/termux-openvpn" "$TERMUX_PREFIX/bin/"
33 # Install examples
34 install -d -m755 "$TERMUX_PREFIX/share/openvpn/examples"
35 cp "$TERMUX_PKG_SRCDIR"/sample/sample-config-files/* "$TERMUX_PREFIX/share/openvpn/examples"
36}