blob: 20c2a8d8f681452f1965d797b8a2d13622a7181c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$(call PKG_INIT_BIN, 1.1)
$(PKG)_SOURCE:=ptunnel-ng-$($(PKG)_VERSION).tar.gz
$(PKG)_SOURCE_SHA256:=3182ecc4f9a7ef3ae8895b460aa596ae050b9718b98fd5eaf224772fba017c22
$(PKG)_SITE:=https://github.com/lnslbrty/ptunnel-ng/releases/download/v$($(PKG)_VERSION)
$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/ptunnel-ng-$($(PKG)_VERSION)
$(PKG)_BINARY:=$($(PKG)_DIR)/src/ptunnel-ng
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/ptunnel-ng
$(PKG)_BUILD_PREREQ += aclocal automake autoconf
$(PKG)_DEPENDS_ON += libpcap
$(PKG)_EXTRA_CFLAGS += -std=gnu99
$(PKG)_CONFIGURE_OPTIONS += --disable-selinux
$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_CONFIGURE)
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
echo "______$(PINGTUNNEL_NG_EXTRA_CFLAGS)_____"
$(SUBMAKE) -C $(PINGTUNNEL_NG_DIR) V=1 \
CFLAGS="$(TARGET_CFLAGS) $(PINGTUNNEL_NG_EXTRA_CFLAGS)"
$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)
$(pkg):
$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
$(pkg)-uninstall:
$(RM) $(PINGTUNNEL_NG_TARGET_BINARY)
$(PKG_FINISH)
|