Ticket #34237: Portfile-dspam.diff
File Portfile-dspam.diff, 4.0 KB (added by compconsultant@…, 13 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name dspam 7 version 3. 9.07 version 3.10.2 8 8 categories mail net 9 9 maintainers yahoo.com:compconsultant 10 10 description Scalable, open-source statistical anti-spam filter … … 15 15 platforms darwin freebsd 16 16 master_sites sourceforge 17 17 18 checksums md5 10d092b57d628d8c91655fee5dc0d0cd\19 sha1 b238f076f67866b5450ae9b8329857b4e2d83dd1\20 rmd160 cbde359e4e846e8be352c087c4af46148e68576118 checksums md5 0e0e405d3284485b2a43f47eaf6b09bb \ 19 sha1 21133e0ee1880f3e8c849365b7e27a73f6d0413a \ 20 rmd160 7e112981e45e483350b9afc056ebfa4c5561036c 21 21 22 22 configure.args --sysconfdir='${prefix}/etc' \ 23 23 --mandir='${prefix}/share/man' \ … … 26 26 27 27 destroot.keepdirs ${destroot}${prefix}/var/log/dspam 28 28 29 variant vpopmail {29 variant vpopmail description Configure dspam to work with vpopmail { 30 30 configure.args-append --with-dspam-home-owner=vpopmail \ 31 31 --with-dspam-home-group=vchkpw \ 32 32 --with-dspam-owner=vpopmail \ … … 34 34 depends_lib port:vpopmail 35 35 } 36 36 37 variant mysql5 conflicts postgres sqlite {37 variant mysql5 conflicts postgres sqlite description Configure dspam to work with MySQL { 38 38 depends_lib path:bin/mysql_config5:mysql5 39 39 configure.args-append --with-storage-driver=mysql_drv \ 40 40 --with-mysql-includes=${prefix}/include/mysql5/mysql \ … … 43 43 --enable-virtual-users 44 44 } 45 45 46 variant sqlite conflicts postgres mysql5 {46 variant sqlite conflicts postgres mysql5 description Configure dspam to work with sqlite { 47 47 depends_lib port:sqlite3 48 48 configure.args-append --with-sqlite-libaries=${prefix}/lib 49 49 } 50 variant postgres conflicts sqlite mysql5 {50 variant postgres conflicts sqlite mysql5 description Configure dspam to work with postgres { 51 51 depends_lib port:postgresql80 52 52 configure.args-append --with-storage-driver=pgsql_drv \ 53 53 --with-pgsql-includes=${prefix}/include/pgsql8 \ … … 55 55 } 56 56 57 57 post-destroot { 58 file rename ${destroot}${prefix}/etc/dspam.conf ${destroot}${prefix}/etc/dspam.sample 58 59 file mkdir ${destroot}${prefix}/var/dspam/samples 59 60 file mkdir ${destroot}${prefix}/share/doc/dspam 60 61 file mkdir ${destroot}${prefix}/var/dspam/mysql … … 65 66 file mkdir ${destroot}${prefix}/var/dspam/webui/htdocs 66 67 file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/dspam/ 67 68 file copy ${worksrcpath}/UPGRADING ${destroot}${prefix}/share/doc/dspam/ 69 file copy ${worksrcpath}/RELEASE.NOTES ${destroot}${prefix}/share/doc/dspam/ 70 file copy ${worksrcpath}/CHANGELOG ${destroot}${prefix}/share/doc/dspam/ 68 71 system "cp -R ${worksrcpath}/webui/cgi-bin/* ${destroot}${prefix}/var/dspam/webui/cgi-bin/" 69 72 system "rm ${destroot}${prefix}/var/dspam/webui/cgi-bin/Make*" 70 73 system "cp -R ${worksrcpath}/webui/htdocs/* ${destroot}${prefix}/var/dspam/webui/htdocs/" 71 74 system "rm ${destroot}${prefix}/var/dspam/webui/htdocs/Make*" 72 file copy ${worksrcpath}/scripts/train.pl ${destroot}${prefix}/var/dspam/samples/73 75 system "cp ${worksrcpath}/txt/*.txt ${destroot}${prefix}/var/dspam/samples/" 74 76 system "cp ${worksrcpath}/doc/*.txt ${destroot}${prefix}/share/doc/dspam/" 75 77 system "cp -R ${worksrcpath}/src/tools.mysql_drv/*sql ${destroot}${prefix}/var/dspam/mysql" … … 80 82 system "chown -R vpopmail:vchkpw ${destroot}${prefix}/var/log/dspam" 81 83 } 82 84 } 85 86 post-install { 87 ui_msg "\n 88 Please create the dspam configuration file ${prefix}/etc/dspam.conf 89 by using the sample file ${prefix}/etc/dspam.sample as a reference 90 \n" 91 } 92