Commit 35426219 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Tagged v2.0.6

parent 904e9cf1
------------------------------------------------------------------------
r405 | nkukard | 2009-01-02 16:16:28 +0000 (Fri, 02 Jan 2009) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/modules/Quotas.pm
M /trunk/cbp/modules/Quotas.pm
* Fixed bug in quotas where non-existant counters were being used
------------------------------------------------------------------------
r386 | nkukard | 2008-11-11 20:45:40 +0000 (Tue, 11 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/webui/greylisting-change.php
M /trunk/webui/greylisting-change.php
* Fixed the rest of the options in greylisting not working with inherit option set
------------------------------------------------------------------------
r385 | nkukard | 2008-11-11 20:09:10 +0000 (Tue, 11 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/webui/greylisting-change.php
M /trunk/webui/greylisting-change.php
* Fixed same inherit bug for percentages
------------------------------------------------------------------------
r384 | nkukard | 2008-11-11 19:57:21 +0000 (Tue, 11 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/webui/greylisting-change.php
M /trunk/webui/greylisting-change.php
* Fixed changing of use autowhitelist/blacklist to work properly with changing to "Inherit"
------------------------------------------------------------------------
r382 | nkukard | 2008-11-11 19:32:27 +0000 (Tue, 11 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/webui/greylisting-add.php
M /branches/v2.0.x/webui/greylisting-change.php
M /trunk/webui/greylisting-add.php
M /trunk/webui/greylisting-change.php
* Fixed disabling of greylisting, it showed up always as inherited and not disabled
------------------------------------------------------------------------
r375 | nkukard | 2008-11-10 20:16:56 +0000 (Mon, 10 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/INSTALL
M /trunk/INSTALL
* Added requirement of Mail::SPF for SPF support
------------------------------------------------------------------------
r374 | nkukard | 2008-11-10 19:42:33 +0000 (Mon, 10 Nov 2008) | 3 lines
Changed paths:
M /branches/v2.0.x/INSTALL
M /trunk/INSTALL
* Added requirement for database server
* Added requirement for PHP v5
------------------------------------------------------------------------
r373 | nkukard | 2008-11-10 05:33:09 +0000 (Mon, 10 Nov 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/policies.pm
M /trunk/cbp/policies.pm
* Fixed bug where non-SASL authenticated email was being matched by the $* specification
------------------------------------------------------------------------
r371 | nkukard | 2008-10-30 09:47:45 +0000 (Thu, 30 Oct 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/modules/Quotas.pm
M /trunk/cbp/modules/Quotas.pm
* Fixed bug where the last quota limit was reported as the one generating a verdict regardless of which one before it actually did
------------------------------------------------------------------------
r370 | nkukard | 2008-10-30 09:44:53 +0000 (Thu, 30 Oct 2008) | 3 lines
Changed paths:
M /branches/v2.0.x/cbp/modules/Quotas.pm
* Sucked in r369 from trunk, reversion of r327
- We already output logs regarding the verdict, no use doing it again
------------------------------------------------------------------------
r365 | nkukard | 2008-10-17 06:30:23 +0000 (Fri, 17 Oct 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/webui/policy-add.php
M /trunk/webui/policy-add.php
* Fix error beign displayed when policy priority is 0
------------------------------------------------------------------------
r364 | nkukard | 2008-10-17 06:20:53 +0000 (Fri, 17 Oct 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/policies.pm
M /trunk/cbp/policies.pm
* Initialize recipient data to an empty hash, we may not even get any recipient data and we don't want this to be undefined
------------------------------------------------------------------------
r363 | nkukard | 2008-10-17 06:18:47 +0000 (Fri, 17 Oct 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/policies.pm
M /trunk/cbp/policies.pm
* Ignore recipient data in the DB if its null
------------------------------------------------------------------------
r362 | nkukard | 2008-10-17 05:58:56 +0000 (Fri, 17 Oct 2008) | 2 lines
Changed paths:
M /branches/v2.0.x/cbp/policies.pm
M /trunk/cbp/policies.pm
* Make the CIDR value for IP specifications optional, an IP without it now defaults to /32
...@@ -33,7 +33,7 @@ our (@ISA,@EXPORT,@EXPORT_OK); ...@@ -33,7 +33,7 @@ our (@ISA,@EXPORT,@EXPORT_OK);
use constant { use constant {
VERSION => "2.0.6a", VERSION => "2.0.6",
}; };
# vim: ts=4 # vim: ts=4
......
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
# this path is hardcoded
%define cblibdir %{_libdir}/policyd-2.0
%define version 2.0.6
%define release 1
%define tarver %{version}
Summary: Postfix Policy Daemon
Name: cluebringer
Version: %{version}
Release: %{release}
License: GPLv2
Group: System/Daemons
URL: http://www.policyd.org
Source0: http://downloads.sourceforge.net/policyd/%{name}-%{tarver}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Provides: cbpolicyd
Provides: policyd = %{version}
Obsoletes: policyd
Requires: perl(Net::Server), perl(Config::IniFiles), perl(Cache::FastMmap), httpd
%description
Policyd v2 (codenamed "cluebringer") is a multi-platform policy server
for popular MTAs. This policy daemon is designed mostly for large
scale mail hosting environments. The main goal is to implement as many
spam combating and email compliance features as possible while at the
same time maintaining the portability, stability and performance
required for mission critical email hosting of today. Most of the
ideas and methods implemented in Policyd v2 stem from Policyd v1
as well as the authors' long time involvement in large scale mail
hosting industry.
%prep
%setup -q -n %{name}-%{tarver}
# hack to prevent rpmbuild from automatically detecting "requirements" that
# aren't actually external requirements. See https://fedoraproject.org/wiki/Packaging/Perl#In_.25prep_.28preferred.29
cat << EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* | sed -e '/perl(cbp::/d'
EOF
%define __perl_requires %{_builddir}/%{name}-%{tarver}/%{name}-req
chmod +x %{__perl_requires}
%build
cd database
for db_type in mysql4 mysql pgsql sqlite; do
./convert-tsql ${db_type} core.tsql > policyd.${db_type}.sql
for file in `find . -name \*.tsql -and -not -name core.tsql`; do
./convert-tsql ${db_type} ${file}
done >> policyd.${db_type}.sql
cd whitelists
./parse-checkhelo-whitelist >> policyd.${db_type}.sql
./parse-greylisting-whitelist >> policyd.${db_type}.sql
cd ..
done
%install
rm -rf $RPM_BUILD_ROOT
# cbpolicyd
mkdir -p $RPM_BUILD_ROOT%{cblibdir}
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/policyd
cp -R cbp $RPM_BUILD_ROOT%{cblibdir}
install -m 755 cbpolicyd cbpadmin database/convert-tsql $RPM_BUILD_ROOT%{_sbindir}
install -m 644 cluebringer.conf $RPM_BUILD_ROOT%{_sysconfdir}/policyd/cluebringer.conf
install -m 755 contrib/initscripts/Fedora/cbpolicyd $RPM_BUILD_ROOT%{_initrddir}
# Webui
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/webui
mkdir -p $RPM_BUILD_ROOT%{apacheconfdir}
cp -R webui/* $RPM_BUILD_ROOT%{_datadir}/%{name}/webui/
install -m 644 contrib/httpd/cluebringer-httpd.conf $RPM_BUILD_ROOT%{apacheconfdir}/cluebringer.conf
# Move config into /etc
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/webui/includes/config.php $RPM_BUILD_ROOT%{_sysconfdir}/policyd/webui.conf
ln -s %{_sysconfdir}/policyd/webui.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/webui/includes/config.php
chmod 0640 $RPM_BUILD_ROOT%{_sysconfdir}/policyd/webui.conf
# Docdir
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/contrib
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/database
install -m 644 AUTHORS INSTALL LICENSE TODO WISHLIST CHANGELOG $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -R contrib $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/contrib/amavisd-new
install -m 644 database/*.sql $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/database
%post
/sbin/chkconfig --add cbpolicyd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}-%{version}
%{cblibdir}/
%{_sbindir}/cbpolicyd
%{_sbindir}/cbpadmin
%{_sbindir}/convert-tsql
%{_initrddir}/cbpolicyd
%dir %{_datadir}/%{name}
%attr(-,root,apache) %{_datadir}/%{name}/webui/
%dir %{_sysconfdir}/policyd
%config(noreplace) %{_sysconfdir}/policyd/cluebringer.conf
%attr(-,root,apache) %config(noreplace) %{_sysconfdir}/policyd/webui.conf
%config(noreplace) %{apacheconfdir}/cluebringer.conf
%changelog
* Tue Jan 06 2009 Nigel Kukard <nkukard@lbsd.net>
- 2.0.6 release
* Wed Nov 19 2008 Nigel Kukard <nkukard@lbsd.net>
- Various updates and changes
* Tue Nov 18 2008 Christopher St Pierre <stpierre@NebrWesleyan.edu> -
- Initial build.
# Policyd v2 (codenamed "cluebringer") is a multi-platform policy server
# for popular MTAs. This policy daemon is designed mostly for large
# scale mail hosting environments. The main goal is to implement as many
# spam combating and email compliance features as possible while at the
# same time maintaining the portability, stability and performance
# required for mission critical email hosting of today. Most of the
# ideas and methods implemented in Policyd v2 stem from Policyd v1
# as well as the authors' long time involvement in large scale mail
# hosting industry.
Alias /cluebringer /usr/share/cluebringer/webui
<Directory /usr/share/cluebringer/webui>
# Comment out the following 3 lines to make web ui accessible from anywhere
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
#!/bin/bash
#
# chkconfig: - 75 25
# description: Postfix Policy Daemon
# processname: httpd
# config: /etc/policyd/cluebringer.conf
# pidfile: /var/run/cbpolicyd.pid
# processname: cbpolicyd
# source function library
. /etc/init.d/functions
# Get config.
. /etc/sysconfig/network
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
RETVAL=0
start() {
echo -n $"Starting cbpolicyd: "
daemon /usr/sbin/cbpolicyd --config /etc/policyd/cluebringer.conf
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cbpolicyd
return $RETVAL
}
stop() {
echo -n $"Shutting down cbpolicyd: "
killproc cbpolicyd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cbpolicyd
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
condrestart)
if [ -f /var/lock/subsys/cbpolicyd ]; then
restart
fi
;;
status)
status cbpolicyd
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
exit 1
esac
exit $RETVAL
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment