2013-09-26 17:14:40 +02:00

29 lines
1.1 KiB
Plaintext

$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 ""