diff --git a/www/surfraw/Makefile b/www/surfraw/Makefile index 91959910e98..3cb48a3fb66 100644 --- a/www/surfraw/Makefile +++ b/www/surfraw/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2001/04/14 11:36:21 naddy Exp $ +# $OpenBSD: Makefile,v 1.8 2001/10/07 18:17:44 heko Exp $ COMMENT= "command line interface to popular WWW search engines" @@ -23,5 +23,7 @@ CONFIGURE_STYLE= gnu post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/surfraw ${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/share/examples/surfraw + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/surfraw + ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/HACKING ${PREFIX}/share/doc/surfraw .include diff --git a/www/surfraw/patches/patch-elvi_Makefile_am b/www/surfraw/patches/patch-elvi_Makefile_am new file mode 100644 index 00000000000..b0653525363 --- /dev/null +++ b/www/surfraw/patches/patch-elvi_Makefile_am @@ -0,0 +1,12 @@ +$OpenBSD: patch-elvi_Makefile_am,v 1.1 2001/10/07 18:17:44 heko Exp $ +--- elvi/Makefile.am.orig Fri Jan 12 08:23:37 2001 ++++ elvi/Makefile.am Sun Oct 7 07:13:57 2001 +@@ -36,7 +36,7 @@ bin_SCRIPTS = \ + xxx \ + yahoo + +-sysconf_DATA = surfraw_elvi.list ++pkgdata_DATA = surfraw_elvi.list + + EXTRA_DIST = $(bin_SCRIPTS) + diff --git a/www/surfraw/patches/patch-elvi_Makefile_in b/www/surfraw/patches/patch-elvi_Makefile_in index 1d5140d8c56..d5e5d9deb0d 100644 --- a/www/surfraw/patches/patch-elvi_Makefile_in +++ b/www/surfraw/patches/patch-elvi_Makefile_in @@ -1,11 +1,11 @@ ---- elvi/Makefile.in.orig Wed Feb 28 11:47:19 2001 -+++ elvi/Makefile.in Wed Feb 28 13:50:38 2001 +--- elvi/Makefile.in.orig Sat Jan 13 04:39:42 2001 ++++ elvi/Makefile.in Sun Oct 7 07:36:24 2001 @@ -104,14 +104,14 @@ bin_SCRIPTS = \ xxx \ yahoo -sysconf_DATA = surfraw_elvi.list -+data_DATA = surfraw_elvi.list ++pkgdata_DATA = surfraw_elvi.list EXTRA_DIST = $(bin_SCRIPTS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs @@ -13,7 +13,7 @@ SCRIPTS = $(bin_SCRIPTS) -DATA = $(sysconf_DATA) -+DATA = $(data_DATA) ++DATA = $(pkgdata_DATA) DIST_COMMON = Makefile.am Makefile.in @@ -22,69 +22,67 @@ done -install-sysconfDATA: $(sysconf_DATA) -+install-dataDATA: $(data_DATA) ++install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(sysconfdir) - @list='$(sysconf_DATA)'; for p in $$list; do \ -+ $(mkinstalldirs) $(DESTDIR)$(datadir) -+ @list='$(data_DATA)'; for p in $$list; do \ ++ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) ++ @list='$(pkgdata_DATA)'; for p in $$list; do \ if test -f $(srcdir)/$$p; then \ - echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \ - $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \ -+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p"; \ -+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p; \ ++ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \ ++ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \ else if test -f $$p; then \ - echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \ - $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \ -+ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p"; \ -+ $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p; \ ++ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \ ++ $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \ fi; fi; \ done --uninstall-sysconfDATA: -+uninstall-dataDATA: + uninstall-sysconfDATA: @$(NORMAL_UNINSTALL) - list='$(sysconf_DATA)'; for p in $$list; do \ - rm -f $(DESTDIR)$(sysconfdir)/$$p; \ -+ list='$(data_DATA)'; for p in $$list; do \ -+ rm -f $(DESTDIR)$(datadir)/$$p; \ ++ list='$(pkgdata_DATA)'; for p in $$list; do \ ++ rm -f $(DESTDIR)$(pkgdatadir)/$$p; \ done tags: TAGS TAGS: -@@ -188,21 +188,21 @@ dvi: +@@ -188,7 +188,8 @@ dvi: check: all $(MAKE) installcheck: -install-exec: install-binSCRIPTS install-sysconfDATA -+install-exec: install-binSCRIPTS - @$(NORMAL_INSTALL) - --install-data: -+install-data: install-dataDATA ++ ++install-exec: install-binSCRIPTS install-pkgdataDATA @$(NORMAL_INSTALL) + install-data: +@@ -197,12 +198,12 @@ install-data: install: install-exec install-data all @: -uninstall: uninstall-binSCRIPTS uninstall-sysconfDATA -+uninstall: uninstall-binSCRIPTS uninstall-dataDATA ++uninstall: uninstall-binSCRIPTS uninstall-pkgdataDATA install-strip: $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install installdirs: - $(mkinstalldirs) $(DATADIR)$(bindir) $(DATADIR)$(sysconfdir) -+ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) ++ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir) mostlyclean-generic: -@@ -230,8 +230,8 @@ maintainer-clean: maintainer-clean-gene +@@ -230,8 +231,8 @@ maintainer-clean: maintainer-clean-gene @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." -.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-sysconfDATA \ -install-sysconfDATA tags distdir info dvi installcheck install-exec \ -+.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-dataDATA \ -+install-dataDATA tags distdir info dvi installcheck install-exec \ ++.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-pkgdataDATA \ ++install-pkgdataDATA tags distdir info dvi installcheck install-exec \ install-data install uninstall all installdirs mostlyclean-generic \ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean diff --git a/www/surfraw/patches/patch-surfraw_conf_in b/www/surfraw/patches/patch-surfraw_conf_in index 83c12cf68ba..2ac428aabe1 100644 --- a/www/surfraw/patches/patch-surfraw_conf_in +++ b/www/surfraw/patches/patch-surfraw_conf_in @@ -1,5 +1,5 @@ ---- surfraw.conf.in.orig Wed Feb 28 11:43:57 2001 -+++ surfraw.conf.in Wed Feb 28 11:44:51 2001 +--- surfraw.conf.in.orig Tue Aug 22 19:01:50 2000 ++++ surfraw.conf.in Sun Oct 7 07:21:14 2001 @@ -27,7 +27,7 @@ def SURFRAW_conf $HOME/.surfraw.conf # name/path of browser executable @@ -14,4 +14,4 @@ # file containing list of elvi -def SURFRAW_elvi_list @sysconfdir@/surfraw_elvi.list -+def SURFRAW_elvi_list @datadir@/surfraw_elvi.list ++def SURFRAW_elvi_list @datadir@/@PACKAGE@/surfraw_elvi.list diff --git a/www/surfraw/pkg/PLIST b/www/surfraw/pkg/PLIST index b733a18bce1..e2c4dda73be 100644 --- a/www/surfraw/pkg/PLIST +++ b/www/surfraw/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.3 2001/03/01 01:41:20 obecian Exp $ +@comment $OpenBSD: PLIST,v 1.4 2001/10/07 18:17:44 heko Exp $ bin/W bin/altavista bin/amazon @@ -36,5 +36,10 @@ bin/webster bin/wetandwild bin/xxx bin/yahoo -share/surfraw_elvi.list +share/doc/surfraw/HACKING +share/doc/surfraw/README share/examples/surfraw/surfraw.conf +share/surfraw/surfraw_elvi.list +@dirrm share/surfraw +@dirrm share/examples/surfraw +@dirrm share/doc/surfraw