summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-12-20 13:38:37 +0000
committergrant <grant@pkgsrc.org>2003-12-20 13:38:37 +0000
commitbda506ae88753a4d40ce76ba129e8b5151574748 (patch)
tree3d8f400081a3a966415adbeef9c9d19ad3b14c4d /net
parentb2c1b51b4beccd6271f69bf297ebe2c7f942c9cc (diff)
downloadpkgsrc-bda506ae88753a4d40ce76ba129e8b5151574748.tar.gz
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.
Diffstat (limited to 'net')
-rw-r--r--net/tnftpd/Makefile9
-rw-r--r--net/tnftpd/distinfo3
-rw-r--r--net/tnftpd/patches/patch-aa19
3 files changed, 29 insertions, 2 deletions
diff --git a/net/tnftpd/Makefile b/net/tnftpd/Makefile
index e77bdca69a5..e593ce78bc0 100644
--- a/net/tnftpd/Makefile
+++ b/net/tnftpd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2003/12/19 21:30:00 grant Exp $
+# $NetBSD: Makefile,v 1.7 2003/12/20 13:38:37 grant Exp $
#
DISTNAME= tnftpd-20031217
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/tnftp/
@@ -14,6 +15,12 @@ CONFLICTS+= lukemftpd-[0-9]*
GNU_CONFIGURE= YES
MANCOMPRESSED_IF_MANZ= YES
+USE_PKGINSTALL= YES
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+CONF_FILES+= ${EXAMPLEDIR}/ftpd.conf ${PKG_SYSCONFDIR}/ftpd.conf
+CONF_FILES+= ${EXAMPLEDIR}/ftpusers ${PKG_SYSCONFDIR}/ftpusers
.include "../../mk/bsd.prefs.mk"
diff --git a/net/tnftpd/distinfo b/net/tnftpd/distinfo
index 373fc204e6f..4d60a638288 100644
--- a/net/tnftpd/distinfo
+++ b/net/tnftpd/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/12/18 01:14:59 lukem Exp $
+$NetBSD: distinfo,v 1.4 2003/12/20 13:38:37 grant Exp $
SHA1 (tnftpd-20031217.tar.gz) = d5b1f7b87862eaa67a3660272f3ffc0e240cf62b
Size (tnftpd-20031217.tar.gz) = 177483 bytes
+SHA1 (patch-aa) = 31924f4595744db9e0c04f4b334f6fc30b39e0e2
diff --git a/net/tnftpd/patches/patch-aa b/net/tnftpd/patches/patch-aa
new file mode 100644
index 00000000000..85b590455f1
--- /dev/null
+++ b/net/tnftpd/patches/patch-aa
@@ -0,0 +1,19 @@
+$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@
+