[users] amavisd-new package missing helper programs

Ralph Angenendt ra+rpmforge at br-online.de
Fri Nov 2 15:20:20 CET 2007


Moin,

when trying to troubleshoot one of our amavisd-new setups, I found out
that amavisd-nanny and amavisd-agent are missing from the amavisd-new
package in rpmforge.

So I split out an additional package "amavisd-new-utils" out of the spec
file which contains amavisd-nanny, amavisd-agent, amavisd-release and
p0f-analyzer.pl.

Patch for the spec file is attached.

Cheers,

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...80300 München | ....to right-justify any idea, even one
Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other
Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
--- amavisd-new.spec.org	2007-11-02 14:17:40.000000000 +0100
+++ amavisd-new.spec	2007-11-02 15:18:15.000000000 +0100
@@ -12,7 +12,7 @@
 Summary: Mail virus-scanner
 Name: amavisd-new
 Version: 2.5.2
-Release: 1.rf
+Release: 2.rf
 License: GPL
 Group: System Environment/Daemons
 URL: http://www.ijs.si/software/amavisd/
@@ -56,6 +56,14 @@
 %description milter
 The Amavisd-new sendmail-milter Daemon
 
+%package utils
+Summary: amavisd-new helper programs
+Group: Applications/System
+Requires: amavisd-new = %{version}-%{release}
+
+%description utils
+Helper programs for amavisd new to monitor your running amavisd-new installation.
+
 %prep
 %setup -n amavisd-new-%{version}
 
@@ -226,10 +234,26 @@
 		s|^#* *(\$db_home\s+=.*)$|$1|;
 	' amavisd.conf
 
+%{__perl} -pi.orig -e '
+        s|^(my\(\$db_home\))\s*=.*$|$1 = "%{_localstatedir}/amavis/db";|;
+    ' amavisd-nanny
+
+%{__perl} -pi.orig -e '
+        s|/var/amavis/db|%{_localstatedir}/amavis/db|;
+    ' amavisd-agent
+
+%{__perl} -pi.orig -e '
+        s|^(\s\$socketname)\s*=.*$|$1 = "%{_localstatedir}/amavis/amavisd.sock";|;
+    ' amavisd-release
+
 %{__install} -d -m0700 %{buildroot}%{_localstatedir}/virusmails/
 %{__install} -d -m0755 %{buildroot}%{_localstatedir}/amavis/{db,tmp,var}/
 
 %{__install} -Dp -m0755 amavisd %{buildroot}%{_sbindir}/amavisd
+%{__install} -Dp -m0755 amavisd-nanny %{buildroot}%{_sbindir}/amavisd-nanny
+%{__install} -Dp -m0755 amavisd-agent %{buildroot}%{_sbindir}/amavisd-agent
+%{__install} -Dp -m0755 amavisd-release %{buildroot}%{_sbindir}/amavisd-release
+%{__install} -Dp -m0755 p0f-analyzer.pl %{buildroot}%{_sbindir}/p0f-analyzer.pl
 %{__install} -Dp -m0755 amavisd.sysv %{buildroot}%{_initrddir}/amavisd
 %{__install} -Dp -m0700 amavisd.conf %{buildroot}%{_sysconfdir}/amavisd.conf
 %{__install} -Dp -m0644 LDAP.schema %{buildroot}%{_sysconfdir}/openldap/schema/amavisd-new.schema
@@ -315,6 +339,13 @@
 %{_sbindir}/amavis
 %{_sbindir}/amavis-milter
 
+%files utils
+%defattr(-, root, root, 0755)
+%{_sbindir}/amavisd-nanny
+%{_sbindir}/amavisd-agent
+%{_sbindir}/amavisd-release
+%{_sbindir}/p0f-analyzer.pl
+
 %changelog
 * Thu Jun 28 2007 Dag Wieers <dag at wieers.com> - 2.5.2-1 - 5469+/dag
 - Updated to release 2.5.2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.repoforge.org/pipermail/users/attachments/20071102/2dca28a2/attachment.sig>


More information about the users mailing list