Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 21:59:03 +0300 (EEST)
From:      Toni Viemero <toni.viemero@iki.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        j@pureftpd.org
Subject:    ports/68339: [PATCH] ftp/pure-ftpd: Add knobs for PAM and throttling
Message-ID:  <20040625185903.A4A4D9BE4C@shaolin.selfdestruct.net>
Resent-Message-ID: <200406251940.i5PJe7Jt009608@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68339
>Category:       ports
>Synopsis:       [PATCH] ftp/pure-ftpd: Add knobs for PAM and throttling
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 25 19:40:07 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Toni Viemero
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD shaolin.selfdestruct.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Sat May 29 00:26:03 EEST 2004
>Description:
Add support for PAM to co-exist with other authentication methods
Add support for bandwidth throttling

Port maintainer (j@pureftpd.org) is cc'd.
>How-To-Repeat:
>Fix:

--- pure-ftpd-1.0.19.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/ftp/pure-ftpd/Makefile /home/toni/ports/pure-ftpd/Makefile
--- /usr/ports/ftp/pure-ftpd/Makefile	Fri Jun 25 16:24:05 2004
+++ /home/toni/ports/pure-ftpd/Makefile	Fri Jun 25 21:49:28 2004
@@ -40,9 +40,11 @@
 
 OPTIONS=	LDAP	"Support for users in LDAP directories" off \
 		MYSQL	"Support for users in MySQL database" off \
+		PAM	"Support for PAM authentication" on \
 		PGSQL	"Support for users in PostgreSQL database" off \
 		PRIVSEP	"Enable privilege separation" off \
-		PERUSERLIMITS	"Per-user concurrency limits" off
+		PERUSERLIMITS	"Per-user concurrency limits" off \
+		THROTTLING	"Bandwidth throttling" off
 
 .include <bsd.port.pre.mk>
 
@@ -80,13 +82,18 @@
 CONFIGURE_ARGS+=	--with-peruserlimits
 .endif
 
+# throttling requested?
+.if defined(WITH_THROTTLING)
+CONFIGURE_ARGS+=	--with-throttling
+.endif
+
 # different certificate file location?
 .if defined(WITH_CERTFILE)
 CONFIGURE_ARGS+=	--with-certfile=${WITH_CERTFILE}
 .endif
 
 # if mysql or ldap are disabled, enable pam
-.if !defined(WITH_LDAP) && !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
+.if !defined(WITH_LDAP) && !defined(WITH_MYSQL) && !defined(WITH_PGSQL) || defined(WITH_PAM)
 CONFIGURE_ARGS+=	--with-pam
 .endif
 
--- pure-ftpd-1.0.19.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040625185903.A4A4D9BE4C>