Initial import of surfraw 0.5.7.
Surfaw provides a fast unix command line interface to a variety of popular WWW search engines. Output is directed to a browser.
This commit is contained in:
parent
c49dec34af
commit
c535897a77
25
www/surfraw/Makefile
Normal file
25
www/surfraw/Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2000/08/21 15:09:31 naddy Exp $
|
||||||
|
|
||||||
|
DISTNAME= surfraw-0.5.7
|
||||||
|
CATEGORIES= www
|
||||||
|
NEED_VERSION= 1.319
|
||||||
|
|
||||||
|
HOMEPAGE= http://surfraw.sourceforge.net/
|
||||||
|
|
||||||
|
MAINTAINER= naddy@openbsd.org
|
||||||
|
|
||||||
|
PERMIT_PACKAGE_CDROM= Yes
|
||||||
|
PERMIT_PACKAGE_FTP= Yes
|
||||||
|
PERMIT_DISTFILES_CDROM= Yes
|
||||||
|
PERMIT_DISTFILES_FTP= Yes
|
||||||
|
|
||||||
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
|
MASTER_SITE_SUBDIR= surfraw
|
||||||
|
|
||||||
|
CONFIGURE_STYLE= gnu
|
||||||
|
SUBST_VARS= SYSCONFDIR
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/share/examples/
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
www/surfraw/files/md5
Normal file
3
www/surfraw/files/md5
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 (surfraw-0.5.7.tar.gz) = d73c9f49be0b337b57ad4e29323a72fa
|
||||||
|
RMD160 (surfraw-0.5.7.tar.gz) = effee1cfe79fdf0e58de7ddc0a4e0346e595c319
|
||||||
|
SHA1 (surfraw-0.5.7.tar.gz) = e0562728009ab04b6a5c17a9a00c471e8d8070ec
|
93
www/surfraw/patches/patch-elvi_Makefile_in
Normal file
93
www/surfraw/patches/patch-elvi_Makefile_in
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
$OpenBSD: patch-elvi_Makefile_in,v 1.1.1.1 2000/08/21 15:09:32 naddy Exp $
|
||||||
|
--- elvi/Makefile.in.orig Wed Aug 16 16:28:00 2000
|
||||||
|
+++ elvi/Makefile.in Wed Aug 16 16:32:56 2000
|
||||||
|
@@ -70,14 +70,14 @@ sr_browser = @sr_browser@
|
||||||
|
bin_SCRIPTS = altavista appwatch ask austlii cite cnn currency deja excite fast ftpsearch freshmeat google ircsearch linuxdoc netbsd newscientist pubmed raging rhyme slashdot sundocs sunsolve thesaurus translate W webster wetandwild xxx yahoo
|
||||||
|
|
||||||
|
|
||||||
|
-sysconf_DATA = surfraw_elvi.list
|
||||||
|
+data_DATA = surfraw_elvi.list
|
||||||
|
|
||||||
|
EXTRA_DIST = $(bin_SCRIPTS)
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
SCRIPTS = $(bin_SCRIPTS)
|
||||||
|
|
||||||
|
-DATA = $(sysconf_DATA)
|
||||||
|
+DATA = $(data_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
@@ -115,23 +115,23 @@ uninstall-binSCRIPTS:
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
done
|
||||||
|
|
||||||
|
-install-sysconfDATA: $(sysconf_DATA)
|
||||||
|
+install-dataDATA: $(data_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 \
|
||||||
|
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; \
|
||||||
|
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; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
-uninstall-sysconfDATA:
|
||||||
|
+uninstall-dataDATA:
|
||||||
|
@$(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; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
@@ -160,23 +160,23 @@ check-am: all-am
|
||||||
|
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-dataDATA
|
||||||
|
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-dataDATA
|
||||||
|
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)$(datadir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
@@ -206,8 +206,8 @@ maintainer-clean-am: maintainer-clean-g
|
||||||
|
|
||||||
|
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-dataDATA \
|
||||||
|
+install-dataDATA 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 \
|
18
www/surfraw/patches/patch-surfraw_conf_in
Normal file
18
www/surfraw/patches/patch-surfraw_conf_in
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
$OpenBSD: patch-surfraw_conf_in,v 1.1.1.1 2000/08/21 15:09:32 naddy Exp $
|
||||||
|
--- surfraw.conf.in.orig Mon Aug 7 01:09:01 2000
|
||||||
|
+++ surfraw.conf.in Mon Aug 14 01:03:37 2000
|
||||||
|
@@ -27,7 +27,7 @@ def SURFRAW_conf $HOME/.surfraw.conf
|
||||||
|
|
||||||
|
# name/path of browser executable
|
||||||
|
# e.g links, lynx, w3m, surfraw-netscape-remote, netscape etc
|
||||||
|
-def SURFRAW_browser @sr_browser@
|
||||||
|
+def SURFRAW_browser /usr/bin/lynx
|
||||||
|
|
||||||
|
# browser arguments, or "none"
|
||||||
|
def SURFRAW_browser_args none
|
||||||
|
@@ -59,4 +59,4 @@ def SURFRAW_results 30
|
||||||
|
defyn SURFRAW_escape_url_args yes
|
||||||
|
|
||||||
|
# file containing list of elvi
|
||||||
|
-def SURFRAW_elvi_list @sysconfdir@/surfraw_elvi.list
|
||||||
|
+def SURFRAW_elvi_list @datadir@/surfraw_elvi.list
|
1
www/surfraw/pkg/COMMENT
Normal file
1
www/surfraw/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
command line interface to popular WWW search engines
|
51
www/surfraw/pkg/DEINSTALL
Normal file
51
www/surfraw/pkg/DEINSTALL
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# $OpenBSD: DEINSTALL,v 1.1.1.1 2000/08/21 15:09:32 naddy Exp $
|
||||||
|
#
|
||||||
|
# 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=${SYSCONFDIR}/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" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Verify/process the command
|
||||||
|
#
|
||||||
|
case $2 in
|
||||||
|
DEINSTALL)
|
||||||
|
if [ -f ${CONFIG_FILE} ]; then
|
||||||
|
do_notice "$1"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 distname DEINSTALL" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
6
www/surfraw/pkg/DESCR
Normal file
6
www/surfraw/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Surfaw provides a fast unix command line interface to a variety of
|
||||||
|
popular WWW search engines. It supports google, altavista, dejanews,
|
||||||
|
amazon.com, research index, slashdot and many others. Output is
|
||||||
|
directed to a browser.
|
||||||
|
|
||||||
|
WWW: ${HOMEPAGE}
|
68
www/surfraw/pkg/INSTALL
Normal file
68
www/surfraw/pkg/INSTALL
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# $OpenBSD: INSTALL,v 1.1.1.1 2000/08/21 15:09:32 naddy Exp $
|
||||||
|
#
|
||||||
|
# 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=${SYSCONFDIR}/surfraw.conf
|
||||||
|
SAMPLE_CONFIG_DIR=$PREFIX/share/examples
|
||||||
|
|
||||||
|
# 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 -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
|
35
www/surfraw/pkg/PLIST
Normal file
35
www/surfraw/pkg/PLIST
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/08/21 15:09:32 naddy Exp $
|
||||||
|
bin/altavista
|
||||||
|
bin/appwatch
|
||||||
|
bin/ask
|
||||||
|
bin/austlii
|
||||||
|
bin/cite
|
||||||
|
bin/cnn
|
||||||
|
bin/currency
|
||||||
|
bin/deja
|
||||||
|
bin/excite
|
||||||
|
bin/fast
|
||||||
|
bin/ftpsearch
|
||||||
|
bin/freshmeat
|
||||||
|
bin/google
|
||||||
|
bin/ircsearch
|
||||||
|
bin/linuxdoc
|
||||||
|
bin/netbsd
|
||||||
|
bin/newscientist
|
||||||
|
bin/pubmed
|
||||||
|
bin/raging
|
||||||
|
bin/rhyme
|
||||||
|
bin/slashdot
|
||||||
|
bin/sundocs
|
||||||
|
bin/sunsolve
|
||||||
|
bin/surfraw
|
||||||
|
bin/surfraw-netscape-remote
|
||||||
|
bin/thesaurus
|
||||||
|
bin/translate
|
||||||
|
bin/W
|
||||||
|
bin/webster
|
||||||
|
bin/wetandwild
|
||||||
|
bin/xxx
|
||||||
|
bin/yahoo
|
||||||
|
share/surfraw_elvi.list
|
||||||
|
share/examples/surfraw.conf
|
Loading…
Reference in New Issue
Block a user