Commit graph

41 commits

Author SHA1 Message Date
lkundrak
37d2bfffbe Fix for a CVE-2007-2165 security issue grabbed from upstream #2922. 2007-06-26 23:25:56 +00:00
martti
99c79a9250 Fixed PLIST when using quota and mysql options. 2007-01-24 05:22:01 +00:00
martti
96d9809b2b Updated net/proftpd to 1.3.1rc2
+ Fixed mod_sql's handling of WHERE clauses

+ Fixed segfaults ocurring after SIGHUP when shared modules are used

+ Fixed copying of symlinks in skeleton directory for CreateHome
2007-01-13 09:47:38 +00:00
martti
6994027e26 Updated net/proftpd to 1.3.1rc1
The 1.3.1rc1 release includes major new features and numerous bugfixes,
including:

  + Support for UTF8 and translated response messages (NLS support)

  + New configuration directives:
      DisplayChdir
      DisplayFileTransfer
      UseIPv6
      UseUTF8

  + Deprecated configuration directives:
      DisplayFirstChdir
        The DisplayFirstChdir directive is deprecated; sites should use
        the new DisplayChdir directive (which allows for files to
        be displayed on every directory change, rather than just the
        first time for a directory change).

      HiddenStor
        The HiddenStor directive is deprecated; simply use HiddenStores
        instead.

      SQLHomedirOnDemand
        The SQLHomedirOnDemand directive will be removed in future
        releases; use the CreateHome directive instead.

  + New modules:
      mod_ban, a module handling dynamic client "black lists"
      See doc/contrib/mod_ban.html

  + Enhanced modules:
      The mod_tls module can now make use of cryptographic accelerator
      cards with the new TLSCryptoDevice directive.  It can also use
      a program for obtaining certificate passphrases via the new
      TLSPassPhraseProvider directive.

  + Documentation
2006-12-14 11:19:46 +00:00
adrianp
e4d502c3f5 Updated patch-ac via Debian to fix PR #35092 2006-11-23 11:57:07 +00:00
adrianp
14cf3a2fd9 Add patch-ac for CVE-2006-5815
Patch from ProFTPD CVS:
 http://proftp.cvs.sourceforge.net/proftp/proftpd/src/main.c?r1=1.292&r2=1.293&view=patch&sortby=date
2006-11-18 14:32:58 +00:00
minskim
917b02c5d3 Honor ROOT_USER and ROOT_GROUP. 2006-05-01 21:17:06 +00:00
martti
9bfdb6f5af Updated net/proftpd to 1.3.0
This is the official release (which should be identical to rc5)
2006-04-17 05:33:09 +00:00
martti
14dde59a63 Updated net/proftpd to 1.3.0rc5
The 1.3.0rc5 release includes a number of minor bugfixes, including a
workaround for getting proper timestamps in chrooted process logs
if glibc-2.3 is present, and a fix for daemon processes hanging when
shutting down on Mac OS X.
2006-03-20 05:52:48 +00:00
martti
152656f0f2 Updated net/proftpd to 1.3.0rc4
The 1.3.0rc4 release includes a number of minor bugfixes, including fixed
run-time detection of Unix domain sockets, portability tweaks for
Mac OSX 10.4, and logging fixes for NetBSD and Solaris.
2006-03-02 10:46:20 +00:00
martti
e9f3e44177 Fixed warnings found by pkglint -Wall. 2006-02-17 07:43:36 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
xtraeme
eadc9131c8 Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
2006-01-08 18:35:08 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
martti
3c6f67587d Updated proftpd to 1.3.0rc3
A lot of changes and bug fixes, including fix for the following
security problem:

http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
2005-11-03 19:09:46 +00:00
rillig
53f49a5591 Removed the trailing slash behind the last MASTER_SITE. 2005-11-03 14:53:22 +00:00
adrianp
e37fc224e2 Patches to address recent security issue via Gentoo:
http://secunia.com/advisories/16181/
2005-08-06 11:51:18 +00:00
christos
176608d009 Make it log in wtmpx properly.
XXX: someone should fix the array has type char issues.
2005-06-23 04:49:26 +00:00
salo
809e97a20f PKGREVISION++
- split PKG_OPTIONS to options.mk file
- fix issue with state directory in (typically) /var/run,
  noted by Justin Newcomer on tech-pkg@
- delint
2005-06-22 22:43:37 +00:00
dillo
d6bfbe8582 Rename option PAM to pam (so all options are lower case). Backwards
compatibility provided via PKG_OPTIONS_LEGACY_OPTS.
2005-05-31 11:24:32 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
jlam
1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
martti
da14274d15 Use PKG_OPTIONS.proftpd instead of PROFTPD_OPTIONS (pkg/28574) 2004-12-13 06:56:18 +00:00
jlam
05ba52c71f The universal option to enable PAM support is "PAM" not "pam". We strive
to use common option names were possible, so change these instances of
"pam" to "PAM" to match existing usage.
2004-11-18 23:02:00 +00:00
xtraeme
947623ee66 Enable build options --enable-ctrls to support all command line
options via ftpdctrl, fixes PR pkg/27095 by pancake.
2004-10-13 23:03:52 +00:00
cube
ee7329c023 Update to version 1.2.10. From PR 27012 by pancake at phreaker dot net.
1.2.10 - Released 04-Sep-2004
--------------------------------
- Bug 2440 - Unable to use PAM authentication properly.  Use a "*" after
  the module name in an AuthOrder directive to indicate that an auth
  module is authoritative.
- Bug 2441 - AIX5 portability bug with mod_auth_unix, mod_auth_file.
- Bug 2442 - Segfault in FreeBSD PAM library with long login names.
- Bug 2445 - AuthUserFile in <Global> context overrides <VirtualHost> setting.
- Bug 2444 - Use of sendfile() does not interoperate well with RFC2228
  security mechanisms.  Using sendfile(2) to send data bypasses the handling
  of the data by RFC2228 security mechanisms (such as those provided by
  mod_tls).  So if security mechanisms are detected, do not use sendfile().
- Scrub the ScoreboardFile for stale sessions in inetd mode.
- Bug 2427 - proftpd gets a memory fault when run from ssh batch mode.

1.2.10rc3 - Released 13-Jul-2004
--------------------------------
- Fixed typo that prevented 1.2.10rc2 from compiling.

1.2.10rc2 - Released 13-Jul-2004
---------------------------------
- Bug 2396 - NLST command doesn't understand options.  This was caused by
  the solution for Bug 2322.  However, it is not a popular solution, so
  NLST will once again handle options, but only the relevant options.
- Bug 2034 - Add support for a "graceful shutdown" signal. See
  contrib/mod_ctrls_admin.html#shutdown for details.
- Bug 2400 - <Class> search order is wrong.  The documentation correctly
  stated that <Class> sections are matched in order of definition, but the
  code has the match order in the reverse order of definition.
- Bug 2401 - MaxClientsPerClass only checks first directive in config file.
- Bug 2399 - Rename start/stop control actions to up/down.
- Bug 2082 - Add mod_rewrite "replaceall" builtin function.  See the
  RewriteMap documentation for more details.
- Bug 2403 - Sending SIGHUP to proftpd stops it when using Classes.  The fix
  for Bug #2400 could result in an infinite loop during a SIGHUP.
- Bug 2405 - "LIST *" should not list dotfiles.
- Bug 2366 - Add support for -h list option.
- Bug 2332 - SO_OOBINLINE error after upgrading proftpd from 1.2.6 to 1.2.9.
  This is due mostly to a change in the logging; a check for error values
  and logging of them was added.  The setting of this particular socket option
  has been moved earlier in the session, as it was found that short-lived
  TCP connections, as from monitoring systems, would cause this error.
- Bug 2407 - mod_auth_file does not allow for proper cascading of "end" and
  "set" auth requests.
- Bug 2410 - CreateHome always copies skel directory.
- Bug 2336 - Use of /dev/log on Solaris leads to kernel memory leak.
  ProFTPD's use of the /dev/log device on Solaris was tickling a Solaris
  kernel bug that caused the Solaris kernel to leak memory.
- Added a TimeoutLinger directive to complement the --enable-timeout-linger
  configure option.
- Bug 2125 - -vv command line switch should list versions of modules.
- Bug 2420 - Name field is not escaped before querying database.
  The mod_quotatab module was not properly escaping the name string it
  used when looking up records from SQL databases.
- Bug 2424 - SQLDefaultHomedir overrides column value.
- Bug 2411 - Caching effects cause RNTO to fail if AllowOverwrite is off and
  target path does not exist.
- Bug 2422 - %v not working in SQLNamedQuery.
- Bug 2418 - chmod returns 550 with filename containing multiple spaces.
- Bug 2431 - mod_sql does not use UID/GID properly in cache lookups.
- Bug 2303 - Problem evaluating multiple <Class> rules.
- Bug 2419 - Ability to disable TLSRequired on per-user basis (e.g. for
  anonymous logins).
- Bug 2438 - Display variable %z not expanded properly.
- Bug 2439 - <Limit CWD> doesn't work.

1.2.10rc1 - Released 28-Apr-2004
---------------------------------
- Bug 2135 - Add ability to handle passphrase-protected server keys.  mod_tls
  can now properly prompt for passphrases for protected server certificate
  keys when the daemon is starting up.
- Bug 2086 - Add limits for PORT, PASV.  This means that now one can use
  <Limit> to place access controls on the PORT and PASV commands.  This
  applies to the EPRT and EPSV commands as well.
- Bug 2174 - mod_auth_unix should not act authoritatively.  This was causing
  problems when using mod_auth_unix.c and the AuthOrder configuration
  directive.
- Bug 2098 - Added SetEnv and UnsetEnv configuration directives.
- Bug 2271 - Improper autoconf check for getaddrinfo() on Tru64 UNIX 5.1.
  The getaddrinfo symbol is a macro, not a function, on that platform.
- Bug 2255 - RADIUS Service-Type should reflect attribute expectations.
- Added Event API.
- Bug 2272 - Address/port collision check needs to handle DefaultAddress.
- Bug 2072 - Add Controls API.
  This API includes a new program, ftpdctl, that is used to communicate
  directly with the proftpd daemon via a new core module, mod_ctrls.  For
  this new functionality to be used, proftpd must be configured using the
  added --enable-ctrls option.
- Bug 2015 - Add AND, OR keywords to Allow/DenyUser directives.
  The AllowUser, DenyUser, AllowGroup, and DenyGroup directives now take
  an optional keyword that indicates what type of expression they are:
  AND, OR, or regex.  By default, AllowUser and DenyUser are OR expressions,
  and AllowGroup and DenyGroup are AND expressions.  For example:

    AllowUser regex ^ftp
    DenyUser AND dave,bob
    AllowGroup OR web,doc

  These demonstrate that the optional keyword modifier must be the first
  parameter in the configuration directive.
- Bug 2046 - Change RFNR and RNTO logging class to WRITE.  This means that
  ExtendedLogs that use the WRITE logging class will now include the
  RNFR and RNTO commands.
- Mac OS X 10.3 portability fixes.
- Bug 2274 - Default server only binds to one IP address of host if
  the --enable-ipv6 configure option is used.  ProFTPD will now properly
  bind to all addresses for the default "server config" server.
- Bug 2048 - Add ability to get configuration file values from environment.
  For example, you can now have the following in your proftpd.conf:

    DefaultAddress %{env:PR_DEFAULT_ADDR}

  which indicates to ProFTPD's configuration parser to get the value of
  the PR_DEFAULT_ADDR environment variable, and substitute it in, e.g.:

    PR_DEFAULT_ADDR=1.2.3.4 ./proftpd ...

  If the indicated environment variable is not present, the value is
  substituted with the empty string.
- Bug 1635 - Older systems' chown(1) does not support -h option.  The solution
  is to prevent this error from stopping the 'make install' process, as it
  is a harmless error on such systems.
- Bug 2290 - gmtime() static storage may be overwritten by modules.
- Bug 2288 - ServerFQDN set to 255.255.255.255 and not hostname.
- Added mod_quotatab to the contrib area.
- Bug 2300 - poll() returns 1 and read returns 0, resulting in an inifinite
  loop.  The actual bug was caused by a goto that was being inappropriately
  used; a return value was not being checked to see if it was an error value.
- Bug 2305 - Compile Problems since > 1.2.9
  Fix the build under Solaris - ftpdctl needs to be linked against libsocket
  and libnsl.
- Bug 2267 - Broken IP subnet matching. Added new ACL parsing/matching code.
- Bug 2307 - MySQL 4.1.1 API change causes mod_sql_mysql compilation failure.
- Bug 2319 - Build scripts have owner-only execute permission.  This was
  causing problems whenever a user other than the owner of the files
  attempted to build proftpd.
- Bug 2320 - autoconf check for socklen_t doesn't work on FreeBSD 4.8-RELEASE.
  The fix is to include <sys/types.h>, if present, sooner in the check.
- Bug 1925 - Clean up of Class code.  The Class and Classes directives are
  now deprecated.  See README.classes for more details.
- Bug 2295 - mod_tls returns multiline response to AUTH commands.
- Bug 2322 - NLST -a returns listing formatted for LIST -a.  RFC959 does not
  explicitly allow dash-style options for LIST or NLST, although many clients
  attempt to use them.  De facto FTP server behaviors handle options for LIST;
  options for NLST will be explicitly rejected.
- Bug 2315 - Overlapping virtual server causes error.  If a <VirtualHost>
  was configured to handle the same IP address and port as the "server config"
  server, the wrong server configuration was being removed.
- Bug 2324 - Directories whose names contain whitespace are inaccessible.
- Bug 2306 - ftpcount output should handle case of no users.  When no clients
  are connected, ftpcount now displays "0 users".
- Bug 2337 - TLSRenegotiate parameters not processed correctly.
- Bug 2340 - Problem with parallel builds.  Proper dependencies added when
  building ftpwho and ftptop.
- Bug 2327 - SQLNegativeCache causes unnecessary errors in server logging.
- Bug 2237 - HiddenStores does not check for existing file in edge case.
- Bug 2171 - Add delete options to ftpasswd.  The ftpasswd script now
  supports the --delete-user and --delete-group options.
- Bug 2105 - Remove Authoritative directives.  The AuthPAMAuthoritative
  directive, and the "*" syntax of SQLAuthenticate, have been deprecated.
- Bug 1696 - Include directive should support directories.  The Include
  directive now functions just like Apache's Include directive, including
  handling glob characters.
- Bug 2311 - MaxClients counts unauthenticated users.  According to the
  documentation, the MaxClients configuration directive should only count
  authenticated clients.
- Bug 2339 - STAT command doesn't follow RFC959.  Previously, ProFTPD did
  not support use of the STAT command during file transfers.  This
  functionality is now implemented.  Sites wishing to prevent this can
  limit use of the STAT command by using <Limit STAT>.
- Bug 2257 - Add SITE SYMLINK command to mod_site.  Rather than adding
  this command to the mod_site module, a new module, mod_site_misc, has
  been added to the contrib area.  The mod_site_misc module implements
  SITE SYMLINK, and a few other SITE commands.  See contrib/mod_site_misc.html
  for details.
- Bug 2355 - Send error message to client when 'TLSRequired on' is in effect.
  Previously, if SSL/TLS was configured to be required for both control
  and data channels, if the client did not perform the SSL/TLS handshake for
  a data transfer, the connection would hang.  Now, an error message is sent
  to the client if no handshake is done.
- Bug 2353 - REST doesn't handle offsets greater than 2 GB.
- Bug 2357 - ftptop should use COLS for determining display width.
- Bug 2321 - FTP permission checks inconsistent for DELE and RMD/XRMD when
  symlink is in directory path.  This bug affected the RNFR command as well.
- Bug 2361 - Second USER command causes problems with chrooted session.
- Bug 2363 - ABOR response RFC 959 compliance.  The 226 response was being
  sent before closing the data connection; RFC 959 implies that the data
  connection is closed first.
- Bug 2369 - EPSV should not send network address when MasqueradeAddress is
  used.  RFC 2428 does not address the case where a server may wish to
  return an address in the EPSV response that differs from the control
  connection address, as is done in a PASV response for forwarding devices
  (e.g. NAT, firewall).  Until the proper behavior can be determined,
  do not honor MasqueradeAddress for EPSV.
- Bug 2367 - LIST *.* strange behaviour.  The builtin listing mechanism
  was inadvertently recursing into globbed directories when recursion was
  not actually requested.
- Bug 2371 - ftpasswd should have option to compare password against value
  in passwd file.  ftpasswd now supports a --not-previous-password option.
- Added a `howto' directory under `doc/', for mini-HOWTOs.
- Bug 2221 - proftpd on hp-ux 11.22.  The default data type of socklen_t
  on HP-UX 11 is problematic; many system calls expect an int, and the
  default type is a size_t.  This mismatch causes problems for 64-bit
  builds.
- Bug 2385 - Renames fail with error "Invalid cross-device link".
- Bug 2383 - mod_ctrls.c: ctrls_listen(): Invalid size in bind() argument.
  The size of struct sockaddr_un is not consistent across platforms.
- Bug 2387 - PRIVS_USER macro should set effective GID to user's primary GID.
- Added a `modules/' directory under `doc/', for core module documentation.
  Currently there are HTML docs for mod_auth_file, mod_cap, and mod_ctrls.
- Bug 2317 - Wrong order of privs calls on HP generates "unable to setregid()"
  error.
2004-09-21 13:10:18 +00:00
martti
6468e0403f Add PAM support (pkg/26522) 2004-08-30 18:13:18 +00:00
grant
6eab5759a3 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 14:50:05 +00:00
martti
3997f3b4e6 Updated proftpd to 1.2.9
* bug fixes
2003-12-07 13:53:34 +00:00
kim
8646a84042 Use the 1.2.8p distribution, bump PKGREVISION to 2.
Fixes vulnerability:  http://xforce.iss.net/xforce/alerts/id/154
2003-09-23 18:26:05 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jmmv
c9a7a5aa11 Install an rc.d script, provided in PR pkg/20244 by David Ferlier.
Honour PKG_SYSCONFDIR and install a default configuration file.
Bump PKGREVISION.
2003-03-22 10:15:27 +00:00
martti
2ca547459c Updated proftpd to 1.2.8
- lots of bug fixes
2003-03-05 09:05:33 +00:00
martti
acce8f4d96 Updated proftpd to 1.2.7
- lots of bug fixes
2002-12-31 09:19:04 +00:00
martti
f978df016d Updated proftpd to 1.2.6
* mod_quota removed due to lack of active maintenance
* New version of mod_ldap (2.8.10)
* New directives added: Define, <IfDefine>, <IfModule>, TimeoutSession
* Directives removed: AllowChmod, ShowDotFiles
* STOU support added
* LFS support added
* Fixed various minor bugs
2002-09-16 09:32:20 +00:00
martti
6a7bf257e0 Updated proftpd to 1.2.5 (release 2002-06-09)
The 1.2.5 release includes some minor bugfixes. Please read the included
NEWS and ChangeLog files for the full details.
2002-06-10 05:49:41 +00:00
martti
89d684bf17 I can be the maintainer (and contact person towards the ProFTPD project) 2002-04-02 09:56:26 +00:00
martti
13ab31149b ProFTPD is a highly configurable ftp daemon for unix
and unix-like operating systems. ProFTPD has a Apache-like
configuration format.
2001-10-22 14:26:45 +00:00