pkgsrc/mail/elm/patches/patch-ad
dholland 748aedba97 DESTDIR support. Use SPECIAL_PERMS. Fix some pkglint. Add missing
manpage link. Fix getline lossage on -current. Wrap the homemade
config.sh substitutions in @@ to make them more robust. PKGREVISION++
2010-04-15 06:50:46 +00:00

29 lines
738 B
Text

$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