summaryrefslogtreecommitdiff
path: root/mail/elm/patches/patch-ad
blob: c5435e4c03b4873e7681f8ffadf05222eb0d92a6 (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
$NetBSD: patch-ad,v 1.7 2010/04/15 06:50:46 dholland Exp $

destdir support.

--- Make.defs.SH.orig	2005-08-18 12:49:24.000000000 +0000
+++ Make.defs.SH
@@ -113,6 +113,7 @@ RANLIB		= $ranlib
 RM		= $rm
 TEST		= $test
 TOUCH		= $touch
+MKDIR		= mkdir
 
 DESTBIN		= $installbin
 DESTLIB		= $installlib
@@ -143,9 +144,12 @@ INST_MAILER = \
 	$(RM) -f $@.old ; \
 	$(TEST) ! -f $@ || $(MV) $@ $@.old ; \
 	$(RM) -f $@.old ; \
+	$(MKDIR) -p `dirname $@` ; \
 	$(CP) $? $@ ; \
-	$(TEST) $(MAILERMODE) -lt 999 || $(CHGRP) $(MAILGRP) $@ ; \
-	$(CHMOD) $(MAILERMODE) $@
+	$(CHMOD) a+x $@
+# now done by pkgsrc makefile with SPECIAL_PERMS
+#	$(TEST) $(MAILERMODE) -lt 999 || $(CHGRP) $(MAILGRP) $@
+#	$(CHMOD) $(MAILERMODE) $@
 
 #
 # Common rules