[MacPorts] #24226: proftpd-1.3.2c - Outdated + lack of PosgreSQL backend and SSL/TLS support

MacPorts noreply at macports.org
Fri Mar 26 15:42:51 PDT 2010


#24226: proftpd-1.3.2c - Outdated + lack of PosgreSQL backend and SSL/TLS support
------------------------------+---------------------------------------------
 Reporter:  dev@…             |       Owner:  jenix@…           
     Type:  enhancement       |      Status:  new               
 Priority:  Normal            |   Milestone:                    
Component:  ports             |     Version:  1.8.2             
 Keywords:                    |        Port:  proftpd           
------------------------------+---------------------------------------------
Changes (by jmr@…):

 * cc: jenix@… (removed)
  * keywords:  proftpd postgresql tls =>
  * owner:  macports-tickets@… => jenix@…


Old description:

> Darwin Kernel Version 9.8.0 i386
> Xcode 3.1.4
>
> I need to build ProFTPD with PostgreSQL backend and use SSL/TLS. This
> cannot be done with the current Portfile.
>
> 1) --with-module
>
> It is clearly stated that compiling ProFTPD uses 1 and only 1 --with-
> modules directive : the last occurence. Portfile contains several --with-
> modules lines, 1 in 'configure.args' and 1 in the variant. For example,
> the variant mysql5 has '--with-modules=mod_sql:mod_sql_mysql'. The
> resulting command line given to the compiler contains several --with-
> modules, the last one being used (the others forgotten). When compiling
> ProFTP with this variant, it is impossible to get SSL/TLS.
>
> It is required to have 1 and only 1 --with-modules directive. I suggest
> to remove this directive in configure.args and to add mod_tls in every
> variant.
>
> For mysql5 variant, it would be
> --with-modules=mod_tls:mod_sql:mod_sql_mysql
> --with-includes=${prefix}/include/mysql5/mysql:${prefix}/include/openssl
> --with-libraries=${prefix}/lib/mysql5/mysql:${prefix}/lib
>
> 2) PostgreSQL backend
>
> The current Portfile provides no variant for compiling ProFTPD with the
> PostgreSQL backend. Strange enough.
>
> This is how I change Portfile each time I update MacPorts :
>
> Remove :
>         --with-modules=mod_tls
> in configure.args.
>
> Add :
>
> variant postgresql84_with_mod_quotatab_sql_with_mod_tls description
> {Build with PostgreSQL84 backend, SQL quota and TLS support} {
>     depends_lib-append      port:postgresql84
>     configure.args-append   --with-
> modules=mod_tls:mod_sql:mod_sql_postgres:mod_quotatab:mod_quotatab_sql \
>                 --with-
> includes=${prefix}/include/postgresql84:${prefix}/include/openssl \
>                 --with-libraries=${prefix}/lib/postgresql84:${prefix}/lib
> }
>
> This way, I can compile ProFTPD with PostgreSQL backend and SSL/TLS :
>
> # port install proftpd +postgresql84_with_mod_quotatab_sql_with_mod_tls
>
> 3) ProFTPD 1.3.2e
>
> The source files should be updated to 1.3.2e. This seems especially
> important to SSL/TLS users, as 1.3.2d fixes a problem with SSL/TLS.
>
> I can provide further details if needed.
>
> Best regards.

New description:

 Darwin Kernel Version 9.8.0 i386
 Xcode 3.1.4

 I need to build ProFTPD with PostgreSQL backend and use SSL/TLS. This
 cannot be done with the current Portfile.

 1) --with-module

 It is clearly stated that compiling ProFTPD uses 1 and only 1 --with-
 modules directive : the last occurence. Portfile contains several --with-
 modules lines, 1 in 'configure.args' and 1 in the variant. For example,
 the variant mysql5 has '--with-modules=mod_sql:mod_sql_mysql'. The
 resulting command line given to the compiler contains several --with-
 modules, the last one being used (the others forgotten). When compiling
 ProFTP with this variant, it is impossible to get SSL/TLS.

 It is required to have 1 and only 1 --with-modules directive. I suggest to
 remove this directive in configure.args and to add mod_tls in every
 variant.

 For mysql5 variant, it would be
 {{{
 --with-modules=mod_tls:mod_sql:mod_sql_mysql
 --with-includes=${prefix}/include/mysql5/mysql:${prefix}/include/openssl
 --with-libraries=${prefix}/lib/mysql5/mysql:${prefix}/lib
 }}}

 2) PostgreSQL backend

 The current Portfile provides no variant for compiling ProFTPD with the
 PostgreSQL backend. Strange enough.

 This is how I change Portfile each time I update MacPorts :

 Remove :
         --with-modules=mod_tls
 in configure.args.

 Add :
 {{{
 variant postgresql84_with_mod_quotatab_sql_with_mod_tls description {Build
 with PostgreSQL84 backend, SQL quota and TLS support} {
     depends_lib-append      port:postgresql84
     configure.args-append   --with-
 modules=mod_tls:mod_sql:mod_sql_postgres:mod_quotatab:mod_quotatab_sql \
                 --with-
 includes=${prefix}/include/postgresql84:${prefix}/include/openssl \
                 --with-libraries=${prefix}/lib/postgresql84:${prefix}/lib
 }
 }}}
 This way, I can compile ProFTPD with PostgreSQL backend and SSL/TLS :

 # port install proftpd +postgresql84_with_mod_quotatab_sql_with_mod_tls

 3) ProFTPD 1.3.2e

 The source files should be updated to 1.3.2e. This seems especially
 important to SSL/TLS users, as 1.3.2d fixes a problem with SSL/TLS.

 I can provide further details if needed.

 Best regards.

--

Comment:

 Please remember to use WikiFormatting.

-- 
Ticket URL: <http://trac.macports.org/ticket/24226#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list