summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-10 03:02:05 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-10 03:02:05 +0000
commitb2a7726e734ee975a1f99c2e9413c4d6731f3372 (patch)
tree9cb2ec00d5950c648ccfba07bf42b41189f8c40e /openwrt
parentadded multi package (diff)
fixed kamikaze package makefile
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/kamikaze/uanytun/Makefile46
1 files changed, 23 insertions, 23 deletions
diff --git a/openwrt/kamikaze/uanytun/Makefile b/openwrt/kamikaze/uanytun/Makefile
index 045e759..4b47b41 100644
--- a/openwrt/kamikaze/uanytun/Makefile
+++ b/openwrt/kamikaze/uanytun/Makefile
@@ -91,59 +91,59 @@ define Build/Configure
endef
define Build/Compile
- rm -rf $(PKG_INSTALL_DIR)
- mkdir -p $(PKG_INSTALL_DIR)
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
- $(MAKE) -C $(PKG_BUILD_DIR)/src \
+ $(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
NO_CRYPT_OBJ=1 \
TARGET=Linux \
CFLAGS="$(TARGET_CFLAGS) -DNO_CRYPT" \
LDFLAGS="$(TARGET_LDFLAGS) -ldl"
- cp $(PKG_BUILD_DIR)/src/uanytun $(PKG_BUILD_DIR)/src/uanytun-nocrypt
- $(MAKE) -C $(PKG_BUILD_DIR)/src clean
+ cp $(PKG_BUILD_DIR)/src/uanytun $(PKG_BUILD_DIR)/src/uanytun-nocrypt
+ $(MAKE) -C $(PKG_BUILD_DIR)/src NO_CRYPT_OBJ=1 clean
- $(MAKE) -C $(PKG_BUILD_DIR)/src \
+ $(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"
- cp $(PKG_BUILD_DIR)/src/uanytun $(PKG_BUILD_DIR)/src/uanytun-sslcrypt
- $(MAKE) -C $(PKG_BUILD_DIR)/src clean
+ cp $(PKG_BUILD_DIR)/src/uanytun $(PKG_BUILD_DIR)/src/uanytun-sslcrypt
+ $(MAKE) -C $(PKG_BUILD_DIR)/src clean
- $(MAKE) -C $(PKG_BUILD_DIR)/src \
+ $(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
TARGET=Linux \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
- LDFLAGS="$(TARGET_LDFLAGS) -ldl -lgcrypt -lgpgerror"
+ LDFLAGS="$(TARGET_LDFLAGS) -ldl -lgcrypt -lgpg-error"
- $(STRIP) $(PKG_BUILD_DIR)/src/uanytun-nocrypt
- $(STRIP) $(PKG_BUILD_DIR)/src/uanytun-sslcrypt
- $(STRIP) $(PKG_BUILD_DIR)/src/uanytun
+ $(STRIP) $(PKG_BUILD_DIR)/src/uanytun-nocrypt
+ $(STRIP) $(PKG_BUILD_DIR)/src/uanytun-sslcrypt
+ $(STRIP) $(PKG_BUILD_DIR)/src/uanytun
endef
define Package/uanytun/install-generic
- $(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_DATA) ./files/$(3) $(1)/etc/config/$(2)
- $(INSTALL_DIR) $(1)/usr/sbin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(2) $(1)/usr/sbin/
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/uanytun.init $(1)/etc/init.d/$(2)
- sed -e 's/BIN=uanytun/BIN=$(2)/' -i $(1)/etc/init.d/$(2)
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_DATA) ./files/$(3) $(1)/etc/config/$(2)
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(2) $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/uanytun.init $(1)/etc/init.d/$(2)
+ @sed -e 's/BIN=uanytun/BIN=$(2)/' -i $(1)/etc/init.d/$(2)
endef
define Package/uanytun/install
- $(call Package/uanytun/install-generic, $(1), uanytun, uanytun.config)
+ $(call Package/uanytun/install-generic,$(1),uanytun,uanytun.config)
endef
define Package/uanytun-sslcrypt/install
- $(call Package/uanytun/install-generic, $(1), uanytun-sslcrypt, uanytun.config)
+ $(call Package/uanytun/install-generic,$(1),uanytun-sslcrypt,uanytun.config)
endef
define Package/uanytun-nocrypt/install
- $(call Package/uanytun/install-generic, $(1), uanytun-nocrypt, uanytun-nocrypt.config)
+ $(call Package/uanytun/install-generic,$(1),uanytun-nocrypt,uanytun-nocrypt.config)
endef