Date: Mon, 12 Jul 2010 11:25:41 +0700 From: Edho P Arief <edhoprima@gmail.com> To: garga@freebsd.org Cc: freebsd-ports <freebsd-ports@freebsd.org> Subject: pure-ftpd 1.0.29: add support for various unofficial macros Message-ID: <AANLkTinwocr4HNzHVMStO-fsUnowG2QDNcUqWKa2rDGm@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinwocr4HNzHVMStO-fsUnowG2QDNcUqWKa2rDGm>