diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-11-28 05:46:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 05:46:59 -0800 |
commit | 755e27ce22f45fc0ba403c5421c2e7d907405f35 (patch) | |
tree | 5a89ee43d0a3720ea186a3d8417b32148d7893f6 /libs | |
parent | 56eb4078e5895f5ebf2f852dc605eed74f0956a5 (diff) | |
parent | 9ec405756b0dbae36e4a24a6b62c0356553eeb1e (diff) |
Merge pull request #14050 from neheb/lncth
libnetfilter-cthelper: import from base
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libnetfilter-cthelper/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/libs/libnetfilter-cthelper/Makefile b/libs/libnetfilter-cthelper/Makefile new file mode 100644 index 000000000..3a28f186a --- /dev/null +++ b/libs/libnetfilter-cthelper/Makefile @@ -0,0 +1,72 @@ +# +# Copyright (C) 2009-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libnetfilter_cthelper +PKG_VERSION:=1.0.0 +PKG_RELEASE:=2 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:= \ + http://www.netfilter.org/projects/libnetfilter_cthelper/files/ \ + ftp://ftp.netfilter.org/pub/libnetfilter_cthelper/ +PKG_HASH:=07618e71c4d9a6b6b3dc1986540486ee310a9838ba754926c7d14a17d8fccf3d + +PKG_FIXUP:=autoreconf +PKG_LICENSE:=GPL-2.0+ + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libnetfilter-cthelper + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libmnl + TITLE:=API to the in-kernel connection tracking helper infrastructure + URL:=http://www.netfilter.org/projects/libnetfilter_cthelper/ + ABI_VERSION:=0 +endef + +define Package/libnetfilter-cthelper/description + libnetfilter_cthelper is a userspace library providing a programming + interface (API) to the in-kernel connection tracking helpers. + This library is currently used by conntrack-tools. +endef + +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --enable-static \ + --enable-shared \ + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cthelper + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cthelper/*.h \ + $(1)/usr/include/libnetfilter_cthelper/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.{so*,a,la} \ + $(1)/usr/lib/ + + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cthelper.pc \ + $(1)/usr/lib/pkgconfig/ +endef + +define Package/libnetfilter-cthelper/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cthelper.so.* \ + $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libnetfilter-cthelper)) |