pure-ftpd 1.0.29: add support for various unofficial macros
Edho P Arief
edhoprima at gmail.com
Mon Jul 12 04:33:36 UTC 2010
Please add support for unofficial macros (but exists in official
source) available in pure-ftpd. At least the macros included in
following patch enable operations commonly allowed in other ftp
daemons (resume, delete and rename support for anonymous user). There
are some more macros but I think these three are the most useful.
>From ChangeLog:
* Version 1.0.5 :
Unofficial macros to give more power to anon users :
ANON_CAN_CHANGE_PERMS, ANON_CAN_DELETE, ANON_CAN_RESUME and ANON_CAN_RENAME.
--- Makefile.org 2010-07-12 04:02:27.500052521 +0000
+++ Makefile 2010-07-12 04:14:20.815279713 +0000
@@ -51,7 +51,10 @@
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>
@@ -141,6 +144,18 @@
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
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the freebsd-ports
mailing list