OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 17-Oct-2004 14:16:34
Branch: HEAD Handle: 2004101713163400
Added files:
openpkg-src/dspam dspam.patch dspam.spec
Log:
new package: dspam 3.2pr1 (Statistical Anti-Spam Filter)
Summary:
Revision Changes Path
1.1 +158 -0 openpkg-src/dspam/dspam.patch
1.1 +125 -0 openpkg-src/dspam/dspam.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/dspam/dspam.patch
============================================================================
$ cvs diff -u -r0 -r1.1 dspam.patch
--- /dev/null 2004-10-17 14:16:34 +0200
+++ dspam.patch 2004-10-17 14:16:34 +0200
@@ -0,0 +1,158 @@
+Index: Makefile.am
+--- Makefile.am.orig 2004-10-12 19:53:41 +0200
++++ Makefile.am 2004-10-17 12:26:22 +0200
+@@ -102,43 +102,43 @@
+ #
+ # Solaris' ln seems to have a problem with -sf and existing symlinks.
+ install-data-hook:
+- rm -f $(mandir)/man3/dspam_init.3
+- rm -f $(mandir)/man3/dspam_create.3
+- rm -f $(mandir)/man3/dspam_addattribute.3
+- rm -f $(mandir)/man3/dspam_attach.3
+- rm -f $(mandir)/man3/dspam_process.3
+- rm -f $(mandir)/man3/dspam_getsource.3
+- rm -f $(mandir)/man3/dspam_destroy.3
+- rm -f $(mandir)/man3/dspam_detach.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_init.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_create.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_addattribute.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_attach.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_process.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_getsource.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_destroy.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_detach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_init.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_create.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_process.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_detach.3
+
+ uninstall-hook:
+- rm -f $(mandir)/man3/dspam_init.3
+- rm -f $(mandir)/man3/dspam_create.3
+- rm -f $(mandir)/man3/dspam_addattribute.3
+- rm -f $(mandir)/man3/dspam_attach.3
+- rm -f $(mandir)/man3/dspam_process.3
+- rm -f $(mandir)/man3/dspam_getsource.3
+- rm -f $(mandir)/man3/dspam_destroy.3
+- rm -f $(mandir)/man3/dspam_detach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
+
+ install-exec-hook:
+- -if test ! -d $(sysconfdir); then \
+- mkdir -p $(sysconfdir); \
+- chmod 755 $(sysconfdir); \
++ -if test ! -d $(DESTDIR)$(sysconfdir); then \
++ mkdir -p $(DESTDIR)$(sysconfdir); \
++ chmod 755 $(DESTDIR)$(sysconfdir); \
+ fi
+- -if test ! -f $(sysconfdir)/dspam.conf; then \
+- cp dspam.conf $(sysconfdir)/dspam.conf; \
+- chmod 750 $(sysconfdir)/dspam.conf; \
+- chown "$(dspam_owner)" $(sysconfdir)/dspam.conf; \
+- chgrp "$(dspam_group)" $(sysconfdir)/dspam.conf; \
++ -if test ! -f $(DESTDIR)$(sysconfdir)/dspam.conf; then \
++ cp dspam.conf $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chmod 750 $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chown "$(dspam_owner)" $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chgrp "$(dspam_group)" $(DESTDIR)$(sysconfdir)/dspam.conf; \
+ fi
+ -if test x"$(dspam_owner)" != xnone; then \
+ chown "$(dspam_owner)" $(DESTDIR)$(bindir)/dspam; \
+Index: Makefile.in
+--- Makefile.in.orig 2004-10-15 03:49:09 +0200
++++ Makefile.in 2004-10-17 12:27:19 +0200
+@@ -1025,43 +1025,43 @@
+ #
+ # Solaris' ln seems to have a problem with -sf and existing symlinks.
+ install-data-hook:
+- rm -f $(mandir)/man3/dspam_init.3
+- rm -f $(mandir)/man3/dspam_create.3
+- rm -f $(mandir)/man3/dspam_addattribute.3
+- rm -f $(mandir)/man3/dspam_attach.3
+- rm -f $(mandir)/man3/dspam_process.3
+- rm -f $(mandir)/man3/dspam_getsource.3
+- rm -f $(mandir)/man3/dspam_destroy.3
+- rm -f $(mandir)/man3/dspam_detach.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_init.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_create.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_addattribute.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_attach.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_process.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_getsource.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_destroy.3
+- ln -s $(mandir)/man3/libdspam.3 $(mandir)/man3/dspam_detach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_init.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_create.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_process.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ ln -s $(mandir)/man3/libdspam.3 $(DESTDIR)$(mandir)/man3/dspam_detach.3
+
+ uninstall-hook:
+- rm -f $(mandir)/man3/dspam_init.3
+- rm -f $(mandir)/man3/dspam_create.3
+- rm -f $(mandir)/man3/dspam_addattribute.3
+- rm -f $(mandir)/man3/dspam_attach.3
+- rm -f $(mandir)/man3/dspam_process.3
+- rm -f $(mandir)/man3/dspam_getsource.3
+- rm -f $(mandir)/man3/dspam_destroy.3
+- rm -f $(mandir)/man3/dspam_detach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_init.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_create.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_addattribute.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_attach.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_process.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_getsource.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_destroy.3
++ rm -f $(DESTDIR)$(mandir)/man3/dspam_detach.3
+
+ install-exec-hook:
+- -if test ! -d $(sysconfdir); then \
+- mkdir -p $(sysconfdir); \
+- chmod 755 $(sysconfdir); \
++ -if test ! -d $(DESTDIR)$(sysconfdir); then \
++ mkdir -p $(DESTDIR)$(sysconfdir); \
++ chmod 755 $(DESTDIR)$(sysconfdir); \
+ fi
+- -if test ! -f $(sysconfdir)/dspam.conf; then \
+- cp dspam.conf $(sysconfdir)/dspam.conf; \
+- chmod 750 $(sysconfdir)/dspam.conf; \
+- chown "$(dspam_owner)" $(sysconfdir)/dspam.conf; \
+- chgrp "$(dspam_group)" $(sysconfdir)/dspam.conf; \
++ -if test ! -f $(DESTDIR)$(sysconfdir)/dspam.conf; then \
++ cp dspam.conf $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chmod 750 $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chown "$(dspam_owner)" $(DESTDIR)$(sysconfdir)/dspam.conf; \
++ chgrp "$(dspam_group)" $(DESTDIR)$(sysconfdir)/dspam.conf; \
+ fi
+ -if test x"$(dspam_owner)" != xnone; then \
+ chown "$(dspam_owner)" $(DESTDIR)$(bindir)/dspam; \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/dspam/dspam.spec
============================================================================
$ cvs diff -u -r0 -r1.1 dspam.spec
--- /dev/null 2004-10-17 14:16:34 +0200
+++ dspam.spec 2004-10-17 14:16:34 +0200
@@ -0,0 +1,125 @@
+##
+## dspam.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# FIXME: rse: run-time permissions on var directory?
+# FIXME: rse: CGI support?
+
+# package version
+%define V_dist 3.2.pr1
+%define V_opkg 3.2pr1
+
+# package information
+Name: dspam
+Summary: Statistical Anti-Spam Filter
+URL: http://www.nuclearelephant.com/projects/dspam/
+Vendor: Jonathan A. Zdziarski
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Mail
+License: GPL
+Version: %{V_opkg}
+Release: 20041017
+
+# list of sources
+Source0:
http://www.nuclearelephant.com/projects/dspam/sources/dspam-%{V_dist}.tar.gz
+Patch0: dspam.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130
+PreReq: OpenPKG, openpkg >= 20040130
+BuildPreReq: sqlite
+PreReq: sqlite
+AutoReq: no
+AutoReqProv: no
+
+%description
+ DSPAM (as in De-Spam) is an extremely scalable, open-source
+ statistical anti-spam filter. While most commercial solutions only
+ claim a mere 95% accuracy (1 error in 20), a majority of DSPAM users
+ frequently see around 99.95% (1 error in 2000) and can sometimes
+ reach peaks as high as 99.991% (2 errors in 22,786). DSPAM presently
+ functions as both a server-side agent for UNIX email servers and a
+ developer's library for mail clients, other anti-spam tools, and
+ similar projects requiring drop-in spam filtering. DSPAM has been
+ implemented on many large and small scale systems.
+
+%track
+ prog dspam = {
+ version = %{V_dist}
+ url = http://www.nuclearelephant.com/projects/dspam/sources/
+ regex = dspam-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q -n dspam-%{V_dist}
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CXX="%{l_cxx}" \
+ CFLAGS="%{l_cflags -O}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --sysconfdir=%{l_prefix}/etc/dspam \
+ --with-dspam-home=%{l_prefix}/share/dspam \
+ --with-dspam-home-mode=755 \
+ --with-dspam-home-owner="`%{l_shtool} echo -e %u`" \
+ --with-dspam-home-group="`%{l_shtool} echo -e %g`" \
+ --with-dspam-mode=755 \
+ --with-dspam-owner="`%{l_shtool} echo -e %u`" \
+ --with-dspam-group="`%{l_shtool} echo -e %g`" \
+ --with-logdir=%{l_prefix}/var/dspam \
+ --with-storage-driver="sqlite_drv" \
+ --with-sqlite-includes=%{l_prefix}/include \
+ --with-sqlite-libraries=%{l_prefix}/lib \
+ --disable-homedir \
+ --disable-shared \
+ --enable-warnings=no
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
+ $RPM_BUILD_ROOT%{l_prefix}/var/dspam
+ %{l_shtool} subst -e 's;ln -s ;ln $(DESTDIR);g' Makefile
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/dspam/dspam.conf' \
+ '%not %dir %{l_prefix}/lib/pkgconfig'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]