@ -19,13 +19,12 @@ PKG_MAINTAINER:=Ken Keys <spoofer-info@caida.org>
PKG_LICENSE := GPL-3.0-or-later
PKG_LICENSE := GPL-3.0-or-later
PKG_LICENSE_FILES := LICENSE
PKG_LICENSE_FILES := LICENSE
PKG_USE_MIPS16 := 0
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := protobuf/host
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
$( eval $ ( call HostBuild ) )
d e f i n e P a c k a g e / s p o o f e r
d e f i n e P a c k a g e / s p o o f e r
SECTION:= net
SECTION:= net
CATEGORY:= Network
CATEGORY:= Network
@ -54,19 +53,15 @@ CONFIGURE_ARGS += \
CONFIGURE_VARS += \
CONFIGURE_VARS += \
PROTOC = $( STAGING_DIR_HOSTPKG) /bin/protoc
PROTOC = $( STAGING_DIR_HOSTPKG) /bin/protoc
EXTRA_CXXFLAGS += -std= gnu++14
SPOOFER_SRC = $( PKG_BUILD_DIR)
d e f i n e P a c k a g e / s p o o f e r / i n s t a l l
d e f i n e P a c k a g e / s p o o f e r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /prober /spoofer-prober $( 1) /usr/bin
$( INSTALL_BIN) $( SPOOFER_SRC ) /openwrt-files/spoofer $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin//spoofer-prober $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /openwrt-files/spoofer $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) $( SPOOFER_SRC ) /openwrt-files/initscript $( 1) /etc/init.d/spoofer
$( INSTALL_BIN) $( PKG_BUILD_DIR ) /openwrt-files/initscript $( 1) /etc/init.d/spoofer
$( INSTALL_DIR) $( 1) /usr/share/spoofer
$( INSTALL_DIR) $( 1) /usr/share/spoofer
$( INSTALL_DATA) $( SPOOFER_SRC ) /gd_bundle.crt $( 1) /usr/share/spoofer
$( INSTALL_DATA) $( SPOOFER_SRC ) /openwrt-files/spoofer-lib.sh $( 1) /usr/share/spoofer
$( INSTALL_DATA) $( PKG_BUILD_DIR ) /gd_bundle.crt $( 1) /usr/share/spoofer
$( INSTALL_DATA) $( PKG_BUILD_DIR ) /openwrt-files/spoofer-lib.sh $( 1) /usr/share/spoofer
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,spoofer ) )
$( eval $ ( call BuildPackage ,spoofer ) )