summaryrefslogtreecommitdiff
path: root/security/mirrordir/patches/patch-aa
blob: 31e5c7d124047bdabb2154c433544d4cf54ad01e (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
$NetBSD: patch-aa,v 1.2 2010/04/14 22:45:51 joerg Exp $

Problems with "test -f symlink" returning true.

--- src/Makefile.in.orig	2000-01-16 21:19:28.000000000 +0000
+++ src/Makefile.in
@@ -176,7 +176,7 @@ install-binPROGRAMS: $(bin_PROGRAMS)
 	@$(NORMAL_INSTALL)
 	$(mkinstalldirs) $(DESTDIR)$(bindir)
 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
-	  if test -f $$p; then \
+	  if test -f $$p -a ! -h $$p; then \
 	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
 	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
 	  else :; fi; \
@@ -399,9 +399,9 @@ maintainer-clean-generic clean mostlycle
 
 
 install-exec-hook:
-	$(LN_S) -f $(bindir)/mirrordir $(bindir)/copydir
-	$(LN_S) -f $(bindir)/mirrordir $(bindir)/recursdir
-	$(LN_S) -f $(bindir)/mirrordir $(bindir)/pslogin
+	$(LN_S) -f mirrordir ${DESTDIR}$(bindir)/copydir
+	$(LN_S) -f mirrordir ${DESTDIR}$(bindir)/recursdir
+	$(LN_S) -f mirrordir ${DESTDIR}$(bindir)/pslogin
 
 pslogin.o:
 	@echo ""