[pkg-horde] [COMMIT reg sam--sid--0--patch-1] Import horde-sam 0.1-1

Lionel Elie Mamane lmamane at costa.debian.org
Wed Feb 1 00:25:02 UTC 2006


A/ debian
A/ debian/patches
A/ debian/patches/.arch-ids
A/ debian/.arch-ids
A  debian/.arch-ids/=id
A  debian/dirs
A  debian/patches/00list
A  debian/patches/.arch-ids/=id
A  debian/docs
A  debian/patches/.arch-ids/01_spamd_ldap-bug.dpatch.id
A  debian/.arch-ids/dirs.id
A  debian/changelog
A  debian/.arch-ids/README.Debian.id
A  debian/rules
A  debian/.arch-ids/docs.id
A  debian/patches/.arch-ids/02_backends.php.dist-corr.dpatch.id
A  debian/.arch-ids/changelog.id
A  debian/.arch-ids/compat.id
A  debian/.arch-ids/control.id
A  debian/control
A  debian/patches/.arch-ids/00list.id
A  debian/substvars
A  {arch}/sam/sam--sid/sam--sid--0/pkg-horde-hackers at lists.alioth.debian.org--2006/patch-log/patch-1
A  debian/.arch-ids/copyright.id
A  debian/.arch-ids/substvars.id
A  debian/copyright
A  debian/.arch-ids/rules.id
A  debian/README.Debian
A  debian/patches/01_spamd_ldap-bug.dpatch
A  debian/patches/02_backends.php.dist-corr.dpatch
A  debian/compat

--- /dev/null
+++ debian/.arch-ids/=id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20878.0


--- /dev/null
+++ debian/dirs
@@ -0,0 +1,2 @@
+usr/share/horde3/sam
+etc/horde/sam


--- /dev/null
+++ debian/patches/00list
@@ -0,0 +1,2 @@
+01_spamd_ldap-bug
+02_backends.php.dist-corr


--- /dev/null
+++ debian/patches/.arch-ids/=id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20886.0


--- /dev/null
+++ debian/docs
@@ -0,0 +1,2 @@
+README
+docs/*


--- /dev/null
+++ debian/patches/.arch-ids/01_spamd_ldap-bug.dpatch.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20888.0


--- /dev/null
+++ debian/.arch-ids/dirs.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20884.0


--- /dev/null
+++ debian/changelog
@@ -0,0 +1,10 @@
+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) <reg at evolix.fr>  Mon, 30 Jan 2006 01:16:11 +0100
+


--- /dev/null
+++ debian/.arch-ids/README.Debian.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20879.0


--- /dev/null
+++ debian/rules
@@ -0,0 +1,99 @@
+#!/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
+
+		#### create htaccess  to restrict acess by web ####
+		echo "Deny from all" > debian/horde-sam/etc/horde/sam/.htaccess
+
+        #### 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 at define('HORDE_BASE'.*;@define\('HORDE_BASE', '/usr/share/horde3\'\);@" |\
+				sed -e "s at 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
+


--- /dev/null
+++ debian/.arch-ids/docs.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20885.0


--- /dev/null
+++ debian/patches/.arch-ids/02_backends.php.dist-corr.dpatch.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20889.0


--- /dev/null
+++ debian/.arch-ids/control.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20882.0


--- /dev/null
+++ debian/.arch-ids/compat.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20881.0


--- /dev/null
+++ debian/.arch-ids/changelog.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20880.0


--- /dev/null
+++ debian/control
@@ -0,0 +1,22 @@
+Source: horde-sam
+Section: web
+Priority: optional
+Maintainer: Debian Horde Maintainers <pkg-horde-hackers at lists.alioth.debian.org>
+Uploaders: Lionel Elie Mamane <lionel at mamane.lu>, Gregory Colpart (evolix) <reg at evolix.fr>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.2
+
+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.
+


--- /dev/null
+++ debian/patches/.arch-ids/00list.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20887.0


--- /dev/null
+++ {arch}/sam/sam--sid/sam--sid--0/pkg-horde-hackers at lists.alioth.debian.org--2006/patch-log/patch-1
@@ -0,0 +1,31 @@
+Revision: sam--sid--0--patch-1
+Archive: pkg-horde-hackers at lists.alioth.debian.org--2006
+Creator: Gregory Colpart <reg at evolix.fr>
+Date: Wed Feb  1 01:20:38 CET 2006
+Standard-date: 2006-02-01 00:20:38 GMT
+New-files: debian/.arch-ids/=id
+    debian/.arch-ids/README.Debian.id
+    debian/.arch-ids/changelog.id
+    debian/.arch-ids/compat.id debian/.arch-ids/control.id
+    debian/.arch-ids/copyright.id debian/.arch-ids/dirs.id
+    debian/.arch-ids/docs.id debian/.arch-ids/rules.id
+    debian/.arch-ids/substvars.id debian/README.Debian
+    debian/changelog debian/compat debian/control
+    debian/copyright debian/dirs debian/docs
+    debian/patches/.arch-ids/00list.id
+    debian/patches/.arch-ids/01_spamd_ldap-bug.dpatch.id
+    debian/patches/.arch-ids/02_backends.php.dist-corr.dpatch.id
+    debian/patches/.arch-ids/=id debian/patches/00list
+    debian/patches/01_spamd_ldap-bug.dpatch
+    debian/patches/02_backends.php.dist-corr.dpatch
+    debian/rules debian/substvars
+New-directories: debian debian/.arch-ids debian/patches
+    debian/patches/.arch-ids
+New-patches: pkg-horde-hackers at lists.alioth.debian.org--2006/sam--sid--0--patch-1
+Summary: Import horde-sam 0.1-1
+Keywords: 
+
+Imported horde-sam-0.1
+into pkg-horde-hackers at lists.alioth.debian.org--2006/sam--sid--0
+
+


--- /dev/null
+++ debian/substvars
@@ -0,0 +1,1 @@
+shlibs:Depends=libc6 (>= 2.3.5-1)


--- /dev/null
+++ debian/.arch-ids/copyright.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20883.0


--- /dev/null
+++ debian/.arch-ids/substvars.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20891.0


--- /dev/null
+++ debian/copyright
@@ -0,0 +1,28 @@
+This package was debianized by Gregory Colpart (evolix) <reg at evolix.fr>
+ on Tue, 13 Dec 2005 17:34:57 +0100.
+
+It was downloaded from
+            http://cvs.horde.org/sam/
+
+
+Upstream Authors:
+        See /usr/share/doc/horde-sam/CREDITS
+
+Copyright:
+
+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.
+


--- /dev/null
+++ debian/.arch-ids/rules.id
@@ -0,0 +1,1 @@
+Gregory Colpart <reg at evolix.fr> Wed Feb  1 01:15:56 2006 20890.0


--- /dev/null
+++ 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!


--- /dev/null
+++ debian/patches/01_spamd_ldap-bug.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_spamd_ldap-bug.dpatch by Gregory Colpart (evolix) <reg at evolix.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad horde-sam-0.1~/lib/Driver/spamd_ldap.php horde-sam-0.1/lib/Driver/spamd_ldap.php
+--- horde-sam-0.1~/lib/Driver/spamd_ldap.php	2006-01-30 00:47:55.000000000 +0100
++++ horde-sam-0.1/lib/Driver/spamd_ldap.php	2006-01-30 01:26:56.000000000 +0100
+@@ -30,7 +30,7 @@
+  * @since   SAM 0.1
+  * @package Sam
+  */
+-class SAM_Driver_spamd_ldap extends SAM_Driver {
++class SAM_Driver_spamd_ldap extends SAM_Driver_spamd {
+ 
+     /**
+      * Handle for the current LDAP connection.


--- /dev/null
+++ debian/patches/02_backends.php.dist-corr.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_backends.php.dist-corr.dpatch by Gregory Colpart (evolix) <reg at evolix.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad horde-sam-0.1~/config/backends.php.dist horde-sam-0.1/config/backends.php.dist
+--- horde-sam-0.1~/config/backends.php.dist	2006-01-30 01:21:29.000000000 +0100
++++ horde-sam-0.1/config/backends.php.dist	2006-01-30 01:30:33.000000000 +0100
+@@ -57,13 +57,13 @@
+         'basedn' => 'ou=users,dc=example,dc=com',
+         'attribute' => 'spamassassinConfig',
+         'uid' => 'uid',
+-        ),
+     'defaults' => array(
+         'hit_level' => '5',
+         'subject_tag' => '***SPAM***',
+         'rewrite_sub' => 1,
+         'report_safe' => 1,
+         'skip_rbl' => 1,
++        ),
+     ),
+ );
+ 


--- /dev/null
+++ debian/compat
@@ -0,0 +1,1 @@
+4




More information about the pkg-horde-hackers mailing list