summaryrefslogtreecommitdiff
path: root/mail/deliver/patches/patch-aa
blob: 70fae8ca7b9d3543b15f35251e903a7f443930d7 (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
37
38
39
40
$NetBSD: patch-aa,v 1.1.1.1 2001/04/27 14:06:05 wiz Exp $

--- Makefile.orig	Wed Dec  1 20:53:49 1999
+++ Makefile	Sat Jan 29 15:21:49 2000
@@ -74,13 +74,12 @@
 #DELHOME = /usr/deliver
 #HDEFS	= -DDELHOME=\"$(DELHOME)\"
 UDEFS	=
-OSHEADER = os-dummy.h
+OSHEADER = os-netbsd.h
 DEFS	= -Iconf -DOSINCLUDE=\"$(OSHEADER)\" $(HDEFS) $(UDEFS)
-CFLAGS	= -O $(DEFS)
-LDFLAGS	=
+CFLAGS	+= $(DEFS)
 LIBS	=
 LINT	= lint -x
-BIN	= /usr/bin
+BIN	= ${PREFIX}/bin
 #BIN	= $(DELHOME)/bin
 GROUP	= root
 
@@ -154,16 +153,8 @@
 			  chmod 755 $$d ) || exit 1; \
 		done ;; \
 	 esac
-	rm -f $(BIN)/deliver.O
-	-mv $(BIN)/deliver $(BIN)/deliver.O
-	$(COPY) deliver $(BIN)/deliver
-	chgrp $(GROUP) $(BIN)/deliver
-	chown root $(BIN)/deliver
-	chmod 4711 $(BIN)/deliver
-	rm -f $(BIN)/header.O
-	-mv $(BIN)/header $(BIN)/header.O
-	$(COPY) header $(BIN)/header
-	chmod 755 $(BIN)/header
+	${BSD_INSTALL_PROGRAM} -m 0511 deliver ${BIN}
+	${BSD_INSTALL_PROGRAM} header ${BIN}
 
 #
 # How to compile and link the program.