debian/0000755000000000000000000000000011731714553007175 5ustar debian/docs0000644000000000000000000000001411731714044010036 0ustar NEWS README debian/source/0000755000000000000000000000000011731714044010470 5ustar debian/source/format0000644000000000000000000000001411731714044011676 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000015711731714044012111 0ustar # Don't store changes on autogenerated files extend-diff-ignore = "(^|/)(config\.sub|config\.guess|Makefile)$" debian/README.Debian0000644000000000000000000000031411731714044011227 0ustar gross for Debian ---------------- At the end of man grossd.conf you will find how to configure gross for postfix, exit or sendmail -- Antonio Radici Mon, 17 May 2010 21:24:38 +0100 debian/patches/0000755000000000000000000000000011731714044010617 5ustar debian/patches/0002-remove-getline.patch0000644000000000000000000000103111731714044015134 0ustar The purpose of this patch is to remove the declaration of getline() because it conflicts with glibc >= 2.10.1, the issue was reported upstream: http://code.google.com/p/gross/issues/detail?id=81 --- a/include/utils.h +++ b/include/utils.h @@ -39,7 +39,6 @@ #endif /* ! USE_GETTIMEOFDAY */ int readline(int fd, void *vptr, size_t maxlen); -int getline(int fd, char *line, size_t maxlen); ssize_t readn(int fd, void *vptr, size_t n); ssize_t writen(int fd, const void *vptr, size_t n); ssize_t writeline(int fd, const char *line); debian/patches/series0000644000000000000000000000007011731714044012031 0ustar 0001-fix-manpage-errors.patch 0002-remove-getline.patch debian/patches/0001-fix-manpage-errors.patch0000644000000000000000000000253211731714044015726 0ustar this fixes various manpage errors --- a/man/grossd.conf.5.in +++ b/man/grossd.conf.5.in @@ -1,12 +1,12 @@ -.TH grossd 8 "2008-05-04" "" "" +.TH grossd 5 "2008-05-04" "" "" .if n .ad l .nh .SH "NAME" \fBgrossd.conf\fP \- Greylisting of Suspicious Sources daemon configuration file .SH "SYNOPSIS" -\fI@sysconfdir@/etc/grossd.conf\fP +\fI@sysconfdir@/grossd.conf\fP .SH "DESCRIPTION" -\fIgrossd\fP\|(8) reads configuration data from \fI@sysconfdir@/etc/grossd.conf\fP +\fIgrossd\fP\|(8) reads configuration data from \fI@sysconfdir@/grossd.conf\fP (or the file specified with \fB\-f\fP on the command line). An example configuration file is installed by default. You have to set some configuration options in order to get \fIgrossd\fP\|(8) running in @@ -81,7 +81,7 @@ is the full path of the file \fIgrossd\fP\|(8) writes its pid into. You can set parameter `check', if you want to keep \fIgrossd\fP\|(8) from starting should pidfile already exist. -.Sh "Query constraints" +.SH "Query constraints" .IP "\fBgrey_delay\fP" 4 is the time in seconds new triplets are kept on the greylist. Default is 180. .IP "\fBquery_timelimit\fP" 4 @@ -294,7 +294,7 @@ You can check if your version of Sendmail has Milter support compiled in by issuing the following command: .PP - sendmail -bt -d0.1 + sendmail \-bt \-d0.1 .SH "SEE ALSO" \fIgrossd\fP\|(8) .PP debian/postrm0000644000000000000000000000066411731714044010445 0ustar #! /bin/sh # postrm script for gross set -e #DEBHELPER# [ -e /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule case "$1" in remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; purge) if [ -d /var/lib/gross ]; then rm -rf /var/lib/gross || true fi ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac exit 0 debian/rules0000755000000000000000000000071311731714044010251 0ustar #!/usr/bin/make -f # vim:noet: # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_configure: cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess dh_auto_configure override_dh_install: dh_install # some static/shared libraries, not really needed rm -rf debian/gross/usr/lib # a binary used only for testing rm debian/gross/usr/bin/gclient rmdir debian/gross/usr/bin debian/gross.default0000644000000000000000000000034511731714044011675 0ustar # Defaults for gross initscript # sourced by /etc/init.d/gross # installed at /etc/default/gross by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS="" debian/gross.lintian-overrides0000644000000000000000000000027611731714044013712 0ustar # fixing an error about the Sun Messaging server conf, which we can't break gross: manpage-has-errors-from-man usr/share/man/man5/grossd.conf.5.gz 232: warning [p 5, 0.5i]: can't break line debian/compat0000644000000000000000000000000211731714044010366 0ustar 7 debian/watch0000644000000000000000000000042411731714475010231 0ustar # because uscan doesn't work with code.google.com ATM version=3 opts=\ downloadurlmangle=s|.*[?]name=(.*?)&.*|http://gross.googlecode.com/files/$1|,\ filenamemangle=s|[^/]+[?]name=(.*?)&.*|$1| \ http://code.google.com/p/gross/downloads/detail[?]name=gross-([0-9.]+).tar.gz&.* debian/gross.init0000644000000000000000000001147011731714044011215 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: gross # Required-Start: $remote_fs $network $syslog # Required-Stop: $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: script to start grossd # Description: this script starts the gross daemon and it will also # create the /var/run/gross directory if it does not # exist ### END INIT INFO # Author: Antonio Radici # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="gross policy server" # Introduce a short description here NAME=gross # Introduce the short server's name here DAEMON=/usr/sbin/grossd # Introduce the server's location here PIDFILE=/var/run/gross/$NAME.pid DAEMON_ARGS="-p $PIDFILE" # Arguments to run the daemon with SCRIPTNAME=/etc/init.d/$NAME USER="gross" GROUP="gross" # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions if [ ! -d /var/run/gross ]; then mkdir -p /var/run/gross fi chown $USER:$GROUP /var/run/gross # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start -c $USER:$GROUP --quiet \ --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start -c $USER:$GROUP --quiet \ --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name grossd RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/postinst0000644000000000000000000000133511731714044011000 0ustar #! /bin/sh # postinst script for gross set -e # lintian: postinst-does-not-load-confmodule . /usr/share/debconf/confmodule case "$1" in configure) DBDIR='/var/lib/gross' getent passwd gross > /dev/null || \ adduser --system --home "$DBDIR" --no-create-home \ --disabled-password --group gross getent group gross > /dev/null || \ addgroup --system gross install -d -o gross -g gross -m 0700 "$DBDIR" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# # without this, debconf hangs after end of postinst. #db_stop exit 0 debian/changelog0000644000000000000000000000152411731714351011045 0ustar gross (1.0.2-3) unstable; urgency=low * debian/source/options: ignoring our changes to config.{sub,guess} (Closes: 643146). * debian/rules: removed the override_dh_clean section due to the above changes. * debian/control: + Standards-Version bumped to 3.9.3, no change required. + switched my mail to antonio@debian.org. -- Antonio Radici Mon, 19 Mar 2012 20:24:53 +0000 gross (1.0.2-2) unstable; urgency=low * debian/rules: updating config.{sub,guess} (Closes: 583762) * debian/README.Debian and debian/control modified to note that Sendmail is supported (Closes: 584597) -- Antonio Radici Mon, 07 Jun 2010 16:36:30 +0100 gross (1.0.2-1) unstable; urgency=low * Initial release (Closes: 548972) -- Antonio Radici Mon, 17 May 2010 21:34:46 +0100 debian/TODO0000644000000000000000000000043711731714044007664 0ustar -) add a README.Debian with example configs -- OK -) test gross with postfix -) test gross with exim -) add postfix/exim to Suggest/Recommend or even Depends -- OK -) fix manpage errors -- OK -) gclient, do we really need it? -- OK -) clean any reference to postgrey in postrm/postinst debian/control0000644000000000000000000000146711731714302010600 0ustar Source: gross Section: mail Priority: extra Maintainer: Antonio Radici Build-Depends: debhelper (>= 7.0.50~), autotools-dev, libc-ares-dev Standards-Version: 3.9.3 Homepage: http://code.google.com/p/gross/ Vcs-Git: git://git.debian.org/collab-maint/gross.git Vcs-Browser: http://git.debian.org/?p=collab-maint/gross.git;a=summary Package: gross Architecture: any Depends: adduser, postfix | exim4-daemon-light | exim4-daemon-heavy | sendmail, ${shlibs:Depends}, ${misc:Depends} Description: fast and efficient greylist server with DNSBL support Gross is a resource efficient greylist server written in C that supports greylisting and/or blocking based on DNSRBL so it will not impact legitimate mails . It also contains a milter implementation and natively supports Postfix, Exim and Sendmail. debian/copyright0000644000000000000000000000223611731714044011126 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Upstream-Maintainer: Antti Siira , Eino Tuominen Upstream-Source: http://code.google.com/p/gross/downloads/list Upstream-Name: gross Files: * Copyright: 2006-2009 (c) Antti Siira 2006-2009 (c) Eino Tuominen License: ISC Files: debian/* Copyright: 2010, Antonio Radici License: GPL-3 License: ISC Permission to use, copy, modify, and/or 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. A copy of the ISC license can be found at: http://www.isc.org/software/license License: GPL-3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License. On Debian GNU/Linux systems, the complete text of version 3 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'