--- horde-sam-0.1+cvs20080316.orig/debian/patches/00list +++ horde-sam-0.1+cvs20080316/debian/patches/00list @@ -0,0 +1 @@ +# empty patches list but I let dpatch for now... --- horde-sam-0.1+cvs20080316.orig/debian/README.Debian +++ horde-sam-0.1+cvs20080316/debian/README.Debian @@ -0,0 +1,104 @@ +SAM for Debian +-------------- + + +SAM module is used with SpamAssassin or Amavisd-new and user +preferences can be stored in SQL database, LDAP storage or on +an FTP server. + +Possibilities +------------- + +- SpamAssassin and LDAP storage +- SpamAssassin and SQL storage (MySQL or PostgreSQL) +- SpamAssassin and FTP storage +- Amavisd-new and SQL storage (MySQL or PostgreSQL) + +Note that Amavisd-new and LDAP storage is not (yet?) possible. + + +PREREQUISITES +------------- + +To function properly, the SpamAssassin Module requires the following: + + * A working Horde IMP installation. + + * SpamAssassin or Amavisd-new + +CONFIGURING The SpamAssassin Module +----------------------------------- + +1. Configuring Horde for the SpamAssassin Module + + a. Register the application + + In /etc/horde/horde3/registry.php, find the applications['sam'] stanza. + The 'show' parameter should already be marked '=> true'. + +2. Creating the database table + + The specific steps to create the SpamAssassin Module database table depend + on which database you've chosen to use. + + Refer to SpamAssassin or Amavisd-new docs. + +3. Configuring The SpamAssassin Module. + + To configure the SpamAssassin Module, change to the config directory of the + installed distribution, and make copies of all of the configuration + "dist" files without the "dist" suffix: + + cd /etc/horde/sam + for foo in *.dist; do cp $foo `basename $foo .dist`; done + + Documentation on the format of those files can be found in each file. + + You must at least configure the SpamAssassin Module in conf.php. + + The other filesneed only be modified if you wish + to customize the SpamAssassin Module's appearance or behavior, as the + defaults will be correct for most sites. + + Note for international users: The SpamAssassin Module uses GNU gettext to + provide local translations of text displayed by applications; the + translations are found in the po/ directory. If a translation is not yet + available for your locale (and you wish to create one), or if you're having + trouble using a provided translation, please see the + /usr/share/doc/horde3/TRANSLATIONS.gz file for instructions. + +4. Testing The SpamAssassin Module + + Use The SpamAssassin Module to change the default user configuration of + SpamAssassin. Test at least the following: + + - Add a new Required Hits value. + - Modify an existing Required Hits setting. + + +OBTAINING SUPPORT +----------------- + +If you encounter problems with the SpamAssassin Module, help is available! + +The Horde Frequently Asked Questions List (FAQ), is available on the Web +at + + http://www.horde.org/faq/ + +The Horde Project runs a number of mailing lists, for individual +applications and for issues relating to the project as a whole. +Information, archives, and subscription information can be found at + + http://www.horde.org/mail/ + +Lastly, Horde developers, contributors and users also make occasional +appearances on IRC, on the channel #horde on the Freenode Network +(irc.freenode.net). + +Please keep in mind that the SpamAssassin Module is free software written by +volunteers. For information on reasonable support expectations, please read + + http://www.horde.org/support.php + +Thanks for using the SpamAssassin Module! --- horde-sam-0.1+cvs20080316.orig/debian/compat +++ horde-sam-0.1+cvs20080316/debian/compat @@ -0,0 +1 @@ +4 --- horde-sam-0.1+cvs20080316.orig/debian/copyright +++ horde-sam-0.1+cvs20080316/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Gregory Colpart (evolix) + on Tue, 13 Dec 2005 17:34:57 +0100. + +It was downloaded from + http://cvs.horde.org/sam/ + +Upstream Authors: Chris Bowlby , Max Kalika , Marc Fournier , Devin Drown . See all authors in /usr/share/doc/horde-sam/CREDITS. + +Copyright 2002-2007 Chris Bowlby + +lib/Driver/spamd*.php: +Copyright 2003-2007 Chris Bowlby +Copyright 2003-2008 The Horde Project (http://www.horde.org/) + +lib/Forms/*.php: +Copyright 2003-2008 The Horde Project (http://www.horde.org/) + +Licence: Sam module is licenced under GPL2 license. + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License is available as +/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution or +on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can +also obtain it by writing to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + --- horde-sam-0.1+cvs20080316.orig/debian/dirs +++ horde-sam-0.1+cvs20080316/debian/dirs @@ -0,0 +1,2 @@ +usr/share/horde3/sam +etc/horde/sam --- horde-sam-0.1+cvs20080316.orig/debian/docs +++ horde-sam-0.1+cvs20080316/debian/docs @@ -0,0 +1,2 @@ +README +docs/* --- horde-sam-0.1+cvs20080316.orig/debian/substvars +++ horde-sam-0.1+cvs20080316/debian/substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.5-1) --- horde-sam-0.1+cvs20080316.orig/debian/rules +++ horde-sam-0.1+cvs20080316/debian/rules @@ -0,0 +1,113 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# List all Files and directories here that should not be copied +COPY_EXCLUDE=^(configure-stamp|build-stamp|config|COPYING|debian|docs|LICENSE|po|README|scripts|INSTALL)$ + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: patch build-stamp + +build-stamp: configure-stamp + dh_testdir + touch build-stamp + +patch: patch-stamp + +patch-stamp: + touch patch-stamp + dpatch apply-all + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + dh_clean build-stamp configure-stamp +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/horde-sam. + #### copy files #### + for i in $$(ls -1 | egrep -v "$(COPY_EXCLUDE)"); do \ + echo install $$i ; \ + cp -a $$i debian/horde-sam/usr/share/horde3/sam ; \ + done + + #### copy configuration files #### + for i in config/*.dist; do \ + NAME=etc/horde/sam/$$(basename $$i ".dist"); \ + cp -a $$i debian/horde-sam/$$NAME; \ + done + cp config/conf.xml debian/horde-sam/etc/horde/sam/ + touch debian/horde-sam/etc/horde/sam/conf.php + #chown www-data:root debian/horde-sam/etc/horde/sam/conf.php + dh_link etc/horde/sam usr/share/horde3/sam/config + + #### CREDITS file accessible to help viewer #### + mkdir -m 755 debian/horde-sam/usr/share/horde3/sam/docs + cp -a docs/CREDITS debian/horde-sam/usr/share/horde3/sam/docs + + #### create htaccess to restrict acess by web #### + echo "Deny from all" > debian/horde-sam/etc/horde/sam/.htaccess + + #### Remove empty directories (lintian warnings) #### + rmdir debian/horde-sam/usr/share/horde3/sam/themes/horde/graphics/ + rmdir debian/horde-sam/usr/share/horde3/sam/themes/horde/ + rmdir debian/horde-sam/usr/share/horde3/sam/graphics/ + rmdir debian/horde-sam/usr/share/horde3/sam/templates/spamassassin/ + rmdir debian/horde-sam/usr/share/horde3/sam/templates/blacklist/ + rmdir debian/horde-sam/usr/share/horde3/sam/templates/whitelist/ + rmdir debian/horde-sam/usr/share/horde3/sam/templates/menu/ + rmdir debian/horde-sam/usr/share/horde3/sam/templates/index/ + + #### change made for program run with no problems ### + # change HORDE_BASE in php files + # change /usr/local/bin/php to /usr/bin/php + # change SAM_BASE in php files + dh_installexamples + for i in $$(find debian/horde-sam -name "*.php*"); do \ + cat $$i | \ + sed -e "s@define('HORDE_BASE'.*;@define\('HORDE_BASE', '/usr/share/horde3\'\);@" |\ + sed -e "s@define('SAM_BASE'.*;@define\('SAM_BASE', '/usr/share/horde3/sam'\);@" |\ + sed -e "s@/usr/local/bin@/usr/bin@" > $$i.rew; \ + cat $$i.rew > $$i; \ + rm -f $$i.rew; \ + done + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs docs/CHANGES + dh_installdocs -XINSTALL -XCHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + --- horde-sam-0.1+cvs20080316.orig/debian/changelog +++ horde-sam-0.1+cvs20080316/debian/changelog @@ -0,0 +1,26 @@ +horde-sam (0.1+cvs20080316-1) unstable; urgency=low + + [ Gregory Colpart (evolix) ] + * New upstream release. + * Adjust Maintainer: field. + * Remove 01_spamd_ldap-bug.dpatch: merged upstream. + * Remove 02_backends.php.dist-corr.dpatch: merged upstream. + * Update to standards version 3.7.3, no further required changes. + * Remove empty directories (lintian warnings). + * debian/copyright file improvements. + + [ Lionel Elie Mamane ] + * Put debhelper and dpatch in Build-Depends, not B-D-Indep. + + -- Gregory Colpart (evolix) Mon, 17 Mar 2008 00:28:35 +0100 + +horde-sam (0.1-1) unstable; urgency=low + + * Initial release Closes: #206537 + * A typo bug in SA Driver for LDAP storage. + Added patch debian/patches/01_spamd_ldap-bug.dpatch + * Default config for LDAP storage seems to be false. + Added patch debian/patches/02_backends.php.dist-corr.dpatch + + -- Gregory Colpart (evolix) Mon, 30 Jan 2006 01:16:11 +0100 + --- horde-sam-0.1+cvs20080316.orig/debian/control +++ horde-sam-0.1+cvs20080316/debian/control @@ -0,0 +1,22 @@ +Source: horde-sam +Section: web +Priority: optional +Maintainer: Horde Maintainers +Uploaders: Gregory Colpart (evolix) , Lionel Elie Mamane +Build-Depends: debhelper (>= 4.0.0), dpatch +Standards-Version: 3.7.3 + +Package: horde-sam +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, horde3 +Recommends: imp4 +Suggests: ingo1, spamassassin, spamc, amavisd-new +Description: spam module for Horde Framework + SAM is the Horde module permitting to each user to manage his + SpamAssassin or Amavisd-new preferences. For example, it can + authorize to change SpamAssassin user scores, manage blacklist + and whitelist. + . + User preferences can be stored in a variety of backends such + as a SQL database, LDAP storage or on an FTP server. +