From: Elan Ruusamäe Date: Sun, 7 May 2006 16:40:23 +0000 (+0000) Subject: - config dspam server by default listen only local socket X-Git-Tag: auto/ti/dspam-3_8_0-0_1~14 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdspam.git;a=commitdiff_plain;h=e087d69ce1c00d5ecbc38cbc596478b2d91f35ca - config dspam server by default listen only local socket - clean ups, fixed /var permissions Changed files: dspam.spec -> 1.60 --- diff --git a/dspam.spec b/dspam.spec index 1a06be7..177e573 100644 --- a/dspam.spec +++ b/dspam.spec @@ -2,13 +2,16 @@ # - support for libdclassify # - oracle driver # - messages from default install of cron with mysql driver Memory fault +# - installing dspam and dspam-client on same host causes +# /etc/dspam.conf being owned by both packages and .rpmnew files being +# created. move the config to -libs? -common? patch code to use +# different config for client? # # Conditional build: %bcond_without mysql # disable MySQL storage driver %bcond_without pgsql # disable PostgreSQL storage driver %bcond_without sqlite # disable SQLite3 storage driver %bcond_without db # disable BerkeleyDB storage driver -%bcond_without daemon # disable daemon mode %bcond_with mysql40 # use with mysql 4.0 # %include /usr/lib/rpm/macros.perl @@ -16,12 +19,13 @@ Summary: A library and Mail Delivery Agent for Bayesian spam filtering Summary(pl): Biblioteka i MDA do bayesowskiego filtrowania spamu Name: dspam Version: 3.6.5 -Release: 0.20 +Release: 0.24 License: GPL Group: Applications/Mail Source0: http://www.nuclearelephant.com/projects/dspam/sources/%{name}-%{version}.tar.gz # Source0-md5: da4f0e00633bff49d71fde418caaf14b Patch0: %{name}-webui.patch +Patch1: %{name}-config.patch Source1: %{name}.init Source2: %{name}-apache.conf URL: http://www.nuclearelephant.com/projects/dspam/ @@ -243,6 +247,7 @@ password file will suffice for most common installs. %prep %setup -q %patch0 -p1 +%patch1 -p1 sed -i -e 's#\-static##g' src/Makefile* src/*/Makefile* %{?with_mysql40:sed -i -e 's#40100#99999#g' src/mysql_drv.c} @@ -301,14 +306,13 @@ hash_drv %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{/var/run/dspam,/etc/{rc.d/init.d,sysconfig}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/{var/run/dspam,/etc/{rc.d/init.d,sysconfig}} install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dspam -# ln -s /var/log/dspam $RPM_BUILD_ROOT/var/lib/%{name}/log # install devel files @@ -316,9 +320,7 @@ install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/{log,lib}/%{name}} install src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name} # provide maintenance scripts -install -d $RPM_BUILD_ROOT/etc/cron.daily -install -d $RPM_BUILD_ROOT/etc/cron.weekly - +install -d $RPM_BUILD_ROOT/etc/cron.{daily,weekly} cat > $RPM_BUILD_ROOT/etc/cron.daily/%{name} <