@ -8,45 +8,49 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libtins
PKG_VERSION := 4.0
PKG_RELEASE := 3
PKG_MAINTAINER := Steven Hessing <steven.hessing@gmail.com>
PKG_VERSION := 4.2
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/mfontanini/libtins/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := 2a758d1bed51760bbd57fcaa00610534e0cc3a6d55d91983724e5f46739d66b8
PKG_HASH := a9fed73e13f06b06a4857d342bb30815fa8c359d00bd69547e567eecbbb4c3a1
PKG_MAINTAINER := Steven Hessing <steven.hessing@gmail.com>
PKG_LICENSE := BSD-2-Clause
PKG_LICENSE_FILES := LICENSE
PKG_BUILD_PARALLEL := 1
CMAKE_INSTALL := 1
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 ) / c m a k e . m k
CMAKE_OPTIONS += -D_RUN_RESULT_VAR= FORCE
CMAKE_OPTIONS += -DLIBTINS_ENABLE_WPA2= 0
CMAKE_OPTIONS += -DLIBTINS_ENABLE_CXX11= 1
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/ $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/include/tins $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libtins* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b t i n s
SECTION:= net
CATEGORY:= Libraries
TITLE:= libtins
URL:= https://libtins.github.io/
DEPENDS:= +libstdcpp +libpcap
SECTION:= net
CATEGORY:= Libraries
TITLE:= libtins
URL:= https://libtins.github.io/
DEPENDS:= +libstdcpp +libpcap
e n d e f
d e f i n e P a c k a g e / l i b t i n s / d e s c r i p t i o n
l i b t i n s i s a h i g h - l e v e l , m u l t i p l a t f o r m C + + n e t w o r k p a c k e t s n i f f i n g a n d c r a f t i n g l i b r a r y .
l ibtins is a high-le vel , mul tipla tfor m C++ ne twor k pac ke t sn iffin g an d cra ftin g l ibrar y.
e n d e f
CMAKE_OPTIONS += \
-D_RUN_RESULT_VAR= FORCE \
-DLIBTINS_BUILD_EXAMPLES= OFF \
-DLIBTINS_BUILD_TESTS= OFF \
-DLIBTINS_ENABLE_ACK_TRACKER= OFF \
-DLIBTINS_ENABLE_CXX11= ON \
-DLIBTINS_ENABLE_DOT11= OFF \
-DLIBTINS_ENABLE_PCAP= ON \
-DLIBTINS_ENABLE_TCP_STREAM_CUSTOM_DATA= OFF \
-DLIBTINS_ENABLE_WPA2= OFF
TARGET_CXXFLAGS += -fno-rtti -ffunction-sections -fdata-sections -flto
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
d e f i n e P a c k a g e / l i b t i n s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libtins.so.* $( 1) /usr/lib/