Ticket #22920: pure-ftpd-postgresql.diff

File pure-ftpd-postgresql.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    7979}
    8080
    8181# Variants
    82 variant mysql5 conflicts postgresql description "Use native MySQL support for privileges database." {
     82variant mysql5 conflicts postgresql82 postgresql83 postgresql84 description "Use MySQL 5 for privileges database" {
    8383    depends_lib-append path:bin/mysql_config5:mysql5
    8484    configure.args-append --with-mysql
    85     configure.cflags-append "-I${prefix}/include/mysql5/mysql"
    86     configure.ldflags-append "-L${prefix}/lib/mysql5/mysql"
     85    configure.env-append PATH=${prefix}/lib/mysql5/bin:$env(PATH)
    8786}
    8887
    89 variant postgresql conflicts mysql5 description "Use native postgreSQL support for privileges database." {
     88variant postgresql82 conflicts mysql5 postgresql83 postgresql84 description "Use PostgreSQL 8.2 for privileges database" {
     89    depends_lib-append port:postgresql82
     90    configure.args-append --with-pgsql
     91    configure.env-append PATH=${prefix}/lib/postgresql82/bin:$env(PATH)
     92}
     93
     94variant postgresql83 conflicts mysql5 postgresql82 postgresql84 description "Use PostgreSQL 8.3 for privileges database" {
    9095    depends_lib-append port:postgresql83
    9196    configure.args-append --with-pgsql
     97    configure.env-append PATH=${prefix}/lib/postgresql83/bin:$env(PATH)
     98}
     99
     100variant postgresql84 conflicts mysql5 postgresql82 postgresql83 description "Use PostgreSQL 8.4 for privileges database" {
     101    depends_lib-append port:postgresql84
     102    configure.args-append --with-pgsql
     103    configure.env-append PATH=${prefix}/lib/postgresql84/bin:$env(PATH)
    92104}
    93105
    94106variant tls description "Encryption of ftp control and data channels using SSL/TLS" {