ptunnel-ng: Remove libbsd dependency 8517/head
authorRosen Penev <rosenp@gmail.com>
Tue, 26 Mar 2019 21:49:08 +0000 (14:49 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 27 Mar 2019 20:10:05 +0000 (13:10 -0700)
Fixes compilation when both libbsd and ptunnel-ng are selected.
libbsd is used for arc4random with a fallback to /dev/random. musl does
not support arc4random.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/ptunnel-ng/Makefile

index 3b409c163690f27d868d8ad80f4629d377b5ab27..3e1e2a479af6cdd977f33569dff196528b3d176b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ptunnel-ng
 PKG_VERSION:=1.40
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/lnslbrty/ptunnel-ng/tar.gz/v$(PKG_VERSION)?
@@ -32,6 +32,10 @@ CONFIGURE_ARGS += \
        --disable-pcap \
        --disable-selinux
 
+CONFIGURE_VARS += \
+       ac_cv_header_bsd_stdlib_h=no \
+       ac_cv_search_arc4random=no
+
 define Package/ptunnel-ng/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/$(PKG_NAME)