openbsd-ports/net/wget/patches/patch-ab
marc 49383b9b53 o hide some pre- and post- install commands
o add an INSTALL script to install /etc/wgetrc if necessary
o remove wgetrc install code from Makefile and packing list
o call install script from Makefile
o patch wget doc Makefile so it does NOT install into /etc automagically
o add DEINSTALL script to remind user to get rid of /etc/wgetrc
THIS PORT IS NOW FROZEN FOR 2.5
1999-04-10 02:50:54 +00:00

43 lines
1.3 KiB
Plaintext

--- doc/Makefile.in.orig Sat May 23 19:40:42 1998
+++ doc/Makefile.in Fri Apr 9 18:49:50 1999
@@ -22,7 +22,7 @@
SHELL = /bin/sh
# Program to format Texinfo source into Info files.
-MAKEINFO = @MAKEINFO@
+MAKEINFO = @MAKEINFO@ --no-split
# Program to format Texinfo source into DVI files.
TEXI2DVI = texi2dvi
# Program to convert DVI files to PostScript
@@ -45,7 +45,7 @@
RM = rm -f
MAN = wget.$(manext)
-WGETRC = $(sysconfdir)/wgetrc
+WGETRCDIR = $(prefix)/lib/wget
#
# Dependencies for building
@@ -99,19 +99,8 @@
# install sample.wgetrc
install.wgetrc:
- $(top_srcdir)/mkinstalldirs $(sysconfdir)
- @if test -f $(WGETRC); then \
- if cmp -s $(srcdir)/sample.wgetrc $(WGETRC); then echo ""; \
- else \
- echo ' $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC).new'; \
- $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC).new; \
- echo "WARNING: File \`$(WGETRC)' already exists and is spared."; \
- echo " You might want to consider \`$(WGETRC).new',"; \
- echo " and merge both into \`$(WGETRC)', for the best."; \
- fi; \
- else \
- $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC); \
- fi
+ $(top_srcdir)/mkinstalldirs $(WGETRCDIR)
+ $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRCDIR);
# uninstall info pages
uninstall.info: