Opened 15 years ago

Last modified 14 years ago

#24226 closed enhancement

proftpd-1.3.2c - Outdated + lack of PosgreSQL backend and SSL/TLS support — at Version 1

Reported by: dev@… Owned by: jenix@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: proftpd

Description (last modified by jmroot (Joshua Root))

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.

Change History (1)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: jenix@… removed
Description: modified (diff)
Keywords: proftpd postgresql tls removed
Owner: changed from macports-tickets@… to jenix@…

Please remember to use WikiFormatting.

Note: See TracTickets for help on using tickets.