pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tnftpd Update to tnftpd 20081009. Notable changes...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/660bb9d093f0
branches:  trunk
changeset: 548111:660bb9d093f0
user:      lukem <lukem%pkgsrc.org@localhost>
date:      Thu Oct 09 04:14:28 2008 +0000

description:
Update to tnftpd 20081009.  Notable changes since 20061217:

* Don't split large commands into multiple commands; just fail on them.
  This prevents cross-site request forgery (CSRF)-like attacks,
  when a web browser is used to access an ftp server.
* Enhance -C to support an optional @host ('-C user[@host]'):
  checks whether user as connecting from host would be granted
  access by ftpusers(5).
* Support IPv6 in the host directive of ftpusers(5).
* Implement -n to disable hostname lookups.

* Disable SOCKS support; I don't have the ability to test it,
  and the autoconf checks were very out of date.
* Add configure --with-pam to enable PAM authentication support.
  Defaults to checking for PAM.
* Add configure --with-skey to enable S/Key authentication support.
  Incompatible with --with-pam, defaults to no.
* Fix pathnames in the installed manual pages to contain
  the appropriate $(prefix) substitution.
* Use fcntl(3) locking instead of flock(3) or lockf(3).
* Various other portability improvements.

diffstat:

 net/tnftpd/Makefile         |  10 +++++-----
 net/tnftpd/PLIST            |   4 ++--
 net/tnftpd/distinfo         |   9 ++++-----
 net/tnftpd/options.mk       |  19 +++++++------------
 net/tnftpd/patches/patch-aa |  16 ----------------
 5 files changed, 18 insertions(+), 40 deletions(-)

diffs (107 lines):

diff -r d4cafaadf09d -r 660bb9d093f0 net/tnftpd/Makefile
--- a/net/tnftpd/Makefile       Thu Oct 09 02:18:22 2008 +0000
+++ b/net/tnftpd/Makefile       Thu Oct 09 04:14:28 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2007/03/01 14:01:21 salo Exp $
+# $NetBSD: Makefile,v 1.18 2008/10/09 04:14:28 lukem Exp $
 #
 
-DISTNAME=              tnftpd-20061217
+DISTNAME=              tnftpd-20081009
 CATEGORIES=            net
 MASTER_SITES=          ftp://ftp.NetBSD.org/pub/NetBSD/misc/tnftp/
 
@@ -31,9 +31,9 @@
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec
-       ${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.5 ${PREFIX}/${PKGMANDIR}/man5
-       ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.5 ${PREFIX}/${PKGMANDIR}/man5
-       ${INSTALL_MAN} ${WRKSRC}/src/ftpd.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${PREFIX}/${PKGMANDIR}/man5/ftpd.conf.5
+       ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${PREFIX}/${PKGMANDIR}/man5/ftpusers.5
+       ${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${PREFIX}/${PKGMANDIR}/man8/tnftpd.8
        ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
        ${INSTALL_DATA} ${WRKSRC}/examples/ftpd.conf ${EXAMPLEDIR}
        ${INSTALL_DATA} ${WRKSRC}/examples/ftpusers ${EXAMPLEDIR}
diff -r d4cafaadf09d -r 660bb9d093f0 net/tnftpd/PLIST
--- a/net/tnftpd/PLIST  Thu Oct 09 02:18:22 2008 +0000
+++ b/net/tnftpd/PLIST  Thu Oct 09 04:14:28 2008 +0000
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2003/12/18 01:14:59 lukem Exp $
+@comment $NetBSD: PLIST,v 1.3 2008/10/09 04:14:29 lukem Exp $
 libexec/tnftpd
 man/man5/ftpd.conf.5
 man/man5/ftpusers.5
-man/man8/ftpd.8
+man/man8/tnftpd.8
 share/examples/tnftpd/ftpd.conf
 share/examples/tnftpd/ftpusers
 @dirrm share/examples/tnftpd
diff -r d4cafaadf09d -r 660bb9d093f0 net/tnftpd/distinfo
--- a/net/tnftpd/distinfo       Thu Oct 09 02:18:22 2008 +0000
+++ b/net/tnftpd/distinfo       Thu Oct 09 04:14:28 2008 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.9 2007/03/07 17:56:37 joerg Exp $
+$NetBSD: distinfo,v 1.10 2008/10/09 04:14:29 lukem Exp $
 
-SHA1 (tnftpd-20061217.tar.gz) = a81e69c648397c15541683910495037683d87d2f
-RMD160 (tnftpd-20061217.tar.gz) = 9f098e35e549a202a7a392898095ee91f34e8604
-Size (tnftpd-20061217.tar.gz) = 187602 bytes
-SHA1 (patch-aa) = febc5e934b3bc5f83758bb966e30d5d17ca10af7
+SHA1 (tnftpd-20081009.tar.gz) = 60d00e431576c7cda75613d39820ffb97c30135d
+RMD160 (tnftpd-20081009.tar.gz) = 3fc31849159baaffc86e097b3f4e1bfdda3a9476
+Size (tnftpd-20081009.tar.gz) = 244456 bytes
diff -r d4cafaadf09d -r 660bb9d093f0 net/tnftpd/options.mk
--- a/net/tnftpd/options.mk     Thu Oct 09 02:18:22 2008 +0000
+++ b/net/tnftpd/options.mk     Thu Oct 09 04:14:28 2008 +0000
@@ -1,22 +1,17 @@
-# $NetBSD: options.mk,v 1.1 2005/12/02 17:03:54 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2008/10/09 04:14:29 lukem Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.tnftpd
-PKG_SUPPORTED_OPTIONS=         inet6
-PKG_OPTIONS_OPTIONAL_GROUPS+=  socks
-PKG_OPTIONS_GROUP.socks=       socks4 socks5
+PKG_SUPPORTED_OPTIONS= inet6 pam
 
 .include "../../mk/bsd.options.mk"
 
-.if !empty(PKG_OPTIONS:Msocks4)
-CONFIGURE_ARGS+=       --with-socks4
-.include "../../net/socks4/buildlink3.mk"
-.elif !empty(PKG_OPTIONS:Msocks5)
-CONFIGURE_ARGS+=       --with-socks5
-.include "../../net/socks5/buildlink3.mk"
-.endif
-
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=       --enable-ipv6
 .else
 CONFIGURE_ARGS+=       --disable-ipv6
 .endif
+
+.if !empty(PKG_OPTIONS:Mpam)
+.include "../../mk/pam.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pam
+.endif
diff -r d4cafaadf09d -r 660bb9d093f0 net/tnftpd/patches/patch-aa
--- a/net/tnftpd/patches/patch-aa       Thu Oct 09 02:18:22 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2007/03/07 17:56:37 joerg Exp $
-
---- src/ftpd.c.orig    2007-03-07 17:23:16.000000000 +0000
-+++ src/ftpd.c
-@@ -3744,7 +3744,11 @@ checkpassword(const struct passwd *pwent
-       expire = pwent->pw_expire;
- #endif
- #if HAVE_PW_CHANGE
-+#ifdef _PASSWORD_CHGNOW
-       change = (pwent->pw_change == _PASSWORD_CHGNOW)? now : pwent->pw_change;
-+#else
-+      change = pwent->pw_change;
-+#endif
- #endif
- #endif
- 



Home | Main Index | Thread Index | Old Index