diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-04 19:29:13 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-04 19:29:13 +0000 |
commit | a6b8dfe2e7bfb3a13cdfe5c946787ccedaa9740d (patch) | |
tree | 4f1f215e2b31e387f9889ea755292591ff14bce7 /openwrt/kamikaze | |
parent | fixed gcrypt/ssl issue (diff) |
added sslcrypt kamikaze package
Diffstat (limited to 'openwrt/kamikaze')
-rw-r--r-- | openwrt/kamikaze/uanytun-nocrypt/Makefile | 3 | ||||
-rw-r--r-- | openwrt/kamikaze/uanytun-sslcrypt/Makefile | 60 |
2 files changed, 62 insertions, 1 deletions
diff --git a/openwrt/kamikaze/uanytun-nocrypt/Makefile b/openwrt/kamikaze/uanytun-nocrypt/Makefile index 6ec0b12..eae008b 100644 --- a/openwrt/kamikaze/uanytun-nocrypt/Makefile +++ b/openwrt/kamikaze/uanytun-nocrypt/Makefile @@ -18,7 +18,7 @@ PKG_RELEASE:=1 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.anytun.org/~equinox/ -PKG_MD5SUM:=9b97bb0cd0e2679248b100b4e3b131e4 +PKG_MD5SUM:=4a9edcc089fa4c659b487b29759e1b87 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install @@ -31,6 +31,7 @@ define Package/uanytun TITLE:=micro anycast tunneling daemon URL:=http://www.anytun.org/ MAINTAINER:=Christian Pointner <equinox@anytun.org> + SUBMENU:=VPN endef define Build/Configure diff --git a/openwrt/kamikaze/uanytun-sslcrypt/Makefile b/openwrt/kamikaze/uanytun-sslcrypt/Makefile new file mode 100644 index 0000000..1348c77 --- /dev/null +++ b/openwrt/kamikaze/uanytun-sslcrypt/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2008 Christian Pointner, +# <equinox@anytun.org> +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# This Makefile builds uAnytun Package for OpenWRT +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=uanytun +PKG_VERSION:=0.3-rc1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.anytun.org/~equinox/ +PKG_MD5SUM:=4a9edcc089fa4c659b487b29759e1b87 + +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/uanytun + SECTION:=net + CATEGORY:=Network + DEPENDS:=+kmod-tun +libopenssl + TITLE:=micro anycast tunneling daemon + URL:=http://www.anytun.org/ + MAINTAINER:=Christian Pointner <equinox@anytun.org> + SUBMENU:=VPN +endef + +define Build/Configure + (cd $(PKG_BUILD_DIR)/src; \ + touch include.mk; \ + ln -s linux/tun.c . \ + ) +endef + +define Build/Compile + rm -rf $(PKG_INSTALL_DIR) + mkdir -p $(PKG_INSTALL_DIR) + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + $(TARGET_CONFIGURE_OPTS) \ + TARGET=Linux \ + CFLAGS="$(TARGET_CFLAGS) -DUSE_SSL_CRYPTO -I$(STAGING_DIR)/usr/include" \ + LDFLAGS="$(TARGET_LDFLAGS) -ldl -lcrypto" + $(STRIP) $(PKG_BUILD_DIR)/src/uanytun +endef + +define Package/uanytun/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/uanytun $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,uanytun)) |