head	1.5;
access;
symbols
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.4
	RELEASE_5_2_0:1.4
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.4
	RELEASE_4_7_0:1.4
	RELEASE_4_6_2:1.4
	RELEASE_4_6_1:1.4
	RELEASE_4_6_0:1.4
	RELEASE_5_0_DP1:1.4
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.4
	RELEASE_3_4_0:1.4
	RELEASE_3_3_0:1.4
	RELEASE_3_2_0:1.3
	RELEASE_3_1_0:1.3
	RELEASE_2_2_8:1.3
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.3
	RELEASE_2_2_5:1.3
	RELEASE_2_2_1:1.3
	RELEASE_2_2_2:1.3;
locks; strict;
comment	@# @;


1.5
date	2005.04.22.09.24.02;	author vs;	state dead;
branches;
next	1.4;

1.4
date	99.08.28.16.44.55;	author cpiazza;	state Exp;
branches;
next	1.3;

1.3
date	95.03.20.20.54.47;	author pst;	state Exp;
branches;
next	1.2;

1.2
date	94.12.05.09.44.56;	author pst;	state Exp;
branches;
next	1.1;

1.1
date	94.10.27.21.51.48;	author pst;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Use MAKE_ARGS
@
text
@--- Makefile.orig	Thu Oct  6 19:41:10 1994
+++ Makefile	Fri Aug 27 13:05:53 1999
@@@@ -4,8 +4,9 @@@@
 PROG=	tftpd
 MAN8=	tftpd.8
 
-ETCDIR?=${DESTDIR}/etc
-BINDIR?=${DESTDIR}/usr/libexec
+ETCDIR=${PREFIX}/etc
+BINDIR=${PREFIX}/libexec
+MANDIR=${PREFIX}/man/man
 
 CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"'
 
@


1.4
log
@Unbreak this port (it was using a function called sendfile())

PR:		13414
Submitted by:	Ade Lovett <ade@@lovett.com>
@
text
@@


1.3
log
@Update to yale-tftpd 3.0
@
text
@d1 14
a14 22
*** Makefile	Thu Oct  6 17:41:10 1994
--- Makefile	Mon Mar 20 12:39:08 1995
***************
*** 4,11 ****
  PROG=	tftpd
  MAN8=	tftpd.8
  
! ETCDIR?=${DESTDIR}/etc
! BINDIR?=${DESTDIR}/usr/libexec
  
  CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"'
  
--- 4,12 ----
  PROG=	tftpd
  MAN8=	tftpd.8
  
! ETCDIR=${DESTDIR}/usr/local/etc
! BINDIR=${DESTDIR}/usr/local/libexec
! MANDIR=${DESTDIR}/usr/local/man/man
  
  CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"'
  
@


1.2
log
@Remove unnecessary patches
@
text
@d1 2
a2 2
*** Makefile	Tue Oct  4 22:47:03 1994
--- Makefile	Thu Oct 27 14:46:17 1994
d4 1
a4 1
*** 4,13 ****
d11 1
a11 1
! CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"'
d13 1
a13 3
  classes/libclasses.a:
  	(cd classes ; make)
--- 4,14 ----
d21 1
a21 1
! CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"' -DHAVE_STRERROR
a22 67
  classes/libclasses.a:
  	(cd classes ; make)
*** classes/Makefile	Tue Oct  4 22:33:02 1994
--- classes/Makefile	Thu Oct 27 14:43:57 1994
***************
*** 6,9 ****
--- 6,12 ----
  NOPIC=	true
  NOPROFILE=true
  
+ install:
+ 	@@echo not installing library
+ 
  .include <bsd.lib.mk>
*** tftpyale.c	Tue Oct  4 22:20:49 1994
--- tftpyale.c	Thu Oct 27 14:37:03 1994
***************
*** 232,238 ****
  		if ((configf = fopen (fileName, "r")) == NULL) {
  			syslog (LOG_ERR,
  				"Cannot open configFile '%s'; reason = %s",
! 				fileName, sys_errlist[errno]);
  			return 0;
  		}
  	}
--- 232,238 ----
  		if ((configf = fopen (fileName, "r")) == NULL) {
  			syslog (LOG_ERR,
  				"Cannot open configFile '%s'; reason = %s",
! 				fileName, strerror(errno));
  			return 0;
  		}
  	}
***************
*** 278,284 ****
  				if (tftpDebugLevel > 0) {
  					syslog (LOG_DEBUG,
  						"chdir fails; '%s'",
! 						sys_errlist[errno]);
  				}
  			}
  			else
--- 278,284 ----
  				if (tftpDebugLevel > 0) {
  					syslog (LOG_DEBUG,
  						"chdir fails; '%s'",
! 						strerror(errno));
  				}
  			}
  			else
***************
*** 290,296 ****
  			if (cargc == 2) {
  				if (access(cargv[1], 0) != 0)
  					syslog(LOG_DEBUG, "directory '%s': %s",
! 						cargv[1], sys_errlist[errno]);
  				else
  					tftpRootDirectory = newString(cargv[1]);
  			}
--- 290,296 ----
  			if (cargc == 2) {
  				if (access(cargv[1], 0) != 0)
  					syslog(LOG_DEBUG, "directory '%s': %s",
! 						cargv[1], strerror(errno));
  				else
  					tftpRootDirectory = newString(cargv[1]);
  			}
@


1.1
log
@install in /usr/local heirarchy and compile cleanly under 4.4bsd
@
text
@a38 51
*** tftpd.c	Tue Oct  4 22:20:49 1994
--- tftpd.c	Thu Oct 27 14:36:32 1994
***************
*** 500,509 ****
  	/* Rules 6&7:
  	 */
  	if (stat(filename, &stbuf) < 0) {
- 		extern char* sys_errlist[];
  		if (tftpDebugLevel > 1)
  			syslog(LOG_DEBUG, "stat '%s' fails: %s",
! 				filename, sys_errlist[errno]);
  		return (errno == ENOENT ? ENOTFOUND : EACCESS);
  	}
  
--- 500,508 ----
  	/* Rules 6&7:
  	 */
  	if (stat(filename, &stbuf) < 0) {
  		if (tftpDebugLevel > 1)
  			syslog(LOG_DEBUG, "stat '%s' fails: %s",
! 				filename, strerror(errno));
  		return (errno == ENOENT ? ENOTFOUND : EACCESS);
  	}
  
***************
*** 763,774 ****
  		syslog(LOG_ERR, "nak: %m\n");
  }
  
  /* Here if you need it */
  char* strerror(n)
  int	n;
  {
! 	extern char* sys_errlist[];
! 	extern int errno, sys_nerr;
! 
  	return n > sys_nerr ? "unknown error" : sys_errlist[n];
  }
--- 762,773 ----
  		syslog(LOG_ERR, "nak: %m\n");
  }
  
+ #ifndef	HAVE_STRERROR
  /* Here if you need it */
  char* strerror(n)
  int	n;
  {
! 	extern int sys_nerr;
  	return n > sys_nerr ? "unknown error" : sys_errlist[n];
  }
+ #endif
a91 34
*** tftpyale.h	Tue Oct  4 22:18:20 1994
--- tftpyale.h	Thu Oct 27 14:38:14 1994
***************
*** 22,33 ****
  #ifdef __STDC__
  	extern int	errno;
  	extern void*	malloc(unsigned);
- 	extern char*	sys_errlist[];
  	extern char*	strchr(const char*, int);
  #else
  	extern int	errno;
  	extern char*	malloc();
- 	extern char*	sys_errlist[];
  	extern char*	index();
  # define strchar(S,C)	index(S,C)
  #endif
--- 22,38 ----
  #ifdef __STDC__
  	extern int	errno;
  	extern void*	malloc(unsigned);
  	extern char*	strchr(const char*, int);
+ # ifndef	HAVE_STRERROR
+ 	extern char*	strerror(int);
+ # endif
  #else
  	extern int	errno;
  	extern char*	malloc();
  	extern char*	index();
+ # ifndef	HAVE_STRERROR
+ 	extern char*	strerror();
+ # endif
  # define strchar(S,C)	index(S,C)
  #endif
+ 
@
