Add OpenSearch plugins for man.cgi, ports.cgi and query-pr.cgi
This commit is contained in:
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
|
|
@ -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
4
en/search/Makefile.inc
Normal 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}/../../..
|
||||
17
en/search/opensearch/Makefile
Normal file
17
en/search/opensearch/Makefile
Normal 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"
|
||||
13
en/search/opensearch/man.xml
Normal file
13
en/search/opensearch/man.xml
Normal 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}&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>
|
||||
|
||||
10
en/search/opensearch/opensearch.js
Normal file
10
en/search/opensearch/opensearch.js
Normal 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 couldn’t be installed automatically. Display it instead?");
|
||||
}
|
||||
}
|
||||
|
||||
13
en/search/opensearch/ports.xml
Normal file
13
en/search/opensearch/ports.xml
Normal 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}&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>
|
||||
|
||||
13
en/search/opensearch/query-pr.xml
Normal file
13
en/search/opensearch/query-pr.xml
Normal 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}&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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue