pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2008Q3]: pkgsrc/net/tnftpd Pullup ticket #2549 - requested by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/589cbb1caf5d
branches:  pkgsrc-2008Q3
changeset: 547825:589cbb1caf5d
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Oct 09 11:50:35 2008 +0000

description:
Pullup ticket #2549 - requested by lukem
tnftpd: security update

Revisions pulled up:
- net/tnftpd/Makefile           1.18
- net/tnftpd/PLIST              1.3
- net/tnftpd/distinfo           1.10
- net/tnftpd/options.mk         1.2
- net/tnftpd/patches/patch-aa   delete
---
Module Name:    pkgsrc
Committed By:   lukem
Date:           Thu Oct  9 04:14:29 UTC 2008

Modified Files:
        pkgsrc/net/tnftpd: Makefile PLIST distinfo options.mk
Removed Files:
        pkgsrc/net/tnftpd/patches: patch-aa

Log Message:
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 82aea31d1efa -r 589cbb1caf5d net/tnftpd/Makefile
--- a/net/tnftpd/Makefile       Wed Oct 08 12:23:13 2008 +0000
+++ b/net/tnftpd/Makefile       Thu Oct 09 11:50:35 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2007/03/01 14:01:21 salo Exp $
+# $NetBSD: Makefile,v 1.17.18.1 2008/10/09 11:50:35 tron 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 82aea31d1efa -r 589cbb1caf5d net/tnftpd/PLIST
--- a/net/tnftpd/PLIST  Wed Oct 08 12:23:13 2008 +0000
+++ b/net/tnftpd/PLIST  Thu Oct 09 11:50:35 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.2.42.1 2008/10/09 11:50:35 tron 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 82aea31d1efa -r 589cbb1caf5d net/tnftpd/distinfo
--- a/net/tnftpd/distinfo       Wed Oct 08 12:23:13 2008 +0000
+++ b/net/tnftpd/distinfo       Thu Oct 09 11:50:35 2008 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.9 2007/03/07 17:56:37 joerg Exp $
+$NetBSD: distinfo,v 1.9.18.1 2008/10/09 11:50:35 tron 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 82aea31d1efa -r 589cbb1caf5d net/tnftpd/options.mk
--- a/net/tnftpd/options.mk     Wed Oct 08 12:23:13 2008 +0000
+++ b/net/tnftpd/options.mk     Thu Oct 09 11:50:35 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.1.28.1 2008/10/09 11:50:35 tron 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 82aea31d1efa -r 589cbb1caf5d net/tnftpd/patches/patch-aa
--- a/net/tnftpd/patches/patch-aa       Wed Oct 08 12:23:13 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