Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/net
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1771/10.3/unstable/main/finkinfo/net
Modified Files:
popfile.info
Log Message:
Updated: POPFile and DBD::SQLite
Index: popfile.info
===================================================================
RCS file: /cvsroot/fink/dists/10.3/unstable/main/finkinfo/net/popfile.info,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- popfile.info 26 Jun 2004 12:51:45 -0000 1.4
+++ popfile.info 6 Nov 2004 05:18:47 -0000 1.5
@@ -1,46 +1,111 @@
-Package: popfile
-Version: 0.21.1
-Revision: 3
+Info2: <<
+Package: popfile-perl%type_pkg[perl]%type_pkg[-ssl]
+Version: 0.22.1
+Revision: 2
Description: Automatic Email Classification
+Type: perl (5.8.1), -ssl (boolean)
License: GPL
-Maintainer: Todai Fink Team <[EMAIL PROTECTED]>
-Depends: html-tagset-pm, dbd-sqlite-pm581, text-kakasi-pm581, daemonic
-Source: mirror:sourceforge:%n/%n-%v.zip
-Source-MD5: c723b0bb3eddb866fe0bce47e05b38cb
+Maintainer: ASARI Takashi <[EMAIL PROTECTED]>
+
+Depends: perl%type_pkg[perl]-core, dbd-sqlite2-pm%type_pkg[perl], html-tagset-pm,
time-date-pm, html-template-pm, text-kakasi-pm%type_pkg[perl], (%type_raw[-ssl] =
-ssl) io-socket-ssl-pm%type_pkg[perl], (%type_raw[-ssl] = -ssl)
net-ssleay-pm%type_pkg[perl], daemonic
+Conflicts: popfile-perl581, popfile-perl581-ssl
+Replaces: popfile (<< 0.22.1-1), popfile-perl581, popfile-perl581-ssl
+
+Source: mirror:sourceforge:popfile/popfile-%v.zip
+Source-MD5: a198aebe634d628451412a7979566933
NoSourceDirectory: true
+PatchScript: <<
+ #!/bin/bash -ev
+ if [ -x %p/bin/perl%type_raw[perl] ]; then
+ /usr/bin/sed 1s@/usr/bin/[EMAIL PROTECTED]/bin/perl%type_raw[perl]@ popfile.pl >
popfile.fink
+ /bin/mv -f popfile.fink popfile.pl
+ fi
+ /bin/chmod +x popfile.pl
+
+ /usr/bin/sed 's/dbi:SQLite:dbname/dbi:SQLite2:dbname/' Classifier/Bayes.pm >
Classifier/Bayes.pm.fink
+ /bin/mv Classifier/Bayes.pm.fink Classifier/Bayes.pm
+<<
+
CompileScript: echo "no compiling needed"
InstallScript: <<
-install -m 755 -d %i/share/doc/%n
-mv license manual %i/share/doc/%n
-install -m 755 -d %i/var/lib
-cp -R . %i/var/lib/%n
+ /usr/bin/install -m 755 -d %i/share/doc/popfile
+ /bin/mv license manual %i/share/doc/popfile
+ /usr/bin/install -m 755 -d %i/var/lib
+ /bin/cp -R . %i/var/lib/popfile
<<
PostInstScript: <<
- daemonic install popfile
+ if [ -f %p/var/lib/popfile/popfile.cfg ] &&
+ grep '^bayes_dbconnect dbi:SQLite:dbname=$dbname' %p/var/lib/popfile/popfile.cfg
>/dev/null 2>/dev/null; then
+ echo
+ echo '** The name of DB backend has changed **'
+ echo 'An old config file was detected.'
+ echo
+ echo 'If you are upgrading POPFile from older version, you need to make the'
+ echo 'following change to your database connection string on the advanced page'
+ echo 'of the UI (or in popfile.cfg).'
+ echo
+ echo 'Change bayes_dbconnect from:'
+ echo ' dbi:SQLite:dbname=$dbname'
+ echo 'to:'
+ echo ' dbi:SQLite2:dbname=$dbname'
+ echo
+ echo 'For more information, please refer to this web site:'
+ echo ' http://popfile.sourceforge.net/cgi-bin/wiki.pl?SQLite3'
+ echo
+ echo 'If you are downgrading POPFile, you might need to manually convert DB.'
+ printf 'May I rewrite the config file automatically ? [Y/n]'
+ read answer
+ answer=`echo $answer | sed 's/^[yY].*$/y/'`
+ echo
+ if [ -z "$answer" -o "x$answer" = "xy" ]; then
+ echo "Rewriting the config file..."
+ set -v
+ /bin/mv %p/var/lib/popfile/popfile.cfg %p/var/lib/popfile/popfile.cfg.finksaved
+ /usr/bin/sed 's/^bayes_dbconnect dbi:SQLite:dbname=$dbname/bayes_dbconnect
dbi:SQLite2:dbname=$dbname/' /sw/var/lib/popfile/popfile.cfg
%p/var/lib/popfile/popfile.cfg.finksaved > %p/var/lib/popfile/popfile.cfg
+ set +v
+ echo "Done."
+ else
+ echo "Okay, not rewriting the config file."
+ fi
+ fi
+
+ %p/bin/daemonic install popfile
<<
PreRmScript: <<
- if [ $1 != "upgrade" ]; then
- daemonic remove popfile
- fi
+ if [ $1 != "upgrade" ]; then
+ %p/bin/daemonic remove popfile
+ fi
<<
-#ConfFiles: %p/var/lib/%n/%n.cfg
+#ConfFiles: %p/var/lib/popfile/popfile.cfg
DaemonicFile: <<
<service>
<description>Automatic Email Classification</description>
<message>POPFile, Automatic Email Classification</message>
- <daemon name="%n">
- <prerun>cd %p/var/lib/%n</prerun>
- <executable background="yes">/usr/bin/perl</executable>
- <parameters> -I %p/lib/perl5/5.8.1/darwin-thread-multi-2level -I
%p/lib/perl5/5.8.1 -I %p/lib/perl5 -I %p/lib/perl5/darwin ./popfile.pl</parameters>
+ <daemon name="popfile">
+ <executable background="yes">%p/var/lib/popfile/popfile.pl</executable>
+ <prerun>
+ export PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
+ export POPFILE_USER=%p/var/lib/popfile
+ export POPFILE_ROOT=%p/var/lib/popfile
+ </prerun>
</daemon>
</service>
<<
+DaemonicName: popfile
Homepage: http://popfile.sourceforge.net/
DescDetail: <<
-POPFile is an email classification tool with a Naive Bayes classifier,
-a POP3 proxy and a web interface.
-It runs on most platforms and with most email clients.
+POPFile is an automatic mail classification tool.
+Once properly set up and trained, it will scan all email as it arrives and
+classify it based on your training. You can give it a simple job, like
+separating out junk e-mail, or one like filing mail into a dozen folders.
+<<
+DescUsage: <<
+To start POPFile daemon,
+1. Run "sudo daemonic enable popfile".
+2. Restart your Mac.
+Default UI is found at http://127.0.0.1:8080/ .
+<<
<<
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits