Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80002 - proftpd - ldap_quota with USE="mysql ldap softqouta"
Summary: proftpd - ldap_quota with USE="mysql ldap softqouta"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 15:23 UTC by Michael Cramer
Modified: 2005-03-02 15:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2005-01-29 15:23:29 UTC
i have both USE-flags in my make.conf. when i now emerge proftpd only the mod_quotatab_sql is build and not both mod_quotatab_ldap.c and mod_quotatab_sql.c.
so i changed the ebuild a little bit. i divided the if-then thing in softquota to build these modules depending on USE-flags. all work fine with both. i need both to switch without delay to my new ldap-user-management, so i can test the configuration while only commenting out some lines in proftpd.conf.
i think this ebuild should be corrected to support both.

Reproducible: Always
Steps to Reproduce:
1. with original ebuild
USE="-debug -hardened +ipv6 +ldap +mysql +pam -postgres (-selinux) +sendfile +shaper +softquota +ssl +tcpd" proftpd
2. proftpd -l shows:
Compiled-in modules:
  mod_core.c
  mod_xfer.c
  mod_auth_unix.c
  mod_auth_file.c
  mod_auth.c
  mod_ls.c
  mod_log.c
  mod_site.c
  mod_ctrls.c
  mod_ratio.c
  mod_readme.c
  mod_delay.c
  mod_auth_pam.c
  mod_wrap.c
  mod_shaper.c
  mod_ldap.c
  mod_tls.c
  mod_sql.c
  mod_sql_mysql.c
  mod_quotatab.c
  mod_quotatab_sql.c
  mod_cap.c
3. with changed ebuild 
USE="-debug -hardened +ipv6 +ldap +mysql +pam -postgres (-selinux) +sendfile +shaper +softquota +ssl +tcpd" proftpd
4. proftpd -l shows:
Compiled-in modules:
  mod_core.c
  mod_xfer.c
  mod_auth_unix.c
  mod_auth_file.c
  mod_auth.c
  mod_ls.c
  mod_log.c
  mod_site.c
  mod_ctrls.c
  mod_ratio.c
  mod_readme.c
  mod_delay.c
  mod_auth_pam.c
  mod_wrap.c
  mod_shaper.c
  mod_ldap.c
  mod_tls.c
  mod_sql.c
  mod_sql_mysql.c
  mod_quotatab.c
  mod_quotatab_sql.c
  mod_quotatab_file.c
  mod_quotatab_ldap.c
  mod_cap.c





Expected Results:  
compile with mysql and ldap quota support
Comment 1 Michael Cramer 2005-01-29 15:25:14 UTC
forgot to mention the change from:
        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

to

        if use softquota; then
                modules="${modules}:mod_quotatab"
                if use mysql || use postgres; then
                        modules="${modules}:mod_quotatab_sql"
                fi
                if use ldap; then
                        modules="${modules}:mod_quotatab_file:mod_quotatab_ldap"
                else
                        modules="${modules}:mod_quotatab_file"
                fi
        fi
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2005-03-02 15:09:14 UTC
Thanks for the notice, fixed in portage -r3 version