rpms/popfile/F-10 import.log, NONE, 1.1 popfile, NONE, 1.1 popfile.spec, NONE, 1.1 start_popfile.sh, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Naoki IIMURA
amatubu at fedoraproject.org
Thu Oct 1 12:46:37 UTC 2009
- Previous message (by thread): rpms/perl/devel perl-update-Storable.patch, NONE, 1.1 perl.spec, 1.232, 1.233 perl-5.10.0-Storable.patch, 1.1, NONE
- Next message (by thread): rpms/xscope/devel .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 xscope.spec, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: amatubu
Update of /cvs/pkgs/rpms/popfile/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28614/F-10
Modified Files:
.cvsignore sources
Added Files:
import.log popfile popfile.spec start_popfile.sh
Log Message:
- First import to F-10 branch.
--- NEW FILE import.log ---
popfile-1_1_1-3_fc11:F-10:popfile-1.1.1-3.fc11.src.rpm:1254400921
--- NEW FILE popfile ---
#!/bin/sh
#
# ---------------------------------------------------------------------------
#
# Copyright (c) 2001-2009 John Graham-Cumming
#
# This file is part of POPFile
#
# POPFile is free software; you can redistribute it and/or modify it
# under the terms of verion 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# POPFile is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# ---------------------------------------------------------------------------
# ===
#
# popfile
#
# A shell script designed to start and stop POPFile from within
# /etc/init.d on *nix systems.
#
# usage: popfile { start | stop | restart | status }
##
# RedHat comment block...
#
# chkconfig: - 80 20
# description: 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 a \
# complicated one-like filing mail into a dozen folders. Think \
# of it as a personal assistant for your inbox.
# pidfile: /var/run/popfile.pid
# processname: popfile
##
##
# LSB comment block...
#
# The bogus 345 run-levels are a workround for a buggy RedHat chkconfig which
# reads the LSB comment block (incorrectly) as an undocumented 'feature'.
#
### BEGIN INIT INFO
# Provides: popfile
# Required-Start: $network
# Required-Stop: $network
# Short-Description: Start and stop POPFile
# Description: 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 a complicated one-like
# filing mail into a dozen folders. Think of it as a personal
# assistant for your inbox.
### END INIT INFO
##
. /etc/rc.d/init.d/functions
popfile_root=/usr/share/popfile/
popfile_data=/var/lib/popfile/
popfile_piddir=/var/run/
popfile_logdir=/var/log/popfile/
popfile="${popfile_root}start_popfile.sh"
popfile_pid="${popfile_piddir}popfile.pid"
prog="popfile"
lockfile=/var/lock/subsys/${prog}
start() {
[ -x ${popfile} ] || exit 5
echo -n "Starting ${prog} as background process: "
daemon --pidfile=${popfile_pid} ${popfile}
retval=$?
echo
[ "${retval}" -eq 0 ] && touch ${lockfile}
return ${retval}
}
stop() {
echo -n "Stopping ${prog}: "
killproc -p ${popfile_pid} ${prog}
retval=$?
echo
[ "${retval}" -eq 0 ] && rm -f ${lockfile}
return ${retval}
}
restart() {
stop
start
}
reload() {
restart
}
force_reload() {
restart
}
rh_status() {
status -p ${popfile_pid} ${prog}
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
;;
esac
exit $?
--- NEW FILE popfile.spec ---
Summary: Automatic Email Classification
Name: popfile
Version: 1.1.1
Release: 3%{?dist}
Group: Applications/Internet
URL: http://getpopfile.org/
License: GPLv2
# BuildRequires:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Source0: http://getpopfile.org/downloads/%{name}-%{version}.zip
Source1: popfile
Source2: start_popfile.sh
# Patch0: no patch
#Requires: perl >= 5.8.1
#Requires: perl(Digest::MD5) perl(MIME::Base64) perl(MIME::QuotedPrint)
#Requires: perl(DBI)
Requires: perl(DBD::SQLite)
#Requires: perl(DBD::SQLite2)
#Requires: perl(Date::Parse) perl(Date::Format)
#Requires: perl(HTML::Template) perl(HTML::Tagset)
Requires: perl(IO::Socket::SSL)
Requires: perl(SOAP::Lite)
Requires: kakasi kakasi-dict perl(Text::Kakasi) perl(Encode)
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
%description
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 a complicated one-like filing mail into a dozen
folders. Think of it as a personal assistant for your inbox.
%prep
%setup -q -c %{name}-%{version} -T
%{__unzip} -qoa %{SOURCE0}
find . -type f | xargs chmod 0644
%{__cp} -p %{SOURCE1} .
%{__cp} -p %{SOURCE2} .
%build
%install
%{__rm} -rf $RPM_BUILD_ROOT
# popfile program
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/%{name}
%{__cp} -p -r * $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{__install} -p -m 755 *.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/%{name}/popfile
%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/%{name}/license
%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/%{name}/v%{version}.change*
# popfile data files
%{__mkdir_p} $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
%{__cp} -p stopwords $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/
# popfile log directory
%{__mkdir_p} $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
# start up script
%{__mkdir_p} $RPM_BUILD_ROOT%{_initddir}
%{__install} -p -m 755 popfile $RPM_BUILD_ROOT%{_initddir}/
%{__install} -p -m 755 start_popfile.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add %{name}
#/sbin/chkconfig %{name} on
#/sbin/service %{name} start >/dev/null 2>&1
exit 0
%preun
if [ "$1" = 0 ]; then
/sbin/service %{name} stop >/dev/null 2>&1
#/sbin/chkconfig %{name} off
/sbin/chkconfig --del %{name}
fi
exit 0
%postun
if [ "$1" -ge "1" ] ; then
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
fi
exit 0
%files
%defattr(-,root,root,-)
# popfile program
%{_datadir}/%{name}/
# popfile document files
%doc license
%doc v%{version}.change
%doc v%{version}.change.nihongo
# popfile data files
%dir %{_localstatedir}/lib/%{name}
#%config(missingok) %{_localstatedir}/lib/%{name}/popfile.cfg
#%config(missingok) %{_localstatedir}/lib/%{name}/popfile.db
%config(noreplace) %{_localstatedir}/lib/%{name}/stopwords
# popfile log directory
%dir %{_localstatedir}/log/%{name}
# start up script
%{_initddir}/popfile
%changelog
* Tue Sep 29 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-3
- moved document files to the appropriate directory
- removed unnecessary %%pre script
- simplified the %%files section some more
* Mon Sep 28 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-2
- removed the license statement
- updated the release number to "<release number>%%{?dist}" style
- removed the Vendor/Exclusiveos tags
- removed the Requires tag for perl itself
- updated the perl module dependencies to use virtual Provides names
- added perl(Encode) dependency
- fixed permission of popfile and start_popfile.sh
- simplified the %%install section
- added "-p" option to "install" command and "cp" command to preserve
timestamps
- rewrote macros in "%%{name}" style
- use %%{_initddir} macro instead of %%{_initrddir}
- added missing Requres(post), Requires(preun) and Requires(postun)
- commented out '/sbin/service popfile stop' in %%pre script
- added %%postun script
- updated the scripts to use "/sbin/service" style
- updated %%defattr to %%defattr(-,root,root,-) in the %%files section
- simplified the %%files section
- popfile init.d script
updated chkconfig and deleted Default-Start and Default-Stop lines
* Sat Sep 26 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-1.1
- new upstream version
* Sun Jul 5 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-0.3.rc3
- new upstream version
* Mon Jun 22 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-0.2.rc2
- new upstream version
* Sat Jun 20 2009 naoki iimura <naoki at getpopfile.org> 1.1.1-0.1.rc1
- release 1 for version 1.1.1-RC1
--- NEW FILE start_popfile.sh ---
#!/bin/sh
popfile_root=/usr/share/popfile/
popfile_data=/var/lib/popfile/
popfile_piddir=/var/run/
popfile_logdir=/var/log/popfile/
PARAMS="--set config_piddir=${popfile_piddir} --set logger_logdir=${popfile_logdir}"
export POPFILE_ROOT=${popfile_root}
export POPFILE_USER=${popfile_data}
umask 0027
exec /usr/share/popfile/popfile.pl $PARAMS &> ${logdir}/console.log &
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/popfile/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 30 Sep 2009 23:51:06 -0000 1.1
+++ .cvsignore 1 Oct 2009 12:46:37 -0000 1.2
@@ -0,0 +1 @@
+popfile-1.1.1.zip
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/popfile/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 30 Sep 2009 23:51:07 -0000 1.1
+++ sources 1 Oct 2009 12:46:37 -0000 1.2
@@ -0,0 +1 @@
+005bd6c4a39db3489800e0d9552f7993 popfile-1.1.1.zip
- Previous message (by thread): rpms/perl/devel perl-update-Storable.patch, NONE, 1.1 perl.spec, 1.232, 1.233 perl-5.10.0-Storable.patch, 1.1, NONE
- Next message (by thread): rpms/xscope/devel .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 xscope.spec, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list