You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by qu...@apache.org on 2004/09/13 21:34:53 UTC
svn commit: rev 45998 - spamassassin/trunk/debian
Author: quinlan
Date: Mon Sep 13 12:34:52 2004
New Revision: 45998
Added:
spamassassin/trunk/debian/
spamassassin/trunk/debian/README.Debian
spamassassin/trunk/debian/changelog
spamassassin/trunk/debian/control
spamassassin/trunk/debian/copyright
spamassassin/trunk/debian/rules (contents, props changed)
spamassassin/trunk/debian/spamassassin.default
spamassassin/trunk/debian/spamassassin.init (contents, props changed)
Log:
bug 3768: add simple Debian packaging files
Added: spamassassin/trunk/debian/README.Debian
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/README.Debian Mon Sep 13 12:34:52 2004
@@ -0,0 +1,5 @@
+This is a simple Debian source package for the SpamAssassin source tree.
+This is not the official Debian package. Use it at your own risk.
+
+It was created using dh-make-perl so it would be easier to build Debian
+packages out of the source tree.
Added: spamassassin/trunk/debian/changelog
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/changelog Mon Sep 13 12:34:52 2004
@@ -0,0 +1,9 @@
+spamassassin (3.0.0-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Daniel Quinlan <qu...@pathname.com> Mon, 13 Sep 2004 12:20:49 -0700
+
+Local variables:
+mode: debian-changelog
+End:
Added: spamassassin/trunk/debian/control
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/control Mon Sep 13 12:34:52 2004
@@ -0,0 +1,29 @@
+Source: spamassassin
+Section: mail
+Priority: optional
+Build-Depends: debhelper (>= 3.0.5), perl (>= 5.6.1), libdigest-sha1-perl
+Maintainer: Apache SpamAssassin <de...@spamassassin.apache.org>
+Standards-Version: 3.5.1
+
+Package: spamassassin
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, libdigest-sha1-perl, libhtml-parser-perl (>= 3.24), libstorable-perl | perl (>= 5.8.0)
+Recommends: libnet-dns-perl, libmail-spf-query-perl
+Suggests: razor (>= 2.40), pyzor, libtime-hires-perl
+Provides: spamassassin, spamc
+Description: Spam detector and markup engine
+ Mail::SpamAssassin is a module to identify spam using several methods
+ including text analysis, internet-based realtime blacklists, statistical
+ analysis, and internet-based hashing algorithms.
+ .
+ Using its rule base, it uses a wide range of heuristic tests on mail headers
+ and body text to identify "spam", also known as unsolicited bulk email.
+ .
+ Once identified, the mail can then be tagged as spam for later filtering
+ using the user's own mail user-agent application or at the mail transfer
+ agent.
+ .
+ If you wish to use a command-line filter tool, try the spamassassin
+ or spamd/spamc tools provided.
+ .
+ Homepage: http://spamassassin.apache.org/
Added: spamassassin/trunk/debian/copyright
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/copyright Mon Sep 13 12:34:52 2004
@@ -0,0 +1,20 @@
+This product includes software developed by the Apache Software
+Foundation (http://www.apache.org/).
+
+SpamAssassin is a trademark of the Apache Software Foundation.
+
+<@LICENSE>
+Copyright 2004 Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+</...@LICENSE>
Added: spamassassin/trunk/debian/rules
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/rules Mon Sep 13 12:34:52 2004
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+#-*- makefile -*-
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper, by Joey Hess
+# Some lines taken from debmake, by Christoph Lameter
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+export DH_COMPAT=3
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+ifndef DESTDIR
+DESTDIR=..
+endif
+TMP =`pwd`/debian/$(PACKAGE)
+
+OPTIMIZE = -O2 -Wall
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+OPTIMIZE += -g
+endif
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(PERL) Makefile.PL INSTALLDIRS=vendor SYSCONFDIR=/etc \
+ < /dev/null
+ $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) veryclean
+
+ dh_clean
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp.
+ #$(MAKE) install DESTDIR=`pwd`/debian/tmp
+ $(MAKE) install PREFIX=$(TMP)/usr SYSCONFDIR=$(TMP)/etc
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# dh_testversion
+ dh_testdir
+ dh_testroot
+ dh_installdocs BUGS README ldap/README ldap/README.testing spamc/README.win spamc/README.qmail spamd/README.vpopmail spamd/README sql/README.awl sql/README.bayes sql/README
+ dh_installexamples
+ dh_installmenu
+# dh_installemacsen
+ dh_installinit
+ dh_installcron
+ dh_installman
+# dh_undocumented
+ dh_installchangelogs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_makeshlibs
+ dh_installdeb
+ dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb --destdir=$(DESTDIR)
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
Added: spamassassin/trunk/debian/spamassassin.default
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/spamassassin.default Mon Sep 13 12:34:52 2004
@@ -0,0 +1,4 @@
+# /etc/default/spamassassin
+
+ENABLED=0
+OPTIONS="-c -m5 -H"
Added: spamassassin/trunk/debian/spamassassin.init
==============================================================================
--- (empty file)
+++ spamassassin/trunk/debian/spamassassin.init Mon Sep 13 12:34:52 2004
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# set variables
+SERVICE=spamassassin
+NAME=spamd
+DEFAULTS=/etc/default/$SERVICE
+DAEMON=/usr/bin/$NAME
+PIDFILE=/var/run/$NAME.pid
+INITFILE=/etc/init.d/$SERVICE
+
+# set default spamd configuration
+# change these in /etc/default/$SERVICE instead of here
+OPTIONS="-c -m5 -H"
+ENABLED=0
+
+# source defaults
+test -f $DEFAULTS && . $DEFAULTS
+
+# exit if we have nothing to do
+test -x $DAEMON -a "$ENABLED" != "0" || exit 0
+
+PATH=$PATH:/usr/bin:/usr/local/bin
+
+# see how we were called
+case "$1" in
+ start)
+ echo -n "Starting: $SERVICE"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $OPTIONS -d -r $PIDFILE
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping: $SERVICE"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME
+ echo "."
+ ;;
+ reload|force-reload)
+ echo -n "Reloading: $SERVICE"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --signal HUP
+ echo "."
+ ;;
+ restart)
+ echo -n "Restarting: $SERVICE"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $OPTIONS -d -r $PIDFILE
+ echo "."
+ ;;
+
+ *)
+ echo "Usage: $INITFILE {start|stop|reload|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0