openbsd-ports/net/ircd-hybrid/patches/patch-help_Makefile_in
landry a3933cd679 Correct symlinks which were pointing to files into WRKOBJDIR instead of
real files. Spotted by PLIST_DB..
ok jasper@ sthen@ ajacoutot@
2010-01-26 13:02:06 +00:00

41 lines
1.2 KiB
Plaintext

$OpenBSD: patch-help_Makefile_in,v 1.2 2010/01/26 13:02:06 landry Exp $
--- help/Makefile.in.orig Wed Feb 28 05:17:47 2007
+++ help/Makefile.in Tue Jan 26 11:23:17 2010
@@ -8,8 +8,8 @@ RM = @RM@
prefix = @prefix@
exec_prefix = @execprefix@
datarootdir = $(DESTDIR)@datarootdir@
-uhelpdir = ${prefix}/help/users
-ohelpdir = ${prefix}/help/opers
+uhelpdir = ${datarootdir}/ircd-hybrid/help/users
+ohelpdir = ${datarootdir}/ircd-hybrid/help/opers
SYMLINKS = topic accept cmode admin names links away whowas \
version kick who invite quit join list nick oper part \
@@ -22,14 +22,8 @@ depend:
install:
@echo installing help files...
- -@if test ! -d $(prefix)/help; then \
- echo "mkdir $(prefix)/help"; \
- mkdir $(prefix)/help; \
- echo "mkdir $(prefix)/help/users"; \
- mkdir $(prefix)/help/users; \
- echo "mkdir $(prefix)/help/opers"; \
- mkdir $(prefix)/help/opers; \
- fi
+ $(BSD_INSTALL_DATA_DIR) $(uhelpdir)
+ $(BSD_INSTALL_DATA_DIR) $(ohelpdir)
@for help in opers/*; do \
if [ -f $$help ]; then \
${INSTALL_DATA} $$help $(ohelpdir); \
@@ -42,7 +36,7 @@ install:
done
@for link in $(SYMLINKS); do \
rm -f $(uhelpdir)/$$link; \
- ln -s $(ohelpdir)/$$link $(uhelpdir); \
+ ln -s ../opers/$$link $(uhelpdir); \
done
distclean: