Add OpenSearch plugins for man.cgi, ports.cgi and query-pr.cgi

This commit is contained in:
Wolfram Schneider 2008-09-22 18:56:22 +00:00
parent c13c1c4647
commit e53fe4dcfe
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=32942
7 changed files with 73 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/search/Makefile,v 1.8 2000/11/07 04:05:36 kuriyama Exp $
# $FreeBSD: www/en/search/Makefile,v 1.9 2001/10/29 10:14:33 murray Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -12,6 +12,8 @@ DOCS+= search.sgml
DOCS+= searchhints.sgml
DOCS+= search-mid.sgml
SUBDIR+= opensearch
INDEXLINK= search.html
CLEANFILES+=atoz.sgml site.sgml

4
en/search/Makefile.inc Normal file
View file

@ -0,0 +1,4 @@
# $FreeBSD: www/en/releases/Makefile.inc,v 1.5 2000/11/07 04:05:21 kuriyama Exp $
WEBBASE?= /data/search
WEB_PREFIX?= ${.CURDIR}/../../..

View file

@ -0,0 +1,17 @@
# $FreeBSD: www/en/cgi/Makefile,v 1.34 2007/03/19 05:44:58 dougb Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
.endif
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif
DATA=
DATA+= opensearch.js
DATA+= man.xml
DATA+= ports.xml
DATA+= query-pr.xml
.include "${WEB_PREFIX}/share/mk/web.site.mk"

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xml:lang="de">
<ShortName>FreeBSD Manpages</ShortName>
<LongName>FreeBSD Manual Pages</LongName>
<Description>FreeBSD Manual Pages</Description>
<Url template="http://www.freebsd.org/cgi/man.cgi?query={searchTerms}&amp;sourceid=opensearch" type="text/html" />
<Developer>The FreeBSD Project</Developer>
<Contact>http://www.freebsd.org/</Contact>
<Image height="16" type="image/x-icon" width="16">http://www.freebsd.org/favicon.ico</Image>
<Language>de</Language>
</OpenSearchDescription>

View file

@ -0,0 +1,10 @@
function install(link) {
if (typeof(window.external) != 'undefined' && typeof(window.external.AddSearchProvider) != 'undefined') {
window.external.AddSearchProvider(link.href);
return false;
} else {
return confirm("The plugin couldnt be installed automatically. Display it instead?");
}
}

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xml:lang="de">
<ShortName>FreeBSD Ports</ShortName>
<LongName>FreeBSD Ports and Packages Collection</LongName>
<Description>FreeBSD Ports and Packages Collection</Description>
<Url template="http://www.freebsd.org/cgi/ports.cgi?query={searchTerms}&amp;sourceid=opensearch" type="text/html" />
<Developer>The FreeBSD Project</Developer>
<Contact>http://www.freebsd.org/</Contact>
<Image height="16" type="image/x-icon" width="16">http://www.freebsd.org/favicon.ico</Image>
<Language>de</Language>
</OpenSearchDescription>

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xml:lang="de">
<ShortName>FreeBSD PR</ShortName>
<LongName>FreeBSD Problem Reports</LongName>
<Description>FreeBSD Problem Reports</Description>
<Url template="http://www.freebsd.org/cgi/query-pr.cgi?pr={searchTerms}&amp;sourceid=opensearch" type="text/html" />
<Developer>The FreeBSD Project</Developer>
<Contact>http://www.freebsd.org/</Contact>
<Image height="16" type="image/x-icon" width="16">http://www.freebsd.org/favicon.ico</Image>
<Language>de</Language>
</OpenSearchDescription>