diff options
author | Christian Pointner <equinox@anytun.org> | 2010-02-17 01:15:06 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-02-17 01:15:06 +0000 |
commit | 9c12efdfaceda1b425b2043f4a20e7daa6fa8566 (patch) | |
tree | 613abb9dcf23789f7b786eaea0c0ac1d39f8157f /openwrt/kamikaze/uanytun/Makefile | |
parent | updated openwrt packet (diff) |
fixed openwrt package
Diffstat (limited to 'openwrt/kamikaze/uanytun/Makefile')
-rw-r--r-- | openwrt/kamikaze/uanytun/Makefile | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/openwrt/kamikaze/uanytun/Makefile b/openwrt/kamikaze/uanytun/Makefile index 246d332..6121865 100644 --- a/openwrt/kamikaze/uanytun/Makefile +++ b/openwrt/kamikaze/uanytun/Makefile @@ -88,17 +88,26 @@ define Package/uanytun-nocrypt/description $(call Package/uanytun/desc-template) endef - +define Package/uanytun/configure + (cd $(1)/$(2)/src; \ + touch include.mk; \ + ln -s linux/tun.c .; \ + echo '#ifndef UANYTUN_version_h_INCLUDED' > version.h; \ + echo '#define UANYTUN_version_h_INCLUDED' >> version.h; \ + echo '' >> version.h; \ + echo '#define VERSION_STRING_0 "uanytun version '`cat $(1)/version`'"' >> version.h; \ + echo '#define VERSION_STRING_1 "built on '`hostname`', '`date +"%d.%m.%Y %H:%M:%S %Z"`'"' >> version.h; \ + echo '' >> version.h; \ + echo '#endif' >> version.h \ + ) +endef ifneq ($(CONFIG_PACKAGE_uanytun-nocrypt),) define Build/Configure/uanytun-nocrypt rm -rf $(PKG_BUILD_DIR)/uanytun-nocrypt mkdir -p $(PKG_BUILD_DIR)/uanytun-nocrypt $(CP) -r $(PKG_BUILD_DIR)/src $(PKG_BUILD_DIR)/uanytun-nocrypt - (cd $(PKG_BUILD_DIR)/uanytun-nocrypt/src; \ - touch include.mk; \ - ln -s linux/tun.c . \ - ) + $(call Package/uanytun/configure,$(PKG_BUILD_DIR),uanytun-nocrypt) endef define Build/Compile/uanytun-nocrypt @@ -117,10 +126,7 @@ ifneq ($(CONFIG_PACKAGE_uanytun-sslcrypt),) rm -rf $(PKG_BUILD_DIR)/uanytun-sslcrypt mkdir -p $(PKG_BUILD_DIR)/uanytun-sslcrypt $(CP) -r $(PKG_BUILD_DIR)/src $(PKG_BUILD_DIR)/uanytun-sslcrypt - (cd $(PKG_BUILD_DIR)/uanytun-sslcrypt/src; \ - touch include.mk; \ - ln -s linux/tun.c . \ - ) + $(call Package/uanytun/configure,$(PKG_BUILD_DIR),uanytun-sslcrypt) endef define Build/Compile/uanytun-sslcrypt @@ -138,10 +144,7 @@ ifneq ($(CONFIG_PACKAGE_uanytun),) rm -rf $(PKG_BUILD_DIR)/uanytun mkdir -p $(PKG_BUILD_DIR)/uanytun $(CP) -r $(PKG_BUILD_DIR)/src $(PKG_BUILD_DIR)/uanytun - (cd $(PKG_BUILD_DIR)/uanytun/src; \ - touch include.mk; \ - ln -s linux/tun.c . \ - ) + $(call Package/uanytun/configure,$(PKG_BUILD_DIR),uanytun) endef define Build/Compile/uanytun-default |