Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56945

Summary: Request for adding softquota support to proftpd ebuild
Product: Gentoo Linux Reporter: C. Angenent <jimmyshake>
Component: New packagesAssignee: Gustavo Felisberto (RETIRED) <humpback>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description C. Angenent 2004-07-13 12:38:38 UTC
For my proftpd setup i had to modify the ebuild to compile in softquota support (mod_quotatab).
This all works fine but it prevents me from being able to update on a cron job.


Reproducible: Sometimes
Steps to Reproduce:
1. emerge sync
2. emerge -upD world
3. # and my quota support is gone.. 

Actual Results:  
My users were pretty happy.

Expected Results:  
I'd like to request for a new "softquota" use flag to be created so that i can
update automatically without losing my quota support each time.

I've made a mofidied version of the proftpd-1.2.10_rc1-r1 ebuild to support
softquotas through a "softquota" use flag.
It can be found here:  http://www.gogar.com/proftpd-ebuild.txt

i'll quote the modified parts so it's more clear what exactly i changed:
---------------------------------------------------------
IUSE="ldap pam postgres mysql ssl tcpd ipv6 shaper softquota"

MY_P=${P/_/}
S=${WORKDIR}/${MY_P}

DESCRIPTION="An advanced and very configurable FTP server"
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${MY_P}.tar.bz2
                shaper?
http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-0.5.2.tar.gz
                softquota?
http://www.castaglia.org/${PN}/modules/${PN}-mod-quotatab-1.2.11.tar.gz"
HOMEPAGE="http://www.proftpd.org/"
---------------------------------------------------------

and i added:
---------------------------------------------------------
	if use softquota; then
		modules="${modules}:mod_quotatab"
		if use mysql || use postgres; then
			modules="${modules}:mod_quotatab_sql"
		elif use ldap; then
			modules="${modules}:mod_quotatab_file:mod_quotatab_ldap"
		else
			modules="${modules}:mod_quotatab_file"
		fi
	fi
---------------------------------------------------------

It should be obvious where the parts should go.


One thing to note is that the version of the mod_quotatab module i use with
proftpd-1.2.10 is said to be made for proftpd-1.2.9, but it all seems to work fine.

more info on the module can be found here:
http://www.castaglia.org/proftpd/#Modules
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-13 13:45:02 UTC
I have to talk to castiglia (proftpd developer) if this module works with 10_rc1
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-13 16:45:29 UTC
softquota already comes with 1.2.10_rc versions :)
Actually your ebuild does download softquotas old version but does not even unpack it so it never gets used.
I am testins rc2 that was released a couple of hours ago, will probably be commiting it in a few minutes.

Thanks for the help.