summaryrefslogtreecommitdiff
path: root/mail/gld/patches/patch-aa
blob: 7cf57442817a4cf037e27a5b0da26bba5d41ac21 (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
$NetBSD: patch-aa,v 1.2 2005/04/13 16:19:59 christos Exp $

--- Makefile.in.orig	2004-10-12 08:41:49.000000000 -0400
+++ Makefile.in	2005-04-13 11:53:50.000000000 -0400
@@ -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) -lmysqlclient -o gld
 
 sockets.o: sockets.c sockets.h
 	@CC@ -O2 @DEFS@ -Wall -c sockets.c
@@ -23,11 +23,14 @@
 	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) $(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM) gld $(PREFIX)/bin
+	$(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/examples/gld
+	$(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/gld
+	$(BSD_INSTALL_DATA_DIR) $(PREFIX)/share/doc/gld
+	$(BSD_INSTALL_DATA) gld.conf $(PREFIX)/share/examples/gld
+	$(BSD_INSTALL_DATA) tables.sql $(PREFIX)/share/gld
+	$(BSD_INSTALL_DATA) README LICENCE $(PREFIX)/share/doc/gld
 
 distclean: clean
 	rm -f Makefile config.status config.log config.cache