termux/termux-root-packages

Package request: openfortivpn

ftopan80 opened this issue · 2 comments

Package description
openfortivpn is a client for PPP+SSL VPN tunnel services. It spawns a pppd process and operates the communication between the gateway and this process.
It is compatible with Fortinet VPNs.

Link to home page and sources

  1. Home page: https://github.com/adrienverge/openfortivpn
  2. Source code: https://github.com/adrienverge/openfortivpn

Additional information
Have you compiled or tried to compile the package on device?

  • Yes, but failed
$ ./autogen.sh
+ type autoconf
+ type automake
+ type aclocal
+ aclocal
+ autoconf
+ automake --add-missing
+ echo now you can run ./configure && make to build openfortivpn
now you can run ./configure && make to build openfortivpn
$ ./configure --prefix=$PREFIX --sysconfdir=$PREFIX/etc
checking for a BSD-compatible install... /data/data/com.termux/files/usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /data/data/com.termux/files/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking for a sed that does not truncate output... /data/data/com.termux/files/usr/bin/sed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /data/data/com.termux/files/usr/bin/grep
checking for egrep... /data/data/com.termux/files/usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for pkg-config... /data/data/com.termux/files/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for git... /data/data/com.termux/files/usr/bin/git
checking whether make supports nested variables... (cached) yes
checking for libssl >= 0.9.8 libcrypto >= 0.9.8... yes
checking for pthread_create in -lpthread... yes
checking for forkpty in -lutil... yes
checking for libsystemd... no
libsystemd not present
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for net/route.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking sys/mutex.h usability... no
checking sys/mutex.h presence... no
checking for sys/mutex.h... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking for net/if_var.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for struct termios... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for access... yes
checking for atoi... yes
checking for close... yes
checking for connect... yes
checking for execv... yes
checking for exit... yes
checking for _exit... yes
checking for fclose... yes
checking for fcntl... yes
checking for fflush... yes
checking for fileno... yes
checking for fopen... yes
checking for forkpty... yes
checking for fprintf... yes
checking for fputc... yes
checking for fputs... yes
checking for fread... yes
checking for free... yes
checking for freeaddrinfo... yes
checking for freeifaddrs... yes
checking for freopen... yes
checking for fwrite... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getchar... yes
checking for getenv... yes
checking for geteuid... yes
checking for getifaddrs... yes
checking for getopt_long... yes
checking for htons... yes
checking for index... no
configure: error: Required function not found

Weird that it "requires" index (if that's where the error is thrown), that function was deprecated years ago in favour of strchr

I found this adrienverge/openfortivpn#570
so after getting pass the index function error, apparently this program use pthread_*
So i'm closing this request as this is only nice to have.
Android app here : https://play.google.com/store/apps/details?id=com.fortinet.forticlient_vpn

Thanks