summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAudric Schiltknecht <storm@chemicalstorm.org>2014-06-01 15:32:15 +0200
committerAudric Schiltknecht <storm@chemicalstorm.org>2014-06-01 15:32:15 +0200
commit73062bbb4258f59d4847ee268ba80cd967b4f311 (patch)
tree28d8b4788f477f147e0d7619fba50a5d6036d2f2
parent3fb5ffc64d50ed607bcd246a0a1961fcb9318e86 (diff)
downloadopenwrt-packaging-73062bbb4258f59d4847ee268ba80cd967b4f311.tar.gz
openwrt-packaging-73062bbb4258f59d4847ee268ba80cd967b4f311.tar.bz2
openwrt-packaging-73062bbb4258f59d4847ee268ba80cd967b4f311.zip
First version of ROHC packaging
This package creates two OPKG files: * librohc, which contains the library files * rohc-sniffer, a ROHC-based sniffer application
-rw-r--r--rohc/Makefile78
1 files changed, 78 insertions, 0 deletions
diff --git a/rohc/Makefile b/rohc/Makefile
new file mode 100644
index 0000000..b2192fa
--- /dev/null
+++ b/rohc/Makefile
@@ -0,0 +1,78 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=rohc
+PKG_VERSION:=1.6.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=http://rohc-lib.org/download/rohc-1.6.x/$(PKG_VERSION)/
+PKG_MD5SUM:=78e9d34a06f29e94aaa455e2e890e8a4
+
+PKG_MAINTAINER:=Audric Schiltknecht <storm+openwrt@chemicalstorm.org>
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/librohc/Default
+ URL:=http://rohc-lib.org
+endef
+
+define Package/librohc/Default/description
+The ROHC library provides an easy and robust way for applications to reduce their bandwidth usage on network links with limited capacity or expensive costs. Headers of network packets are compressed with the ROHC protocol and algorithms.
+endef
+
+define Package/librohc
+$(call Package/librohc/Default)
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=RObust Header Compression (ROHC) library
+endef
+
+define Package/librohc/description
+$(call Package/librohc/Default/description)
+This package contains the ROHC library.
+endef
+
+define Package/rohc-sniffer
+$(call Package/librohc/Default)
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=+librohc +libpcap
+ TITLE+=ROHC-based sniffer program
+endef
+
+define Package/rohc-sniffer/description
+$(call Package/librohc/Default/description)
+This package contains the ROHC-based sniffer.
+endef
+
+CONFIGURE_ARGS += \
+ --enable-static=yes \
+ --enable-app-sniffer
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/rohc* $(1)/usr/include/
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/librohc_*.{a,so*} $(1)/usr/lib/
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/rohc.pc $(1)/usr/lib/pkgconfig/
+endef
+
+
+define Package/librohc/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/librohc_*.so* $(1)/usr/lib/
+endef
+
+define Package/rohc-sniffer/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,librohc))
+$(eval $(call BuildPackage,rohc-sniffer))