Import Debian version 0.8.8.1
greylistd (0.8.8.1) experimental; urgency=low
* new Maintainer (Closes: #595693)
* debian/controL: standard bumped to 3.9.3 (no changes)
* debian/control: use dh 9
* debian/post*: use set -e in the body of the script
* debian/config: use set -e in the body
* debian/README.source: added
* debian/copyright: link to file with version
* debian/init: add description: line
* debian/init: provide greylistd in header
* debian/*.override: add override for unused-debconf-template
* program/greylistd: improvment for high traffic (Closes: #375504)
* program/greylistd-setup-exim4: replace string exception (Closes: #585231)
* change typo in man pages
Thorsten Alteholz authored 11 years ago
Benedikt Spranger committed 4 years ago
|
0 |
greylistd (0.8.8.1) experimental; urgency=low
|
|
1 |
|
|
2 |
* new Maintainer (Closes: #595693)
|
|
3 |
* debian/controL: standard bumped to 3.9.3 (no changes)
|
|
4 |
* debian/control: use dh 9
|
|
5 |
* debian/post*: use set -e in the body of the script
|
|
6 |
* debian/config: use set -e in the body
|
|
7 |
* debian/README.source: added
|
|
8 |
* debian/copyright: link to file with version
|
|
9 |
* debian/init: add description: line
|
|
10 |
* debian/init: provide greylistd in header
|
|
11 |
* debian/*.override: add override for unused-debconf-template
|
|
12 |
* program/greylistd: improvment for high traffic (Closes: #375504)
|
|
13 |
* program/greylistd-setup-exim4: replace string exception (Closes: #585231)
|
|
14 |
* change typo in man pages
|
|
15 |
|
|
16 |
-- Thorsten Alteholz <debian@alteholz.de> Mon, 27 Aug 2012 18:00:00 +0200
|
|
17 |
|
0 | 18 |
greylistd (0.8.8) unstable; urgency=low
|
1 | 19 |
|
2 | 20 |
* QA upload
|
0 | |
#!/bin/sh -e
|
|
0 |
#!/bin/sh
|
1 | 1 |
# Config module for greylistd.
|
|
2 |
|
|
3 |
set -e
|
2 | 4 |
|
3 | 5 |
. /usr/share/debconf/confmodule
|
4 | 6 |
db_version 2.0
|
0 | 0 |
Source: greylistd
|
1 | 1 |
Section: mail
|
2 | 2 |
Priority: optional
|
3 | |
Maintainer: Debian QA Group <packages@qa.debian.org>
|
4 | |
Build-Depends: debhelper (>= 5.0.37.2), python-support (>= 0.3)
|
|
3 |
Maintainer: Thorsten Alteholz <debian@alteholz.de>
|
|
4 |
Build-Depends: debhelper (>= 9), python-support (>= 0.3)
|
5 | 5 |
Build-Depends-Indep: python
|
6 | |
Standards-Version: 3.7.3
|
|
6 |
Standards-Version: 3.9.3
|
7 | 7 |
|
8 | 8 |
Package: greylistd
|
9 | 9 |
Architecture: all
|
14 | 14 |
|
15 | 15 |
You should have received a copy of the GNU General Public License
|
16 | 16 |
with the Debian GNU/Linux distribution in the file
|
17 | |
/usr/share/common-licenses/GPL; if not, write to the Free Software
|
|
17 |
/usr/share/common-licenses/GPL-2+; if not, write to the Free Software
|
18 | 18 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | 19 |
MA 02110-1301 USA.
|
20 | 20 |
|
|
0 |
# These templates are used in the config script using a variable
|
|
1 |
greylistd: unused-debconf-template greylistd/restartexim
|
|
2 |
greylistd: unused-debconf-template greylistd/autoconfig_notdone_exim4
|
|
3 |
greylistd: unused-debconf-template greylistd/autoconfig_notdone
|
|
4 |
|
0 | 0 |
#!/bin/sh
|
1 | 1 |
### BEGIN INIT INFO
|
2 | |
# Provides: greylist
|
|
2 |
# Provides: greylist greylistd
|
3 | 3 |
# Required-Start: $remote_fs $syslog
|
4 | 4 |
# Required-Stop: $remote_fs $syslog
|
5 | 5 |
# Default-Start: 2 3 4 5
|
6 | 6 |
# Default-Stop: 0 1 6
|
7 | 7 |
# Short-Description: Start/stop the greylistd(8) daemon.
|
|
8 |
# Description: Start/stop the greylistd(8) daemon.
|
8 | 9 |
### END INIT INFO
|
9 | 10 |
########################################################################
|
10 | 11 |
### FILE: /etc/init.d/greylist
|
0 | |
#!/bin/sh -e
|
|
0 |
#!/bin/sh
|
1 | 1 |
# Post-installation script for greylistd.
|
2 | 2 |
# see: dh_installdeb(1)
|
3 | 3 |
#
|
|
11 | 11 |
# <conflicting-package> <version>
|
12 | 12 |
# for details, see http://www.debian.org/doc/debian-policy/ or
|
13 | 13 |
# the debian-policy package
|
|
14 |
|
|
15 |
set -e
|
14 | 16 |
|
15 | 17 |
. /usr/share/debconf/confmodule
|
16 | 18 |
db_version 2.0
|
0 | |
#! /bin/sh -e
|
|
0 |
#! /bin/sh
|
1 | 1 |
# postinst script for greylistd
|
2 | 2 |
#
|
3 | 3 |
# see: dh_installdeb(1)
|
|
7 | 7 |
# the final step in the removal of this package, after the package's
|
8 | 8 |
# conffiles have been removed.
|
9 | 9 |
|
|
10 |
set -e
|
10 | 11 |
|
11 | 12 |
case "$1" in
|
12 | 13 |
remove|upgrade|abort-upgrade|failed-upgrade)
|
0 | |
#! /bin/sh -e
|
|
0 |
#! /bin/sh
|
1 | 1 |
# preinst script for #PACKAGE#
|
2 | 2 |
#
|
3 | 3 |
# see: dh_installdeb(1)
|
|
10 | 10 |
#
|
11 | 11 |
# for details, see http://www.debian.org/doc/debian-policy/ or
|
12 | 12 |
# the debian-policy package
|
|
13 |
|
|
14 |
set -e
|
13 | 15 |
|
14 | 16 |
set_config_value()
|
15 | 17 |
{
|
8 | 8 |
package=greylistd
|
9 | 9 |
tmp=$(CURDIR)/debian/greylistd
|
10 | 10 |
|
|
11 |
%:
|
|
12 |
dh $@ --with python2
|
11 | 13 |
|
12 | |
configure: configure-stamp
|
13 | |
configure-stamp:
|
14 | |
dh_testdir
|
15 | |
touch configure-stamp
|
16 | |
|
17 | |
|
18 | |
build: build-arch build-indep
|
19 | |
build-arch: build-stamp
|
20 | |
build-indep: build-stamp
|
21 | |
build-stamp: configure-stamp
|
22 | |
dh_testdir
|
23 | |
touch build-stamp
|
24 | |
|
25 | |
clean:
|
26 | |
dh_testdir
|
27 | |
dh_testroot
|
28 | |
rm -f build-stamp configure-stamp
|
29 | |
dh_clean
|
30 | |
|
31 | |
install: build
|
32 | |
dh_testdir
|
33 | |
dh_testroot
|
34 | |
dh_clean -k
|
35 | |
dh_installdirs
|
36 | |
|
37 | |
|
38 | |
# Build architecture-independent files here.
|
39 | |
binary-indep: build install
|
40 | |
dh_testdir
|
41 | |
dh_testroot
|
42 | |
dh_installchangelogs
|
43 | |
dh_installdocs
|
44 | |
dh_installexamples
|
45 | |
dh_install
|
46 | |
dh_installdebconf
|
47 | |
dh_installinit -d
|
48 | |
dh_installman
|
49 | |
dh_compress
|
50 | |
dh_fixperms
|
51 | |
dh_pysupport
|
52 | |
dh_installdeb
|
53 | |
dh_shlibdeps
|
54 | |
dh_gencontrol
|
55 | |
dh_md5sums
|
56 | |
dh_builddeb
|
57 | |
|
58 | |
|
|
14 |
### old version
|
|
15 |
#configure: configure-stamp
|
|
16 |
#configure-stamp:
|
|
17 |
# dh_testdir
|
|
18 |
# touch configure-stamp
|
|
19 |
#
|
|
20 |
#
|
|
21 |
#build: build-arch build-indep
|
|
22 |
#build-arch: build-stamp
|
|
23 |
#build-indep: build-stamp
|
|
24 |
#build-stamp: configure-stamp
|
|
25 |
# dh_testdir
|
|
26 |
# touch build-stamp
|
|
27 |
#
|
|
28 |
#clean:
|
|
29 |
# dh_testdir
|
|
30 |
# dh_testroot
|
|
31 |
# rm -f build-stamp configure-stamp
|
|
32 |
# dh_clean
|
|
33 |
#
|
|
34 |
#install: build
|
|
35 |
# dh_testdir
|
|
36 |
# dh_testroot
|
|
37 |
# dh_clean -k
|
|
38 |
# dh_installdirs
|
|
39 |
#
|
|
40 |
#
|
|
41 |
## Build architecture-independent files here.
|
|
42 |
#binary-indep: build install
|
|
43 |
# dh_testdir
|
|
44 |
# dh_testroot
|
|
45 |
# dh_installchangelogs
|
|
46 |
# dh_installdocs
|
|
47 |
# dh_installexamples
|
|
48 |
# dh_install
|
|
49 |
# dh_installdebconf
|
|
50 |
# dh_installinit -d
|
|
51 |
# dh_installman
|
|
52 |
# dh_compress
|
|
53 |
# dh_fixperms
|
|
54 |
# dh_pysupport
|
|
55 |
# dh_installdeb
|
|
56 |
# dh_shlibdeps
|
|
57 |
# dh_gencontrol
|
|
58 |
# dh_md5sums
|
|
59 |
# dh_builddeb
|
|
60 |
#
|
|
61 |
#
|
59 | 62 |
# Build architecture-dependent files here.
|
60 | |
binary-arch: build install
|
61 | |
|
62 | |
|
63 | |
|
64 | |
binary: binary-indep binary-arch
|
65 | |
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
63 |
#binary-arch: build install
|
|
64 |
#
|
|
65 |
#
|
|
66 |
#
|
|
67 |
#binary: binary-indep binary-arch
|
|
68 |
#.PHONY: build clean binary-indep binary-arch binary install configure
|
26 | 26 |
temporarily rejected, or permanently rejected, respectively.
|
27 | 27 |
.IP "\fBdelete\fP \fIdata...\fP"
|
28 | 28 |
Remove \fIdata\fP from all lists. If the data exists in any list, the
|
29 | |
command returns an exit status of 0, otherwise -1. A message is
|
|
29 |
command returns an exit status of 0, otherwise \-1. A message is
|
30 | 30 |
printed on standard output indicating the action taken.
|
31 | 31 |
.IP "\fBcheck\fP [\fB--white\fP|\fB--grey\fP|\fB--black\fP] \fIdata...\fP"
|
32 | 32 |
Check the current status of \fIdata\fP, i.e. if a message delivery
|
69 | 69 |
identifies a particular host/sender/recipient relationship.
|
70 | 70 |
\fBgreylistd\fP responds "white", "grey" or "black", depending on the
|
71 | 71 |
current listing status of the provided \fItriplet\fP. Alternatively,
|
72 | |
if either of the "--white", "--grey", or "--black" options precede the
|
|
72 |
if either of the "\-\-white", "\-\-grey", or "\-\-black" options precede the
|
73 | 73 |
data, \fBgreylistd\fP responds "true" or "false", indicating whether
|
74 | 74 |
the triplet is currently in the corresponding state.
|
75 | 75 |
.SH "EXAMPLES"
|
460 | 460 |
truthtest = None
|
461 | 461 |
|
462 | 462 |
now = int(time())
|
463 | |
expireKeys(now)
|
|
463 |
### according to #375504 this call to expireKeys() can be
|
|
464 |
### removed here, expiration takes place when periodically
|
|
465 |
### saving to disk
|
|
466 |
### #375504: expireKeys(now)
|
464 | 467 |
state = None
|
465 | 468 |
|
466 | 469 |
if config[DATA][SINGLECHECK]:
|
249 | 249 |
try:
|
250 | 250 |
netmask = int(options["netmask"])
|
251 | 251 |
except:
|
252 | |
raise "Invalid netmask size: '%s'"%options["netmask"]
|
|
252 |
nmstring=options["netmask"]
|
|
253 |
raise RuntimeError("Invalid netmask size: '%(nmstring)s'"%vars())
|
|
254 |
### org raise "Invalid netmask size: '%s'"%options["netmask"]
|
253 | 255 |
|
254 | 256 |
hostaddress="${mask:$sender_host_address/%s}"%options["netmask"]
|
255 | 257 |
|