1 [%- PROCESS 'html/head.tmpl'
2 title_tag = g('%s Packages Search', organisation)
3 page_title = g('%s Packages Search', organisation)
4 keywords = g('Packages')
7 all_suites = [ 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge' ]
8 version_numbers = { sarge => '3.1',
14 current_release = 'sarge'
15 all_sections = [ 'main', 'contrib', 'non-free' ]
16 all_architectures = [ 'alpha', 'arm', 'hppa', 'i386', 'ia64',
17 'mips', 'mipsel', 'powerpc', 's390', 'sparc' ]
20 <p>[% g('This site provides you with information about all the packages available in the <a href="%s">%s</a> Package archive.', project_homepage, organisation) %]</p>
22 <p><em>[% g('Please contact <a href="mailto:%s">%s</a> if you encounter any problems!', admin.mail, admin.name) %]</em></p>
24 <h2>[% g('Browse through the lists of packages:') %]</h2>
26 <ul style="font-size:large">
27 [% FOREACH s IN all_suites %]
28 <li><a href="[% s %]/">[% s %]</a>
29 [% IF version_numbers.$s %]([% version_numbers.$s %])[% END %]</li>
33 <p>[% g('There is also a list of <a href="%s/main/newpkg">packages recently added to %s</a>.', all_suites.-1, all_suites.-1) %]</p>
36 <p>[% g('Old releases can be found at <a href="%s">%s</a>.', old_releases, old_releases) %]</p>
39 <h2>[% g('Search') %]</h2>
41 <h3>[% g('Search package directories') %]</h3>
43 <form method="GET" action="/search">
44 <label for="kw">[% g('Keyword:') %]</label>
45 <input type="text" size="30" name="keywords" id="kw">
46 <input type="submit" value="[% g('Search') %]"> <input type="reset" value="[% g('Reset') %]">
49 <input type="radio" name="searchon" value="names" id="onlynames" checked="checked">
50 <label for="onlynames">[% g('Package names only') %]</label>
51 <input type="radio" name="searchon" value="all" id="descs">
52 <label for="descs">[% g('Descriptions') %]</label>
53 <input type="radio" name="searchon" value="sourcenames" id="src">
54 <label for="src">[% g('Source package names') %]</label>
56 [% g('Only show exact matches:') %]
57 <input type="checkbox" name="exact" value="1">
61 [% FOREACH s IN all_suites %]
62 <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
64 <option value="all">[% g('any') %]</option>
67 <select name="section">
68 [% FOREACH s IN all_sections %]
69 <option value="[% s %]">[% s %]</option>
71 <option value="all" selected="selected">[% g('any') %]</option>
74 <p>[% g('There are shortcuts for some searches available:') %]</p>
76 <li>[% g('<code>%s<var>name</var></code> for the search on package names.', packages_homepage_abs) %]</li>
78 <li>[% g('<code>%ssrc:<var>name</var></code> for the search on source package names.', packages_homepage_abs) %]</li>
82 <h3><a name="search_contents">[% g('Search the contents of packages') %]</a></h3>
84 <p>[% g('This search engine allows you to search the contents of %s distributions for any files (or just parts of file names) that are part of packages. You can also get a full list of files in a given package.', organisation) %]<br>
85 <form method="GET" action="/search">
86 <input type="hidden" name="searchon" value="contents">
88 <label for="keyword">[% g('Keyword:') %]</label>
89 <input type="text" size="30" name="keywords" id="keyword">
91 <input type="submit" value="[% g('Search') %]">
92 <input type="reset" value="[% g('Reset') %]">
96 <input type="radio" name="mode" value="exactfilename" id="exactfilename" checked="checked">
97 <label for="exactfilename">[% g('packages that contain files named like this') %]</label>
99 <input type="radio" name="mode" value="" id="suffixpathname">
100 <label for="suffixpathname">[% g('packages that contain files whose names end with the keyword') %]</label>
102 <input type="radio" name="mode" value="filename" id="filename">
103 <label for="filename">[% g('packages that contain files whose names contain the keyword') %]</label>
105 <label for="distro">[% g('Distribution:') %]</label>
107 <select name="suite" id="distro">
108 [% FOREACH s IN all_suites %]
109 <option value="[% s %]" [% 'selected="selected"' IF s == current_release %]>[% s %]</option>
112 <label for="architecture">[% g('Architecture:') %]</label>
113 <select name="arch" id="architecture">
114 [% FOREACH a IN all_architectures %]
115 <option value="[% a %]">[% a %]</option>
117 <option value="any" selected="selected">[% g('any') %]</option>
121 [% PROCESS 'html/foot.tmpl' page_name=packages_homepage copyright.years = '1997 - 2009' %]