Codebase list greylistd / 6e1bb0b
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
15 changed file(s) with 106 addition(s) and 67 deletion(s). Raw diff Collapse all Expand all
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
018 greylistd (0.8.8) unstable; urgency=low
119
220 * QA upload
0 #!/bin/sh -e
0 #!/bin/sh
11 # Config module for greylistd.
2
3 set -e
24
35 . /usr/share/debconf/confmodule
46 db_version 2.0
00 Source: greylistd
11 Section: mail
22 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)
55 Build-Depends-Indep: python
6 Standards-Version: 3.7.3
6 Standards-Version: 3.9.3
77
88 Package: greylistd
99 Architecture: all
1414
1515 You should have received a copy of the GNU General Public License
1616 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
1818 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1919 MA 02110-1301 USA.
2020
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
00 #!/bin/sh
11 ### BEGIN INIT INFO
2 # Provides: greylist
2 # Provides: greylist greylistd
33 # Required-Start: $remote_fs $syslog
44 # Required-Stop: $remote_fs $syslog
55 # Default-Start: 2 3 4 5
66 # Default-Stop: 0 1 6
77 # Short-Description: Start/stop the greylistd(8) daemon.
8 # Description: Start/stop the greylistd(8) daemon.
89 ### END INIT INFO
910 ########################################################################
1011 ### FILE: /etc/init.d/greylist
0 #!/bin/sh -e
0 #!/bin/sh
11 # Post-installation script for greylistd.
22 # see: dh_installdeb(1)
33 #
1111 # <conflicting-package> <version>
1212 # for details, see http://www.debian.org/doc/debian-policy/ or
1313 # the debian-policy package
14
15 set -e
1416
1517 . /usr/share/debconf/confmodule
1618 db_version 2.0
0 #! /bin/sh -e
0 #! /bin/sh
11 # postinst script for greylistd
22 #
33 # see: dh_installdeb(1)
77 # the final step in the removal of this package, after the package's
88 # conffiles have been removed.
99
10 set -e
1011
1112 case "$1" in
1213 remove|upgrade|abort-upgrade|failed-upgrade)
0 #! /bin/sh -e
0 #! /bin/sh
11 # preinst script for #PACKAGE#
22 #
33 # see: dh_installdeb(1)
1010 #
1111 # for details, see http://www.debian.org/doc/debian-policy/ or
1212 # the debian-policy package
13
14 set -e
1315
1416 set_config_value()
1517 {
88 package=greylistd
99 tmp=$(CURDIR)/debian/greylistd
1010
11 %:
12 dh $@ --with python2
1113
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 #
5962 # 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
2626 temporarily rejected, or permanently rejected, respectively.
2727 .IP "\fBdelete\fP \fIdata...\fP"
2828 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
3030 printed on standard output indicating the action taken.
3131 .IP "\fBcheck\fP [\fB--white\fP|\fB--grey\fP|\fB--black\fP] \fIdata...\fP"
3232 Check the current status of \fIdata\fP, i.e. if a message delivery
6969 identifies a particular host/sender/recipient relationship.
7070 \fBgreylistd\fP responds "white", "grey" or "black", depending on the
7171 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
7373 data, \fBgreylistd\fP responds "true" or "false", indicating whether
7474 the triplet is currently in the corresponding state.
7575 .SH "EXAMPLES"
460460 truthtest = None
461461
462462 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)
464467 state = None
465468
466469 if config[DATA][SINGLECHECK]:
249249 try:
250250 netmask = int(options["netmask"])
251251 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"]
253255
254256 hostaddress="${mask:$sender_host_address/%s}"%options["netmask"]
255257