pkgsrc/net/yale-tftpd/patches/patch-aa
he 28a053164b Update patches for this package so that it builds with -Werror and
-Wall with the gcc in NetBSD 5.1, i.e. gcc 4.1.3.  Fixes prompted
by reports that a build outside of pkgsrc for "64-bit Linux" (amd64)
but using this set of patches, gets a segfault, and this fixes that
problem.  Bump pkgrevision.
2012-01-25 09:56:08 +00:00

21 lines
451 B
Text

$NetBSD: patch-aa,v 1.4 2012/01/25 09:56:08 he Exp $
Adapt for build with pkgsrc.
--- Makefile.orig 1994-10-07 01:41:10.000000000 +0100
+++ Makefile
@@ -2,10 +2,11 @@
SRCS= tftpd.c tftpsubs.c tftpyale.c config.c
PROG= tftpd
-MAN8= tftpd.8
+MAN= tftpd.8
-ETCDIR?=${DESTDIR}/etc
-BINDIR?=${DESTDIR}/usr/libexec
+ETCDIR=${PKG_SYSCONFDIR}
+BINDIR=${PREFIX}/libexec
+MANDIR=${PREFIX}/${PKGMANDIR}
CFLAGS+=-DCONFIGFILE='"${ETCDIR}/tftpd.conf"'