X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=ipv6%2Ftspc%2FMakefile;h=4853e31d2fd8b4c5bfa193cd7ae7a9ccbe69e1cb;hp=f27d8d49210585afe9865e8eb2355152b86882f8;hb=634720a9fc1a59f110ad0decb3cb4cd0ad84f4a6;hpb=a1367e16025e30c750a085c7975318724ce3fdb7 diff --git a/ipv6/tspc/Makefile b/ipv6/tspc/Makefile index f27d8d4921..4853e31d2f 100644 --- a/ipv6/tspc/Makefile +++ b/ipv6/tspc/Makefile @@ -13,12 +13,11 @@ PKG_VERSION:=2.1.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz -PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/t/tspc +PKG_SOURCE_URL:=http://ftp.fr.debian.org/debian/pool/main/t/tspc/ PKG_MD5SUM:=65183cae002feaacd8bc92d6a5404cc2 PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)2 -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk @@ -32,22 +31,15 @@ define Package/tspc URL:=http://www.hexago.com endef -define Build/Compile - rm -rf $(PKG_INSTALL_DIR) - mkdir -p $(PKG_INSTALL_DIR) - $(MAKE) -C $(PKG_BUILD_DIR) \ - CC="$(TARGET_CC)" \ - AR="$(TARGET_AR)" \ - installdir="$(PKG_INSTALL_DIR)" \ - install target=linux -endef +MAKE_FLAGS += \ + CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/include -I$(PKG_BUILD_DIR)/platform/linux" \ + target=linux define Package/tspc/install $(INSTALL_DIR) $(1)/bin - $(INSTALL_DIR) $(1)/etc + $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/tspc $(1)/bin/ $(INSTALL_DIR) $(1)/etc/tsp - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/tspc $(1)/bin/ - $(INSTALL_CONF) $(PKG_INSTALL_DIR)/bin/tspc.conf $(1)/etc/tsp/ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/bin/tspc.conf.sample $(1)/etc/tsp/tspc.conf endef $(eval $(call BuildPackage,tspc))