packages/net/ptunnel-ng/Makefile
Rosen Penev 25b8159061
ptunnel-ng: Remove libbsd dependency
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>
2019-03-27 13:10:05 -07:00

44 lines
1 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=ptunnel-ng
PKG_VERSION:=1.40
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)?
PKG_HASH:=ad2f2032a79ad41e871c00d28c94670c10ed74920de54d977fe0a33a65fcac76
PKG_LICENSE:=BSD-3
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ptunnel-ng
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread
TITLE:=PingTunnel [N]ew[G]eneration
MAINTAINER:=Toni Uhlig <matzeton@googlemail.com>
URL:=https://github.com/lnslbrty/ptunnel-ng
endef
define Package/ptunnel-ng/description
Tunnel TCP connections through ICMP.
endef
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)
endef
$(eval $(call BuildPackage,ptunnel-ng))