Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 23:10:27 +0800 (CST)
From:      Xin LI <delphij@geekcn.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        j@pureftpd.org
Subject:   ports/78871: [PATCH] Make pure-ftpd welcome message switchable when building
Message-ID:  <200503151510.j2FFARoZ072068@tarsier.delphij.net>
Resent-Message-ID: <200503151520.j2FFK1No042625@freefall.freebsd.org>

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

>Number:         78871
>Category:       ports
>Synopsis:       [PATCH] Make pure-ftpd welcome message switchable when building
>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:   Tue Mar 15 15:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Xin LI
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
Individual
>Environment:
System: FreeBSD tarsier.delphij.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Sat Jan 22 01:19:23 CST 2005 root@builder.delphij.net:/usr/obj/usr/src/sys/MULE i386


>Description:
	The default setting of pure-ftpd will advertise its name upon
connection.  The attached patch will make this switchable at build
time, just for paranoid users :-)

	maintainer cc'ed.
>How-To-Repeat:
>Fix:


--- patch-pureftpd begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/ftp/pure-ftpd/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile	31 Jan 2005 00:35:47 -0000	1.52
+++ Makefile	15 Mar 2005 15:06:22 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	pure-ftpd
 PORTVERSION=	1.0.20
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	ftp ipv6
 MASTER_SITES=	ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
 		ftp://ftp2.fr.pureftpd.org/pub/mirrors/ftp.fr.pureftpd.org/pub/pure-ftpd/releases/ \
@@ -45,7 +45,8 @@
 		PGSQL	"Support for users in PostgreSQL database" off \
 		PRIVSEP	"Enable privilege separation" off \
 		PERUSERLIMITS	"Per-user concurrency limits" off \
-		THROTTLING	"Bandwidth throttling" off
+		THROTTLING	"Bandwidth throttling" off \
+		BANNER	"Show ${PORTNAME} welcome upon session start" on
 
 .include <bsd.port.pre.mk>
 
@@ -97,6 +98,11 @@
 CONFIGURE_ARGS+=	--with-pam
 .endif
 
+# for paranoia
+.if defined(WITHOUT_BANNER)
+CONFIGURE_ARGS+=	--without-banner
+.endif
+
 .if ${OSVERSION} > 500000
 PAM_TEMPL?=	${FILESDIR}/pam.conf.5
 .else
--- patch-pureftpd ends here ---


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



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