pkgsrc/net/tnftpd/patches/patch-aa
grant bda506ae88 incorporate patch from othersrc/libexec/tnftpd to honour --sysconfdir
(will be included in the next release) and make the package honour
PKG_SYSCONFDIR.

use CONF_FILES to install the sample configuration ftpd.conf and
ftpusers.

bump PKGREVISION, as the default configuration file location has
changed to ${PKG_SYSCONFDIR}. set PKG_SYSCONFDIR.tnftpd=/etc to get
the previous behaviour.
2003-12-20 13:38:37 +00:00

19 lines
588 B
Text

$NetBSD: patch-aa,v 1.1 2003/12/20 13:38:37 grant Exp $
--- src/Makefile.in.orig 2002-12-09 00:05:36.000000000 +1100
+++ src/Makefile.in
@@ -10,12 +10,13 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
sbindir = @sbindir@
+sysconfdir = @sysconfdir@
mandircat5 = ${mandir}/cat5
mandircat8 = ${mandir}/cat8
CC = @CC@
-CFLAGS = -I${srcdir} -I${srcdir}/.. -I. -I.. @INCLUDES@ -DHAVE_TNFTPD_H=1 @CFLAGS@
+CFLAGS = -I${srcdir} -I${srcdir}/.. -I. -I.. @INCLUDES@ -DHAVE_TNFTPD_H=1 @CFLAGS@ -D_DEFAULT_CONFDIR=\"${sysconfdir}\"
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@