diff options
author | emanuele-f <black.silver@hotmail.it> | 2018-11-12 12:15:41 +0100 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2018-11-13 09:58:31 +0100 |
commit | 9e72884c7b92cc334fd1b58446b56240ab1c848a (patch) | |
tree | e632643e09ff6cffebf18a459f130bf7ef72ba86 /packages | |
parent | 71b2c19cf28f72ad2e876719af88c7841c2aea84 (diff) |
Add OpenWrt Makefile
Diffstat (limited to 'packages')
-rw-r--r-- | packages/openwrt/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/packages/openwrt/Makefile b/packages/openwrt/Makefile new file mode 100644 index 000000000..4b8429b59 --- /dev/null +++ b/packages/openwrt/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 2018 - ntop.org +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libndpi +PKG_VERSION:=1333.ab2f3ce +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/ntop/nDPI.git +PKG_SOURCE_VERSION:=ab2f3cefc89017d73e67faa4eb4011e7e3f2044d +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_PROTO:=git + +PKG_MAINTAINER:=Emanuele Faranda <faranda@ntop.org> +PKG_LICENSE:=GPL3 +PKG_BUILD_DEPENDS:=+libpcap +PKG_BUILD_PARALLEL:=1 + +# autogen fix +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk + +define Package/libndpi + SECTION:=network + CATEGORY:=Network + #DEPENDS:=+libc +libjson-c +libpthread + TITLE:=nDPI Deep Packet Inspection Library + URL:=https://www.ntop.org +endef + +define Package/libndpi/description + Open and Extensible GPLv3 Deep Packet Inspection Library +endef + +CONFIGURE_ARGS += \ + --with-pic \ + --disable-json-c \ + +define Build/Prepare + $(call Build/Prepare/Default) +endef + +define Build/Configure + ( cd $(PKG_BUILD_DIR); ./autogen.sh ) + $(call Build/Configure/Default) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(STAGING_DIR)/usr/local/include/libndpi + $(CP) $(PKG_BUILD_DIR)/src/include/* $(STAGING_DIR)/usr/local/include/libndpi + $(INSTALL_DIR) $(STAGING_DIR)/usr/local/lib + $(CP) $(PKG_BUILD_DIR)/src/lib/libndpi.* $(STAGING_DIR)/usr/local/lib +endef + +$(eval $(call BuildPackage,libndpi)) |