* Cleanup Makefile
 * Fix download URL
 * Refresh patches

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8321 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
olli 2007-08-02 21:13:22 +00:00
parent 537650ad03
commit 4cecc68248
4 changed files with 35 additions and 38 deletions

View File

@ -13,12 +13,8 @@ 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_BUILD_DEPENDS:=libncurses libpcre libreadline
@ -28,7 +24,6 @@ define Package/atftp/Default
SECTION:=net
CATEGORY:=Network
TITLE:=TFTP
URL:=ftp://ftp.mamalinux.com/pub/atftp/
endef
define Package/atftp
@ -54,18 +49,13 @@ if [ $$? -ne 0 ]; then
fi
endef
define Build/Configure
$(call Build/Configure/Default, \
--disable-libwrap \
)
endef
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_DIR) $(1)/usr/sbin

View File

@ -1,6 +1,7 @@
diff -Nur netkit-tftp-0.17/MCONFIG netkit-tftp-0.17.patched/MCONFIG
--- netkit-tftp-0.17/MCONFIG 1970-01-01 01:00:00.000000000 +0100
+++ netkit-tftp-0.17.patched/MCONFIG 2005-06-19 21:16:52.422687029 +0200
Index: atftp-0.7/MCONFIG
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ atftp-0.7/MCONFIG 2007-08-02 23:04:23.000000000 +0200
@@ -0,0 +1,16 @@
+# Generated by configure (confgen version 2) on Sun Jun 19 21:13:24 CEST 2005
+#

View File

@ -1,6 +1,7 @@
diff -urN atftp.old/tftp.c atftp.dev/tftp.c
--- atftp.old/tftp.c 2004-03-16 00:55:56.000000000 +0100
+++ atftp.dev/tftp.c 2006-03-22 10:18:54.000000000 +0100
Index: atftp-0.7/tftp.c
===================================================================
--- atftp-0.7.orig/tftp.c 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftp.c 2007-08-02 23:04:23.000000000 +0200
@@ -409,7 +409,7 @@
int set_peer(int argc, char **argv)
{
@ -55,9 +56,10 @@ diff -urN atftp.old/tftp.c atftp.dev/tftp.c
data.connected = 1;
return OK;
diff -urN atftp.old/tftpd.c atftp.dev/tftpd.c
--- atftp.old/tftpd.c 2004-02-27 03:05:26.000000000 +0100
+++ atftp.dev/tftpd.c 2006-03-22 10:23:20.000000000 +0100
Index: atftp-0.7/tftpd.c
===================================================================
--- atftp-0.7.orig/tftpd.c 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftpd.c 2007-08-02 23:04:23.000000000 +0200
@@ -230,14 +230,8 @@
/* find the port */

View File

@ -1,6 +1,7 @@
diff -urN atftp.old/tftp.c atftp.dev/tftp.c
--- atftp.old/tftp.c 2006-03-25 16:41:49.000000000 +0100
+++ atftp.dev/tftp.c 2006-03-25 18:10:04.000000000 +0100
Index: atftp-0.7/tftp.c
===================================================================
--- atftp-0.7.orig/tftp.c 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftp.c 2007-08-02 23:04:23.000000000 +0200
@@ -967,6 +967,7 @@
{ "tftp-timeout", 1, NULL, 'T'},
{ "mode", 1, NULL, 'M'},
@ -27,9 +28,10 @@ diff -urN atftp.old/tftp.c atftp.dev/tftp.c
case 'g':
interactive = 0;
if ((action == PUT) || (action == MGET))
diff -urN atftp.old/tftp_def.c atftp.dev/tftp_def.c
--- atftp.old/tftp_def.c 2004-02-13 04:16:09.000000000 +0100
+++ atftp.dev/tftp_def.c 2006-03-25 18:10:04.000000000 +0100
Index: atftp-0.7/tftp_def.c
===================================================================
--- atftp-0.7.orig/tftp_def.c 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftp_def.c 2007-08-02 23:04:23.000000000 +0200
@@ -37,6 +37,7 @@
{ "timeout", "5", 0, 1 }, /* 2348, 2349, 2090. */
{ "blksize", "512", 0, 1 }, /* This is the default option */
@ -38,9 +40,10 @@ diff -urN atftp.old/tftp_def.c atftp.dev/tftp_def.c
{ "", "", 0, 0}
};
diff -urN atftp.old/tftp_def.h atftp.dev/tftp_def.h
--- atftp.old/tftp_def.h 2004-02-13 04:16:09.000000000 +0100
+++ atftp.dev/tftp_def.h 2006-03-25 17:19:15.000000000 +0100
Index: atftp-0.7/tftp_def.h
===================================================================
--- atftp-0.7.orig/tftp_def.h 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftp_def.h 2007-08-02 23:04:23.000000000 +0200
@@ -40,7 +40,8 @@
#define OPT_TIMEOUT 3
#define OPT_BLKSIZE 4
@ -51,9 +54,10 @@ diff -urN atftp.old/tftp_def.h atftp.dev/tftp_def.h
#define OPT_SIZE 12
#define VAL_SIZE MAXLEN
diff -urN atftp.old/tftp_file.c atftp.dev/tftp_file.c
--- atftp.old/tftp_file.c 2004-02-13 04:16:09.000000000 +0100
+++ atftp.dev/tftp_file.c 2006-03-25 18:10:04.000000000 +0100
Index: atftp-0.7/tftp_file.c
===================================================================
--- atftp-0.7.orig/tftp_file.c 2007-08-02 23:04:23.000000000 +0200
+++ atftp-0.7/tftp_file.c 2007-08-02 23:04:23.000000000 +0200
@@ -123,6 +123,7 @@
struct tftphdr *tftphdr = (struct tftphdr *)data->data_buffer;
FILE *fp = NULL; /* the local file pointer */