File: postgresql.diff

package info (click to toggle)
postfix-gld 1.7-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: ansic: 2,287; sql: 169; sh: 115; makefile: 71
file content (36 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
This patch should allow you to use PostgreSQL instead of MySQL.
Use at your own risk. In particular you should probably put the
package on hold to avoid upgrades to the MySQL version.

In a future release, this will be a configuration option in /etc/gld.conf.

--- a/debian/control
+++ b/debian/control
@@ -3,14 +3,14 @@ Section: mail
 Priority: optional
 Maintainer: Santiago Vila <sanvila@debian.org>
 Standards-Version: 4.6.2
-Build-Depends: debhelper-compat (= 13), default-libmysqlclient-dev
+Build-Depends: debhelper-compat (= 13), libpq-dev
 Homepage: https://www.gasmi.net/gld.html
 Rules-Requires-Root: no
 
 Package: postfix-gld
 Architecture: any
 Depends: adduser, lsb-base (>= 3.0-6), psmisc, ${shlibs:Depends}, ${misc:Depends}
-Recommends: default-mysql-server, postfix (>= 2.1)
+Recommends: postfix (>= 2.1), postgresql
 Description: greylisting daemon for postfix, written in C, uses MySQL
  gld stands for GreyList Daemon. gld is a standalone policy delegation
  server for postfix that implements the greylist algorithm as defined
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 %:
 	dh $@
 
-DATABASE = mysql
+DATABASE = pgsql
 
 override_dh_auto_configure:
 	dh_auto_configure -- --with-$(DATABASE)