diff options
author | garga <garga@FreeBSD.org> | 2010-07-12 19:02:05 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2010-07-12 19:02:05 +0800 |
commit | 8d13400f66dd7f27fcb7a87459f5fa5a709f5411 (patch) | |
tree | 679144c2133ec312d29da76912983406d57add43 /ftp/pure-ftpd | |
parent | 89c66672e25e81be335ecf528a662f3f2cd24189 (diff) | |
download | freebsd-ports-gnome-8d13400f66dd7f27fcb7a87459f5fa5a709f5411.tar.gz freebsd-ports-gnome-8d13400f66dd7f27fcb7a87459f5fa5a709f5411.tar.zst freebsd-ports-gnome-8d13400f66dd7f27fcb7a87459f5fa5a709f5411.zip |
- Remove BANNER option since it's gone
- Add 3 new OPTIONS, ANUNRENAME, ANUNRESUME and ANONDELETE to give more
privileges to anonymous users
- Cump PORTREVISION since BANNER option was on by default
Submitted by: Edho P Arief <edhoprima@gmail.com>
Diffstat (limited to 'ftp/pure-ftpd')
-rw-r--r-- | ftp/pure-ftpd/Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/ftp/pure-ftpd/Makefile b/ftp/pure-ftpd/Makefile index 64713f37a9e4..7d4d9900754e 100644 --- a/ftp/pure-ftpd/Makefile +++ b/ftp/pure-ftpd/Makefile @@ -7,6 +7,7 @@ PORTNAME= pure-ftpd PORTVERSION= 1.0.29 +PORTREVISION= 1 CATEGORIES= ftp ipv6 MASTER_SITES= http://download.pureftpd.org/pub/pure-ftpd/releases/ \ ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \ @@ -46,12 +47,14 @@ OPTIONS= LDAP "Support for users in LDAP directories" off \ PRIVSEP "Enable privilege separation" on \ PERUSERLIMITS "Per-user concurrency limits" off \ THROTTLING "Bandwidth throttling" off \ - BANNER "Show ${PORTNAME} welcome upon session start" on \ UPLOADSCRIPT "Support uploadscript daemon" off \ UTF8 "Support for charset conversion" off \ SENDFILE "Support for the sendfile syscall" on \ LARGEFILE "Support downloading files larger than 2Gb" off \ - VIRTUALCHROOT "Follow symlinks outside a chroot jail" on + VIRTUALCHROOT "Follow symlinks outside a chroot jail" on \ + ANONRESUME "Allow anonymous user to resume file upload" off \ + ANONRENAME "Allow anonymous user to rename file" off \ + ANONDELETE "Allow anonymous user to delete file" off .include <bsd.port.pre.mk> @@ -107,11 +110,6 @@ CONFIGURE_ARGS+= --with-certfile=${WITH_CERTFILE} CONFIGURE_ARGS+= --with-pam .endif -# for paranoia -.if defined(WITHOUT_BANNER) -CONFIGURE_ARGS+= --without-banner -.endif - # support uploadscript? .if defined (WITH_UPLOADSCRIPT) CONFIGURE_ARGS+= --with-uploadscript @@ -141,6 +139,18 @@ CONFIGURE_ARGS+= --with-virtualchroot CONFIGURE_ARGS+= --without-virtualchroot .endif +.if defined(WITH_ANONRESUME) +CFLAGS+= -DANON_CAN_RESUME +.endif + +.if defined(WITH_ANONRENAME) +CFLAGS+= -DANON_CAN_RENAME +.endif + +.if defined(WITH_ANONDELETE) +CFLAGS+= -DANON_CAN_DELETE +.endif + PAM_TEMPL?= ${FILESDIR}/pam.conf.5 PAM_DIR?= ${EXAMPLESDIR}/pam PAM_TARGET?= pure-ftpd |