---- cluebringer-2.0.10/cluebringer.conf 2011-01-03 15:27:44.487256867 +0200
-+++ cluebringer-2.0.10/cluebringer.conf 2011-01-06 16:28:24.957854449 +0200
-@@ -20,11 +20,11 @@
+diff -ru cluebringer-v2.1.x-201211111115.orig/cluebringer.conf cluebringer-v2.1.x-201211111115/cluebringer.conf
+--- cluebringer-v2.1.x-201211111115.orig/cluebringer.conf 2012-11-11 12:36:25.000000000 +0100
++++ cluebringer-v2.1.x-201211111115/cluebringer.conf 2012-12-25 01:28:36.806077230 +0100
+@@ -22,14 +22,14 @@
EOT
# User to run this daemon as
--#user=
--#group=
+-user=cbpolicyd
+-group=cbpolicyd
+user=policyd
+group=policyd
# Filename to store pid of parent process
--#pid_file=/var/run/cbpolicyd.pid
+-#pid_file=/var/run/cbpolicyd/cbpolicyd.pid
+pid_file=/var/run/policyd/cbpolicyd.pid
+ # Cache file
+-#cache_file=/var/run/cbpolicyd/cache
++cache_file=/var/run/policyd/cache
+
# Uncommenting the below option will prevent cbpolicyd going into the background
#background=no
+@@ -65,7 +65,7 @@
+ #log_level=2
+
+ # File to log to instead of stdout
+-#log_file=/var/log/cbpolicyd/cbpolicyd.log
++log_file=/var/log/policyd/cbpolicyd.log
+
+ # Log destination for mail logs...
+ # main - Default. Log to policyd's main log mechanism, accepts NO args
Summary: Policyd - an anti-spam plugin for Postfix
Summary(pl.UTF-8): Policyd - wtyczka antyspamowa dla Postfiksa
Name: policyd
-Version: 2.0.10
-Release: 3
+Version: 2.1.x
+%define rel 201211111115
+Release: 5
License: GPL v2
Group: Networking
-Source0: http://downloads.sourceforge.net/policyd/cluebringer-%{version}.tar.bz2
-# Source0-md5: cdff8f8e7c0e95143f7108159aed80c6
+Source0: http://devlabs.linuxassist.net/attachments/download/255/cluebringer-v%{version}-%{rel}.tar.bz2
+# Source0-md5: 72c02a80e8ce60c72410ae41bb22265d
Source1: apache.conf
Source2: %{name}.sysconfig
Source3: %{name}.conf
Requires(postun): /usr/sbin/userdel
Requires: perl-Net-CIDR
Requires: perl-cbp = %{version}-%{release}
+Requires: perl-awitpt = %{version}-%{release}
Requires: rc-scripts
Provides: group(policyd)
Provides: user(policyd)
%description -n perl-cbp
Policyd "ClueBringer" Perl Libraries.
+%package -n perl-awitpt
+Summary: Another Policyd "ClueBringer" Perl Libraries
+Group: Development/Languages/Perl
+
+%description -n perl-awitpt
+Another Policyd "ClueBringer" Perl Libraries.
+
+
%package webui
Summary: Policyd Web Administration
Group: Applications/WWW
Policyd Web Administration.
%prep
-%setup -q -n cluebringer-%{version}
+%setup -q -n cluebringer-v%{version}-%{rel}
%patch0 -p1
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{_webapps}/%{_webapp},%{_webappdir}} \
- $RPM_BUILD_ROOT{%{_sysconfdir}/policyd,%{_sbindir},/etc/{rc.d/init.d,sysconfig},/var/run/%{name}} \
+ $RPM_BUILD_ROOT{%{_sysconfdir}/policyd,%{_sbindir},/etc/{rc.d/init.d,sysconfig},/var/run/%{name},/var/log/%{name}} \
$RPM_BUILD_ROOT/usr/lib/tmpfiles.d
-# perl lib
+# perl libs
cp -a cbp $RPM_BUILD_ROOT%{perl_vendorlib}
+cp -a awitpt/awitpt $RPM_BUILD_ROOT%{perl_vendorlib}
# cbpolicyd
install -p cbpolicyd cbpadmin database/convert-tsql $RPM_BUILD_ROOT%{_sbindir}
%groupremove policyd
fi
-%triggerin webui -- apache1 < 1.3.37-3, apache1-base
+%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
-%triggerun webui -- apache1 < 1.3.37-3, apache1-base
+%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin webui -- apache < 2.2.0, apache-base
+%triggerin -- apache < 2.2.0, apache-base
%webapp_register httpd %{_webapp}
-%triggerun webui -- apache < 2.2.0, apache-base
+%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
-%triggerin webui -- lighttpd
+%triggerin -- lighttpd
%webapp_register lighttpd %{_webapp}
-%triggerun webui -- lighttpd
+%triggerun -- lighttpd
%webapp_unregister lighttpd %{_webapp}
%files
%defattr(644,root,root,755)
-%doc AUTHORS CHANGELOG INSTALL TODO WISHLIST
+%doc AUTHORS INSTALL TODO WISHLIST
%doc database/*.sql
%doc contrib/amavisd-new
%attr(755,root,root) %{_sbindir}/cbpadmin
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
%dir %attr(775,root,policyd) /var/run/%{name}
+%dir %attr(775,root,policyd) /var/log/%{name}
/usr/lib/tmpfiles.d/%{name}.conf
%files -n perl-cbp
%defattr(644,root,root,755)
%{perl_vendorlib}/cbp
+%files -n perl-awitpt
+%defattr(644,root,root,755)
+%{perl_vendorlib}/awitpt
+
+
%files webui
%defattr(644,root,root,755)
%dir %attr(750,root,http) %{_webapps}/%{_webapp}