pkgsrc/net/pure-ftpd/options.mk

47 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.8 2007/08/26 08:06:48 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pureftpd
Update pure-ftpd to version 1.0.21 and add an option for (experimental) utf8- support, from unex@linija.org via PR pkg/32901. Changes: * When SHA1HANDSOFF is defined, we shouldn't cast a pointer to a large union to a char buffer, because of alignment required by some architectures. * WITH_THROTTLING should actually be THROTTLING in src/log_extauth.c . It fixes throttling with extauth. Reported and fixed by Marcus Merighi <mcmer@tor.at> through Brad our beloved OpenBSD maintainer. * Rendezvous has been renamed Bonjour. * A double-close in the CHMOD command has been fixed. * The old PAM sample has been removed. * -F option added to pure-pw. * MAX_USER_LENGTH has been bumped to 127 due to popular demand. * pam/* can now be used if security/* doesn't exist. Fixes PAM detection on MacOS X. * Call tzset() in chrooted apps in order to get correct time zones in syslog messages. * simplify() simplifies paths ending by /. and /.. * MySQL's hash_password() needs 3 arguments since mySQL 4.1. * Experimental support for RFC2640 (UTF-8 filename encoding) has been added, derived from code by Jui-Nan Lin ===> added as "utf8" pkgsrc option. * The LDAP schema has been changed: FTPStatus should be a boolean. * New switch: -p (--pidfile=) for pure-authd and pure-uploadscript, by Old Sparky. * By popular request, even non-chrooted users are now denied access if their home directory is not mounted. * If die() is called during a TLS-enabled session, encrypt the death message. Contributed by Cynix. * Don't wrongly abort transfer during file upload. Fix by Patrick Gosling. * WITH_LARGE_FILES is now defined by default. * sendfile64() support on Linux. * privsep and main processes were swapped out so that pure-ftpwho displays the right pid. * OPTS MLST has been implemented. * SITE UTIME has been implemented. * TCP_CORK is on by default again. A new configure switch, --without-cork, can disable it. * Correctly format %c and %% in fakesprintf(). * The connection socket is now created with the Nagle algorithm disabled. It was the trick to dramatically improve performance when transfering a lot of small files. * Updated getopt_long() and realpath() substitutes. * Allow logging to named pipes (thanks to Steve Marple). * Use CLIENT_MULTI_STATEMENTS while connecting to a MySQL server. * Documentation updates. * MySQL errors are now logged.
2006-02-24 15:35:30 +01:00
PKG_SUPPORTED_OPTIONS= ldap mysql pgsql ssl virtualchroot utf8
PKG_OPTIONS_LEGACY_VARS+= PURE_FTPD_USE_MYSQL:mysql
PKG_OPTIONS_LEGACY_VARS+= PURE_FTPD_USE_PGSQL:pgsql
PKG_OPTIONS_LEGACY_VARS+= PURE_FTPD_USE_TLS:ssl
PKG_OPTIONS_LEGACY_VARS+= PURE_FTPD_USE_VIRTUAL_CHROOT:virtualchroot
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
.endif
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql
.endif
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-tls
CONFIGURE_ARGS+= --with-certfile=${SSLKEYS}/pure-ftpd.pem
SUBST_CLASSES+= cert
SUBST_STAGE.cert= pre-configure
SUBST_FILES.cert= README README.TLS
SUBST_SED.cert= -e "s|/etc/ssl/private|${SSLKEYS}|g"
.endif
.if !empty(PKG_OPTIONS:Mvirtualchroot)
CONFIGURE_ARGS+= --with-virtualchroot
.endif
Update pure-ftpd to version 1.0.21 and add an option for (experimental) utf8- support, from unex@linija.org via PR pkg/32901. Changes: * When SHA1HANDSOFF is defined, we shouldn't cast a pointer to a large union to a char buffer, because of alignment required by some architectures. * WITH_THROTTLING should actually be THROTTLING in src/log_extauth.c . It fixes throttling with extauth. Reported and fixed by Marcus Merighi <mcmer@tor.at> through Brad our beloved OpenBSD maintainer. * Rendezvous has been renamed Bonjour. * A double-close in the CHMOD command has been fixed. * The old PAM sample has been removed. * -F option added to pure-pw. * MAX_USER_LENGTH has been bumped to 127 due to popular demand. * pam/* can now be used if security/* doesn't exist. Fixes PAM detection on MacOS X. * Call tzset() in chrooted apps in order to get correct time zones in syslog messages. * simplify() simplifies paths ending by /. and /.. * MySQL's hash_password() needs 3 arguments since mySQL 4.1. * Experimental support for RFC2640 (UTF-8 filename encoding) has been added, derived from code by Jui-Nan Lin ===> added as "utf8" pkgsrc option. * The LDAP schema has been changed: FTPStatus should be a boolean. * New switch: -p (--pidfile=) for pure-authd and pure-uploadscript, by Old Sparky. * By popular request, even non-chrooted users are now denied access if their home directory is not mounted. * If die() is called during a TLS-enabled session, encrypt the death message. Contributed by Cynix. * Don't wrongly abort transfer during file upload. Fix by Patrick Gosling. * WITH_LARGE_FILES is now defined by default. * sendfile64() support on Linux. * privsep and main processes were swapped out so that pure-ftpwho displays the right pid. * OPTS MLST has been implemented. * SITE UTIME has been implemented. * TCP_CORK is on by default again. A new configure switch, --without-cork, can disable it. * Correctly format %c and %% in fakesprintf(). * The connection socket is now created with the Nagle algorithm disabled. It was the trick to dramatically improve performance when transfering a lot of small files. * Updated getopt_long() and realpath() substitutes. * Allow logging to named pipes (thanks to Steve Marple). * Use CLIENT_MULTI_STATEMENTS while connecting to a MySQL server. * Documentation updates. * MySQL errors are now logged.
2006-02-24 15:35:30 +01:00
.if !empty(PKG_OPTIONS:Mutf8)
# Experimental
. include "../../converters/libiconv/buildlink3.mk"
CONFIGURE_ARGS+= --with-rfc2640
.endif