File: postgresql.diff

package info (click to toggle)
postfix-gld 1.7-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 480 kB
  • sloc: ansic: 1,447; sql: 169; sh: 112; makefile: 109
file content (35 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download
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
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,13 +3,13 @@ Section: mail
 Priority: optional
 Maintainer: Santiago Vila <sanvila@debian.org>
 Standards-Version: 3.9.6
-Build-Depends: default-libmysqlclient-dev
+Build-Depends: libpq-dev
 Homepage: http://www.gasmi.net/gld.html
 
 Package: postfix-gld
 Architecture: any
 Depends: ${shlibs:Depends}, psmisc, adduser, lsb-base (>= 3.0-6)
-Recommends: postfix (>= 2.1), default-mysql-server
+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
@@ -5,7 +5,7 @@ docdir = debian/tmp/usr/share/doc/$(package)
 
 BUILD_DATE := $(shell dpkg-parsechangelog -S Date)
 
-DATABASE = mysql
+DATABASE = pgsql
 
 CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
 LDFLAGS := `dpkg-buildflags --get LDFLAGS`