summaryrefslogtreecommitdiff
path: root/mail/gld/patches/patch-aa
blob: 856aca3d579b1c463abe02aea3e6f05959a3f1ed (plain)
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
$NetBSD: patch-aa,v 1.8 2008/06/20 01:09:23 joerg Exp $

--- Makefile.in.orig	2004-10-12 14:41:49.000000000 +0200
+++ Makefile.in
@@ -1,8 +1,8 @@
 all: gld
 
 gld: cnf.o server.o sql.o sockets.o greylist.o gld.h
-	@CC@ -O2 @DEFS@ -Wall server.o sql.o sockets.o cnf.o greylist.o @LIBS@ @SQL_LIBS@ -o gld
-	strip gld
+	@CC@ -O2 @DEFS@ -Wall server.o sql.o sockets.o cnf.o greylist.o \
+	    $(LDFLAGS) @SQL_LIBS@ -o gld
 
 sockets.o: sockets.c sockets.h
 	@CC@ -O2 @DEFS@ -Wall -c sockets.c
@@ -23,11 +23,15 @@ clean:
 	rm -f  gld *.o
 
 install: gld gld.conf
-	mkdir -p /usr/local/bin
-	cp gld /usr/local/bin
-	chmod 700 /usr/local/bin/gld
-	cp gld.conf /etc/gld.conf.sample
-	chmod 600 /etc/gld.conf.sample
+	$(BSD_INSTALL_PROGRAM_DIR) ${DESTDIR}$(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM) gld ${DESTDIR}$(PREFIX)/bin
+	$(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/examples/gld
+	$(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/gld
+	$(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/doc/gld
+	$(BSD_INSTALL_DATA) gld.conf ${DESTDIR}$(PREFIX)/share/examples/gld
+	$(BSD_INSTALL_DATA) table-whitelist.sql ${DESTDIR}$(PREFIX)/share/gld
+	$(BSD_INSTALL_DATA) tables.* ${DESTDIR}$(PREFIX)/share/gld
+	$(BSD_INSTALL_DATA) README LICENCE ${DESTDIR}$(PREFIX)/share/doc/gld
 
 distclean: clean
 	rm -f Makefile config.status config.log config.cache