Ticket #35701: patch-mail-dspam-improve-storage-drivers.diff
File patch-mail-dspam-improve-storage-drivers.diff, 3.4 KB (added by pixilla (Bradley Giesbrecht), 12 years ago) |
---|
-
mail/dspam/Portfile
5 5 6 6 name dspam 7 7 version 3.10.2 8 revision 1 8 9 categories mail net 9 10 license AGPL-3 10 11 maintainers yahoo.com:compconsultant … … 27 28 28 29 destroot.keepdirs ${destroot}${prefix}/var/log/dspam 29 30 31 set storage-driver "hash_drv" 32 if {[variant_isset mysql5]} { 33 set storage-driver "${storage-driver},mysql_drv" 34 } 35 if {[variant_isset sqlite]} { 36 set storage-driver "${storage-driver},sqlite3_drv" 37 } 38 if {[variant_isset postgres]} { 39 set storage-driver "${storage-driver},pgsql_drv" 40 } 41 configure.args-append \ 42 --with-storage-driver=${storage-driver} 43 if {[variant_isset mysql5] || [variant_isset postgres]} { 44 45 configure.args-append \ 46 --enable-preferences-extension \ 47 --enable-virtual-users 48 } 49 30 50 variant vpopmail description {Configure dspam to work with vpopmail} { 31 51 configure.args-append --with-dspam-home-owner=vpopmail \ 32 52 --with-dspam-home-group=vchkpw \ … … 35 55 depends_lib port:vpopmail 36 56 } 37 57 38 variant mysql5 conflicts postgres sqlitedescription {Configure dspam to work with mysql5} {58 variant mysql5 description {Configure dspam to work with mysql5} { 39 59 depends_lib path:bin/mysql_config5:mysql5 40 configure.args-append --with-storage-driver=mysql_drv \ 41 --with-mysql-includes=${prefix}/include/mysql5/mysql \ 42 --with-mysql-libraries=${prefix}/lib/mysql5/mysql \ 43 --enable-preferences-extension \ 44 --enable-virtual-users 60 configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql \ 61 --with-mysql-libraries=${prefix}/lib/mysql5/mysql 45 62 } 46 63 47 variant sqlite conflicts postgres mysql5description {Configure dspam to work with sqlite} {64 variant sqlite description {Configure dspam to work with sqlite} { 48 65 depends_lib port:sqlite3 49 configure.args-append --with-sqlite-lib aries=${prefix}/lib66 configure.args-append --with-sqlite-libraries=${prefix}/lib 50 67 } 51 variant postgres conflicts sqlite mysql5description {Configure dspam to work with postgresql80} {68 variant postgres description {Configure dspam to work with postgresql80} { 52 69 depends_lib port:postgresql80 53 configure.args-append --with-storage-driver=pgsql_drv \ 54 --with-pgsql-includes=${prefix}/include/pgsql8 \ 55 --with-pgsql-libraries=${prefix}/lib/pgsql8 70 configure.args-append --with-pgsql-includes=${prefix}/include/postgresql80 \ 71 --with-pgsql-libraries=${prefix}/lib/postgresql80 56 72 } 57 73 74 variant debug description {add debug capabilities} { 75 configure.args-append --enable-debug \ 76 --enable-verbose-debug 77 } 78 58 79 post-destroot { 59 80 file rename ${destroot}${prefix}/etc/dspam.conf ${destroot}${prefix}/etc/dspam.conf.sample 60 81 file mkdir ${destroot}${prefix}/var/dspam/samples