openbsd-ports/net/wget/patches/patch-doc_Makefile_in

39 lines
1.3 KiB
Plaintext
Raw Normal View History

--- doc/Makefile.in.orig Tue Sep 22 18:40:11 2009
+++ doc/Makefile.in Thu Oct 1 14:53:44 2009
@@ -598,7 +598,7 @@
RM = rm -f
TEXI2POD = $(srcdir)/texi2pod.pl
MAN = wget.$(manext)
-WGETRC = $(sysconfdir)/wgetrc
+WGETRCDIR = $(prefix)/share/examples/wget
2001-10-01 23:15:03 -04:00
SAMPLERCTEXI = sample.wgetrc.munged_for_texi_inclusion
#
@@ -1067,23 +1067,9 @@
# install sample.wgetrc
2001-10-01 23:15:03 -04:00
install.wgetrc: $(srcdir)/sample.wgetrc
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @if test -f $(DESTDIR)$(WGETRC); then \
2001-10-01 23:15:03 -04:00
- if cmp -s $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC); then echo ""; \
- else \
2001-10-01 23:15:03 -04:00
- echo ' $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC).new'; \
- $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC).new; \
2001-01-11 09:45:34 -05:00
- echo; \
2001-10-01 23:15:03 -04:00
- echo "WARNING: Differing \`$(DESTDIR)$(WGETRC)'"; \
2001-01-11 09:45:34 -05:00
- echo " exists and has been spared. You might want to"; \
- echo " consider merging in the new lines from"; \
2001-10-01 23:15:03 -04:00
- echo " \`$(DESTDIR)$(WGETRC).new'."; \
2001-01-11 09:45:34 -05:00
- echo; \
- fi; \
- else \
2001-10-01 23:15:03 -04:00
- $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRC); \
- fi
-
+ $(mkinstalldirs) $(DESTDIR)$(WGETRCDIR)
2001-10-01 23:15:03 -04:00
+ $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(DESTDIR)$(WGETRCDIR)
+
# uninstall man page
uninstall.man:
$(RM) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)