X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fatftp%2FMakefile;h=2d503b882092c4699998d511e37dd3527ecb2f4c;hp=bb3d8d49284d634d15593096e33d426928403244;hb=6de51d297981899318740b1032717875245f51aa;hpb=75ea41a2c060b638aed79b8ce50de8f86505c1b3 diff --git a/net/atftp/Makefile b/net/atftp/Makefile index bb3d8d4928..2d503b8820 100644 --- a/net/atftp/Makefile +++ b/net/atftp/Makefile @@ -13,13 +13,10 @@ PKG_VERSION:=0.7 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=ftp://ftp.mamalinux.com/pub/atftp/ +PKG_SOURCE_URL:=http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/ PKG_MD5SUM:=3b27365772d918050b2251d98a9c7c82 -PKG_CAT:=zcat -TAR_OPTIONS += || true -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_BUILD_DEPENDS:=libncurses libpcre libreadline include $(INCLUDE_DIR)/package.mk @@ -27,18 +24,17 @@ define Package/atftp/Default SECTION:=net CATEGORY:=Network TITLE:=TFTP - URL:=ftp://ftp.mamalinux.com/pub/atftp/ endef define Package/atftp $(call Package/atftp/Default) - DEPENDS:=+libreadline +libpcre + DEPENDS:=+libreadline +libncurses TITLE+= client endef define Package/atftpd $(call Package/atftp/Default) - DEPENDS:=+libreadline +libpcre + DEPENDS:=+libpcre +libpthread TITLE+= server endef @@ -53,23 +49,22 @@ if [ $$? -ne 0 ]; then fi endef -# uses GNU configure +CONFIGURE_ARGS += \ + --disable-libwrap -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \ - all -endef +MAKE_FLAGS += \ + CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \ + all define Package/atftp/install - install -d -m0755 $(1)/usr/sbin - install -m0755 $(PKG_BUILD_DIR)/atftp $(1)/usr/sbin + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftp $(1)/usr/sbin/ endef define Package/atftpd/install - install -d -m0755 $(1)/usr/sbin - install -m0755 $(PKG_BUILD_DIR)/atftpd $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftpd $(1)/usr/sbin/ endef $(eval $(call BuildPackage,atftp))