diff dnsbl.spec.in @ 41:d95af8129dfa

updates for 3.2, changing file layout, add queueid to messages
author carl
date Mon, 05 Jul 2004 10:52:02 -0700
parents
children acbe44bbba22
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dnsbl.spec.in	Mon Jul 05 10:52:02 2004 -0700
@@ -0,0 +1,95 @@
+Summary: DNSBL Sendmail Milter
+Name: dnsbl
+Version: 3.1
+Release: 1
+Copyright: GPL
+Group: System Environment/Daemons
+Source: http://www.five-ten-sg.com/util/dnsbl.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}
+
+BuildRequires:  sendmail-devel >= 8.12.1
+Requires(pre):  /usr/sbin/groupadd
+Requires(pre):  /usr/sbin/useradd
+Requires(pre):  /usr/bin/getent
+Requires(postun):       /usr/sbin/userdel
+Requires(postun):       /usr/sbin/groupdel
+Requires(post,preun):   /sbin/chkconfig
+Requires:       sendmail
+
+
+%description
+We present here a mechanism whereby the backup mail server can use the correct set of DNSBLs for each recipient for each message. As a side-effect, it gives us the ability to customize the set of DNSBLs on a per-recipient basis, so that fred@example.com could use SPEWS and the SBL, where all other users @example.com use only the SBL.
+
+This milter will also decode (base64, mime, html entity, url encodings) and scan for HTTP and HTTPS URLs and bare hostnames in the body of the mail. If any of those host names have A or NS records on the SBL (or a single configurable DNSBL), the mail will be rejected unless previously whitelisted. This milter also counts the number of invalid HTML tags, and can reject mail if that count exceeds your specified limit.
+
+The DNSBL milter reads a text configuration file (dnsbl.conf) on startup, and whenever the config file (or any of the referenced include files) is changed. The entire configuration file is case insensitive.
+
+%prep
+# %setup -q -n Zope-%{zope_version}
+# %patch0 -p1
+# %patch1 -p1
+
+%setup
+
+
+%build
+pwd
+g++ -c $CXXFLAGS -pthread dnsbl.cpp
+g++ -o dnsbl dnsbl.o /usr/lib/libresolv.a -lmilter -pthread
+
+%install
+# hoisted from install.bash
+#DST=/var/dnsbl
+DST=%{buildroot}
+if [ "%{buildroot}" = "/" -o -z "%{buildroot}" ] ; then
+	echo sorry, you probably do not want me to delete the old buildroot at %{buildroot}
+	exit 1
+fi
+
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/etc/dnsbl
+
+install -m 644 dnsbl.conf %{buildroot}/etc/dnsbl/dnsbl.conf
+install -m 644 html-tags.conf %{buildroot}/etc/dnsbl/html-tags.conf
+install -m 644 tld.conf %{buildroot}/etc/dnsbl/tld.conf
+
+mkdir -p %{buildroot}/usr/sbin
+install -m 755 dnsbl %{buildroot}/usr/sbin/dnsbl
+
+mkdir -p %{buildroot}/etc/init.d
+install -m 755 dnsbl.rc %{buildroot}/etc/init.d/dnsbl
+
+mkdir -p %{buildroot}/var/run/dnsbl
+
+%pre
+/usr/bin/getent passwd dnsbl ||
+  useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
+%post
+/sbin/chkconfig --add dnsbl
+/sbin/chkconfig dnsbl on
+/sbin/service dnsbl start
+
+# [JOG] TODO: spew out a message indicating what should be added to sendmail.mc
+
+%preun
+if [ $1 -eq 0 ]; then
+   /sbin/service dnsbl stop || :
+   /sbin/chkconfig --del dnsbl
+   userdel dnsbl || :
+fi
+
+%postun
+
+%clean
+
+%files
+%defattr(-,root,root)
+%config /etc/dnsbl/
+/etc/init.d/dnsbl
+/usr/sbin/dnsbl
+%dir %attr(0750,dnsbl,root) /var/run/dnsbl
+
+%changelog
+Revision 1.1  2004/06/30 10:08:48  jgunkel@palliser.ca
+Initial revision of spec file. Need to add a better description, docs and a sendmail.mc message
+