summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-14 03:51:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-14 03:51:46 +0000
commite491e675880f338c68214ce8f6ec6584d21623d9 (patch)
tree2b1f6b81fd8aa0bb99acf12f2b85049d11178878 /contrib
parent15345d3615c3956c3f8fb86a03e180a8c13f0e97 (diff)
* luci/contrib: add xrelayd package
Diffstat (limited to 'contrib')
-rw-r--r--contrib/package/xrelayd/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/contrib/package/xrelayd/Makefile b/contrib/package/xrelayd/Makefile
new file mode 100644
index 0000000000..639bc59d2e
--- /dev/null
+++ b/contrib/package/xrelayd/Makefile
@@ -0,0 +1,59 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=xrelayd
+PKG_VERSION:=0.2.1pre2
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=http://znerol.ch/files
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_MD5SUM:=05f242295fa864bb3b0b7f0712b4dfa3
+
+PKG_CAT:=zcat
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+PKG_BUILD_DEPENDS:=libxyssl
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/xrelayd
+ SECTION:=net
+ CATEGORY:=Network
+ DEPENDS:=+libxyssl
+ TITLE:=stunnel replacement based on xyssl
+ URL:=http://znerol.ch/
+endef
+
+define Package/xrelayd/description
+ stunnel replacement based on xyssl
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CC="$(TARGET_CC)" \
+ LD="$(TARGET_CC)" \
+ CFLAGS="$(strip $(TARGET_CFLAGS))" \
+ CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ prefix="$(PKG_INSTALL_DIR)/usr"
+ mkdir -p $(PKG_INSTALL_DIR)/usr/bin
+ $(CP) $(PKG_BUILD_DIR)/xrelayd $(PKG_INSTALL_DIR)/usr/bin
+endef
+
+define Package/xrelayd/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xrelayd $(1)/usr/bin
+ $(RSTRIP) $(1)/usr/bin/xrelayd
+endef
+
+#mostlyclean:
+# make -C $(PKG_BUILD_DIR) clean
+# rm $(PKG_BUILD_DIR)/.built
+
+$(eval $(call BuildPackage,xrelayd))