]> git.pld-linux.org Git - packages/policyd.git/commitdiff
- up to 2.1.x line (devel) - accountig feature most importanted (not DEVEL
authorŁukasz Chrustek <lukasz@chrustek.net>
Tue, 25 Dec 2012 00:37:01 +0000 (01:37 +0100)
committerŁukasz Chrustek <lukasz@chrustek.net>
Tue, 25 Dec 2012 00:37:01 +0000 (01:37 +0100)
  available in earlier versions)

config.patch
policyd.spec

index 9fc1aaf294aae752d0480f9ce11dca4055c0911c..14ab8779e0b21b025d185a50c56f448e00f36207 100644 (file)
@@ -1,17 +1,31 @@
---- 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
index 24421a6742a31d5c66c5e5e409b4756b65b2ace2..a3d1d721049906baa9d2831bac5a7777c75b0fca 100644 (file)
@@ -2,12 +2,13 @@
 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
@@ -26,6 +27,7 @@ Requires(postun):     /usr/sbin/groupdel
 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)
@@ -63,6 +65,14 @@ Group:               Development/Languages/Perl
 %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
@@ -76,7 +86,7 @@ Requires:     webserver(php)
 Policyd Web Administration.
 
 %prep
-%setup -q -n cluebringer-%{version}
+%setup -q -n cluebringer-v%{version}-%{rel}
 %patch0 -p1
 
 %build
@@ -95,11 +105,12 @@ done
 %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}
@@ -140,27 +151,27 @@ if [ "$1" = "0" ]; then
        %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
@@ -171,12 +182,18 @@ fi
 %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}
This page took 0.125068 seconds and 4 git commands to generate.