Prev: pure-ftpd 1.0.29: --without-banner has been removed
Next: vlc install error - possibly plist error for kde4?
From: Edho P Arief on 12 Jul 2010 00:25 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 _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Renato Botelho on 12 Jul 2010 07:02
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jul 12, 2010 at 11:25:41AM +0700, Edho P Arief wrote: > 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. Committed. Thanks! - -- Renato Botelho <garga @ FreeBSD.org> <garga @ freebsdbrasil.com.br> GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc A strong conviction that something must be done is the parent of many bad measures. -- Daniel Webster -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkw69kgACgkQ6CRbiSJE7anXWgCgrWa86kzgsUkeULx51q9QHFaK aDgAn1pKai8r3J9m8TP/7TRaT1OWOx4H =4mYM -----END PGP SIGNATURE----- _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org" |