aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-09-18 03:05:58 +0800
committerade <ade@FreeBSD.org>2000-09-18 03:05:58 +0800
commitb8d0f1414836f24ec9d0d2f55c00fa436d56bd0a (patch)
tree52ece5043a2661120635a41e984df3f3018de167 /www
parent68ba635c031ef6db299096cd6204aab25ecbd025 (diff)
downloadfreebsd-ports-gnome-b8d0f1414836f24ec9d0d2f55c00fa436d56bd0a.tar.gz
freebsd-ports-gnome-b8d0f1414836f24ec9d0d2f55c00fa436d56bd0a.tar.zst
freebsd-ports-gnome-b8d0f1414836f24ec9d0d2f55c00fa436d56bd0a.zip
Update to version 1.0.1
PR: 21326 Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r--www/surfraw/Makefile20
-rw-r--r--www/surfraw/distinfo2
-rw-r--r--www/surfraw/files/patch-ac10
-rw-r--r--www/surfraw/files/patch-ad91
-rw-r--r--www/surfraw/files/patch-ae11
-rw-r--r--www/surfraw/files/patch-af92
-rw-r--r--www/surfraw/pkg-deinstall53
-rw-r--r--www/surfraw/pkg-install67
-rw-r--r--www/surfraw/pkg-plist6
9 files changed, 335 insertions, 17 deletions
diff --git a/www/surfraw/Makefile b/www/surfraw/Makefile
index 0633974a20af..ce46a103e213 100644
--- a/www/surfraw/Makefile
+++ b/www/surfraw/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= surfraw
-PORTVERSION= 0.5.7
+PORTVERSION= 1.0.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= surfraw
@@ -14,19 +14,9 @@ MAINTAINER= naddy@mips.inka.de
GNU_CONFIGURE= yes
-ELVI= W altavista appwatch ask austlii cite cnn currency deja excite \
- fast freshmeat ftpsearch google ircsearch linuxdoc netbsd \
- newscientist pubmed raging rhyme slashdot sundocs sunsolve \
- thesaurus translate webster wetandwild xxx yahoo \
-
-do-install:
-.for i in ${ELVI}
- ${INSTALL_SCRIPT} ${WRKSRC}/elvi/${i} ${PREFIX}/bin
-.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/surfraw ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/surfraw-netscape-remote ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/surfraw/
- ${INSTALL_DATA} ${WRKSRC}/elvi/surfraw_elvi.list ${PREFIX}/share/surfraw/
- ${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/etc/surfraw.conf.sample
+post-install:
+ ${MKDIR} ${PREFIX}/share/examples/surfraw
+ ${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/share/examples/surfraw
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff --git a/www/surfraw/distinfo b/www/surfraw/distinfo
index ddaa9e52a7ed..5e2f9e69293f 100644
--- a/www/surfraw/distinfo
+++ b/www/surfraw/distinfo
@@ -1 +1 @@
-MD5 (surfraw-0.5.7.tar.gz) = d73c9f49be0b337b57ad4e29323a72fa
+MD5 (surfraw-1.0.1.tar.gz) = da4b780bf227f74cc39679b81b0503fc
diff --git a/www/surfraw/files/patch-ac b/www/surfraw/files/patch-ac
new file mode 100644
index 000000000000..bfa2e8128653
--- /dev/null
+++ b/www/surfraw/files/patch-ac
@@ -0,0 +1,10 @@
+--- Makefile.am.orig Thu Aug 24 20:43:26 2000
++++ Makefile.am Sun Sep 17 16:26:39 2000
+@@ -3,7 +3,6 @@
+ SUBDIRS = elvi
+
+ bin_SCRIPTS = surfraw surfraw-netscape-remote
+-sysconf_DATA = surfraw.conf
+ devel_extra = banner prebuild
+ EXTRA_DIST = surfraw.lsm.in surfraw.in surfraw.spec.in \
+ aclocal.m4 \
diff --git a/www/surfraw/files/patch-ad b/www/surfraw/files/patch-ad
new file mode 100644
index 000000000000..9fb345ead26b
--- /dev/null
+++ b/www/surfraw/files/patch-ad
@@ -0,0 +1,91 @@
+--- Makefile.in.orig Fri Aug 25 15:44:47 2000
++++ Makefile.in Sun Sep 17 16:26:48 2000
+@@ -70,7 +70,6 @@
+ SUBDIRS = elvi
+
+ bin_SCRIPTS = surfraw surfraw-netscape-remote
+-sysconf_DATA = surfraw.conf
+ devel_extra = banner prebuild
+ EXTRA_DIST = surfraw.lsm.in surfraw.in surfraw.spec.in aclocal.m4 $(devel_extra)
+
+@@ -80,8 +79,6 @@
+ surfraw-netscape-remote
+ SCRIPTS = $(bin_SCRIPTS)
+
+-DATA = $(sysconf_DATA)
+-
+ DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
+ Makefile.in NEWS TODO aclocal.m4 config.guess config.sub configure \
+ configure.in install-sh missing mkinstalldirs \
+@@ -139,25 +136,6 @@
+ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
+ done
+
+-install-sysconfDATA: $(sysconf_DATA)
+- @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- @list='$(sysconf_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; \
+- else if test -f $$p; then \
+- echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
+- $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
+- fi; fi; \
+- done
+-
+-uninstall-sysconfDATA:
+- @$(NORMAL_UNINSTALL)
+- list='$(sysconf_DATA)'; for p in $$list; do \
+- rm -f $(DESTDIR)$(sysconfdir)/$$p; \
+- done
+-
+ # This directory's subdirectories are mostly independent; you can cd
+ # into them and run `make' without going through this Makefile.
+ # To change the values of `make' variables: instead of editing Makefiles,
+@@ -313,7 +291,7 @@
+ check: check-recursive
+ installcheck-am:
+ installcheck: installcheck-recursive
+-install-exec-am: install-binSCRIPTS install-sysconfDATA
++install-exec-am: install-binSCRIPTS
+ install-exec: install-exec-recursive
+
+ install-data-am:
+@@ -322,15 +300,15 @@
+ install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+ install: install-recursive
+-uninstall-am: uninstall-binSCRIPTS uninstall-sysconfDATA
++uninstall-am: uninstall-binSCRIPTS
+ uninstall: uninstall-recursive
+-all-am: Makefile $(SCRIPTS) $(DATA)
++all-am: Makefile $(SCRIPTS)
+ all-redirect: all-recursive
+ install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+ installdirs: installdirs-recursive
+ installdirs-am:
+- $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(bindir)
+
+
+ mostlyclean-generic:
+@@ -363,12 +341,11 @@
+ maintainer-clean: maintainer-clean-recursive
+ -rm -f config.status
+
+-.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-sysconfDATA \
+-install-sysconfDATA install-data-recursive uninstall-data-recursive \
+-install-exec-recursive uninstall-exec-recursive installdirs-recursive \
+-uninstalldirs-recursive all-recursive check-recursive \
+-installcheck-recursive info-recursive dvi-recursive \
+-mostlyclean-recursive distclean-recursive clean-recursive \
++.PHONY: uninstall-binSCRIPTS install-binSCRIPTS install-data-recursive \
++uninstall-data-recursive install-exec-recursive \
++uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
++all-recursive check-recursive installcheck-recursive info-recursive \
++dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
+ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
+ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
+ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
diff --git a/www/surfraw/files/patch-ae b/www/surfraw/files/patch-ae
new file mode 100644
index 000000000000..85f7d8f6771f
--- /dev/null
+++ b/www/surfraw/files/patch-ae
@@ -0,0 +1,11 @@
+--- elvi/Makefile.am.orig Sun Sep 17 14:45:18 2000
++++ elvi/Makefile.am Sun Sep 17 14:48:39 2000
+@@ -34,7 +34,7 @@
+ xxx \
+ yahoo
+
+-sysconf_DATA = surfraw_elvi.list
++pkgdata_DATA = surfraw_elvi.list
+
+ EXTRA_DIST = $(bin_SCRIPTS)
+
diff --git a/www/surfraw/files/patch-af b/www/surfraw/files/patch-af
new file mode 100644
index 000000000000..18f5a83857e7
--- /dev/null
+++ b/www/surfraw/files/patch-af
@@ -0,0 +1,92 @@
+--- elvi/Makefile.in.orig Sun Sep 17 14:45:22 2000
++++ elvi/Makefile.in Sun Sep 17 14:50:10 2000
+@@ -70,14 +70,14 @@
+ bin_SCRIPTS = altavista appwatch ask austlii britannica cite cnn currency deja excite fast ftpsearch freshmeat jake google ircsearch linuxdoc netbsd newscientist pubmed raging rhyme slashdot sundocs stockquote sunsolve thesaurus translate W webster wetandwild xxx yahoo
+
+
+-sysconf_DATA = surfraw_elvi.list
++pkgdata_DATA = surfraw_elvi.list
+
+ EXTRA_DIST = $(bin_SCRIPTS)
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_CLEAN_FILES =
+ SCRIPTS = $(bin_SCRIPTS)
+
+-DATA = $(sysconf_DATA)
++DATA = $(pkgdata_DATA)
+
+ DIST_COMMON = Makefile.am Makefile.in
+
+@@ -115,23 +115,23 @@
+ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
+ done
+
+-install-sysconfDATA: $(sysconf_DATA)
++install-pkgdataDATA: $(pkgdata_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- @list='$(sysconf_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)$(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)$(pkgdatadir)/$$p"; \
++ $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
+ fi; fi; \
+ done
+
+-uninstall-sysconfDATA:
++uninstall-pkgdataDATA:
+ @$(NORMAL_UNINSTALL)
+- list='$(sysconf_DATA)'; for p in $$list; do \
+- rm -f $(DESTDIR)$(sysconfdir)/$$p; \
++ list='$(pkgdata_DATA)'; for p in $$list; do \
++ rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
+ done
+ tags: TAGS
+ TAGS:
+@@ -160,23 +160,23 @@
+ check: check-am
+ installcheck-am:
+ installcheck: installcheck-am
+-install-exec-am: install-binSCRIPTS install-sysconfDATA
++install-exec-am: install-binSCRIPTS
+ install-exec: install-exec-am
+
+-install-data-am:
++install-data-am: install-pkgdataDATA
+ install-data: install-data-am
+
+ install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+ install: install-am
+-uninstall-am: uninstall-binSCRIPTS uninstall-sysconfDATA
++uninstall-am: uninstall-binSCRIPTS uninstall-pkgdataDATA
+ uninstall: uninstall-am
+ all-am: Makefile $(SCRIPTS) $(DATA)
+ all-redirect: all-am
+ install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+ installdirs:
+- $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir)
+
+
+ mostlyclean-generic:
+@@ -206,8 +206,8 @@
+
+ maintainer-clean: maintainer-clean-am
+
+-.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-sysconfDATA \
+-install-sysconfDATA tags distdir info-am info dvi-am dvi check check-am \
++.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-pkgdataDATA \
++install-pkgdataDATA tags distdir info-am info dvi-am dvi check check-am \
+ installcheck-am installcheck install-exec-am install-exec \
+ install-data-am install-data install-am install uninstall-am uninstall \
+ all-redirect all-am all installdirs mostlyclean-generic \
diff --git a/www/surfraw/pkg-deinstall b/www/surfraw/pkg-deinstall
new file mode 100644
index 000000000000..be71e9d11ff4
--- /dev/null
+++ b/www/surfraw/pkg-deinstall
@@ -0,0 +1,53 @@
+#!/bin/sh
+#
+# De-installation setup of surfraw
+
+# exit on errors, use a sane path and install prefix
+#
+set -e
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PREFIX=${PKG_PREFIX:-/usr/local}
+CONFIG_FILE=${PREFIX}/etc/surfraw.conf
+
+# Function: tell the user what they need to do to delete the port completely
+#
+do_notice()
+{
+ echo
+ echo "+---------------"
+ echo "| To completely deinstall the $1 package you need to perform"
+ echo "| these steps as root:"
+ echo "|"
+ echo "| rm -f ${CONFIG_FILE}"
+ echo "|"
+ echo "| Do not do this if you plan on re-installing $1"
+ echo "| at some future time."
+ echo "+---------------"
+ echo
+}
+
+# Verify proper execution
+#
+if [ $# -ne 2 ]; then
+ echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
+ exit 1
+fi
+
+# Verify/process the command
+#
+case $2 in
+ DEINSTALL)
+ if [ -f ${CONFIG_FILE} ]; then
+ do_notice "$1"
+ fi
+ ;;
+ POST-DEINSTALL)
+ : nothing to post-deinstall for this port
+ ;;
+ *)
+ echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/www/surfraw/pkg-install b/www/surfraw/pkg-install
new file mode 100644
index 000000000000..b6ecbf0e7c0d
--- /dev/null
+++ b/www/surfraw/pkg-install
@@ -0,0 +1,67 @@
+#!/bin/sh
+#
+# Pre/post-installation setup of surfraw
+
+# exit on errors, use a sane path and install prefix
+#
+set -e
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PREFIX=${PKG_PREFIX:-/usr/local}
+CONFIG_FILE=${PREFIX}/etc/surfraw.conf
+SAMPLE_CONFIG_DIR=${PREFIX}/share/examples/surfraw
+
+# Function: tell the user what they need to do to use the port just installed
+#
+do_notice()
+{
+ echo
+ echo "+---------------"
+ echo "| The existing $1 configuration file, ${CONFIG_FILE},"
+ echo "| has NOT been changed. You may want to compare it to the"
+ echo "| current sample files in ${SAMPLE_CONFIG_DIR}"
+ echo "| and update your configuration as needed."
+ echo "+---------------"
+ echo
+}
+
+# Function: install configuration files
+#
+do_install()
+{
+ install -c -o root -g wheel ${SAMPLE_CONFIG_DIR}/surfraw.conf ${CONFIG_FILE}
+ echo
+ echo "+---------------"
+ echo "| The $1 configuration file, ${CONFIG_FILE},"
+ echo "| has been installed. Please view this file and change"
+ echo "| the configuration to meet your needs"
+ echo "+---------------"
+ echo
+}
+
+# Verify proper execution
+#
+if [ $# -ne 2 ]; then
+ echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
+ exit 1
+fi
+
+# Verify/process the command
+#
+case $2 in
+ PRE-INSTALL)
+ : nothing to pre-install for this port
+ ;;
+ POST-INSTALL)
+ if [ -f ${CONFIG_FILE} ]; then
+ do_notice "$1"
+ else
+ do_install "$1"
+ fi
+ ;;
+ *)
+ echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/www/surfraw/pkg-plist b/www/surfraw/pkg-plist
index e81b2e2f5976..cda4d07d3ade 100644
--- a/www/surfraw/pkg-plist
+++ b/www/surfraw/pkg-plist
@@ -3,6 +3,7 @@ bin/altavista
bin/appwatch
bin/ask
bin/austlii
+bin/britannica
bin/cite
bin/cnn
bin/currency
@@ -13,6 +14,7 @@ bin/freshmeat
bin/ftpsearch
bin/google
bin/ircsearch
+bin/jake
bin/linuxdoc
bin/netbsd
bin/newscientist
@@ -20,6 +22,7 @@ bin/pubmed
bin/raging
bin/rhyme
bin/slashdot
+bin/stockquote
bin/sundocs
bin/sunsolve
bin/surfraw
@@ -30,6 +33,7 @@ bin/webster
bin/wetandwild
bin/xxx
bin/yahoo
-etc/surfraw.conf.sample
+share/examples/surfraw/surfraw.conf
share/surfraw/surfraw_elvi.list
+@dirrm share/examples/surfraw
@dirrm share/surfraw