Commit 8e216edb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Update packages functions

parent 511b3ae4
......@@ -15,7 +15,7 @@ function browse_old( $fold )
function pkgversion($name,$version)
{
$latest = array("vlc" => "1.1.12");
$latest = array("vlc" => "2.0.5");
if (!$latest[$name])
return;
......@@ -67,32 +67,7 @@ function pkgitem_sf($description,$version,$name,$top,$extradescription="",$md5="
function pkgitem($description,$version,$name,$top,$extradescription="")
{
static $mirror_row = 0;
pkgversion($top, $version);
echo "<h3>$description <i>$extradescription</i> (".DownloadSize("{$_SERVER["DOCUMENT_ROOT"]}pub/videolan/$top/$version/$name").")</h3>";
echo "<p><a href=\"http://get.videolan.org/$top/$version/$name\">$description</a> <i>$extradescription</i> (".DownloadSize("/opt/ftp/pub/videolan/$top/$version/$name").")</p>";
}
?>
<table>
<tbody><tr>
<th>Mirror</th>
<th>Location</th>
<th>Download</th>
</tr>
<?php
require $_SERVER["DOCUMENT_ROOT"]."/include/mirrors.php";
$mirror_start = $mirror_row;
echo " <tr id='mirror_row_random_$mirror_row'><td>Random mirror</td><td>Not too far away</td><td><a href='http://www.videolan.org/mirror-geo.php?file=$top/$version/$name'>Download</a></td></tr>\n ";
foreach( $mirrors as $mirror )
{
$url = $mirror[0]; $mirror_name = $mirror[1];
$country = $mirror[2]; $country_short = $mirror[3];
$type = $mirror[4];
echo " <tr id='mirror_row_$mirror_row'><!-- style='display:none;'--><td>$mirror_name</td><td class='$country_short'>$country</td><td><a href='http://www.videolan.org/mirror.php?mirror=$url&amp;file=$top/$version/$name'>Download</a> ($type)</td></tr>\n ";
$mirror_row++;
}
?>
<tr id='mirror_row_show_<?php echo $mirror_row; ?>'><td colspan="3"><a href="javascript:ShowMirrors(<?php echo $mirror_start; ?>,<?php echo $mirror_row; ?>);">Show full mirrors list</a></td></tr>
</tbody></table>
<?php
}
?>
......@@ -97,90 +97,6 @@ for FC 4 and 5 on <a href="http://freshrpms.net">FreshRPMs</a>.</p>
<h3>Other versions - Search</h3>
<p>Use <a href="http://rpm.pbone.net/">PBone.net</a> to search a lot of other versions of VLC for fedora or fedora compatible distributions.</p>
<?php
/*
<h1>VLC media player for Fedora Core 4</h1>
<h2>Yum repository</h2>
<p>VLC 0.8.5 is available for Fedora Core 4 from a YUM repository hosted at VideoLAN or one of its mirrors. All packages have been GPG signed by Jean-Paul Saman. Download the publickey <a href=http://www.m2x.nl/mambo/packages/gpg_pubkey_jean-paul.saman.asc>here</a>.</p>
<p>Add the <a href=http://www.m2x.nl/mambo/packages/gpg_pubkey_jean-paul.saman.asc>publickey</a> to the RPM database with:</p>
<pre>
$> rpm --import gpg_pubkey_jean-paul.saman.asc
</pre>
<p>Add the following files to your <b>/etc/yum.repos.d</b> directory for updating and installing VLC from a YUM repository. Change the baseurl to a mirror closest to you (see below for a list of mirrors). You will need at minimum <b>vlc.repo</b> and <b>vlc-contrib.repo</b> :</p>
<p>file: vlc.repo</p>
<pre>
[vlc]
name=VLC 0.8.5 - $basearch - VLC Base
baseurl=http://download.videolan.org/pub/videolan/vlc/0.8.5/fedora/$releasever/$basearch/vlc/0.8.5/vlc
enabled=1
gpgcheck=1
</pre>
<p>file: vlc-contrib.repo</p>
<pre>
[vlc-contrib]
name=VLC 0.8.5 - $basearch - Contrib
baseurl=http://download.videolan.org/pub/videolan/vlc/0.8.5/fedora/$releasever/$basearch/vlc/0.8.5/vlc-contrib
enabled=1
gpgcheck=1
</pre>
<p>file: vlc-devel.repo</p>
<pre>
[vlc-devel]
name=VLC 0.8.5 - $basearch - Devel
baseurl=http://download.videolan.org/pub/videolan/vlc/0.8.5/fedora/$releasever/$basearch/vlc/0.8.5/vlc-devel
enabled=1
gpgcheck=1
</pre>
<p>file: vlc-source.repo</p>
<pre>
[vlc-source]
name=VLC 0.8.5 - $basearch - Source
baseurl=http://download.videolan.org/pub/videolan/vlc/0.8.5/fedora/$releasever/$basearch/vlc/0.8.5/vlc-source
enabled=1
gpgcheck=1
</pre>
<p>The first thing you must do after creating the above file is to run <b>yum update</b> as root user. This will update the repository meta information on you system. After this you can install vlc.</p>
<pre>
$ yum update
$ yum install vlc
</pre>
<p>The yum repository is mirrored to :</p>
<?php pkgitem( "VLC Fedora Core Yum repository","vlc/0.8.5/fedora/4/i386/vlc/0.8.5/","","");?>
<h2>Install VLC from RPM packages</h2>
<p>Download the RPM packages tarball listed below. It includes all RPM's for vlc, 3rd party libraries not included in the distribution, devel RPM's, debug RPM's and source RPM's.</p>
<?php pkgitem( "VLC RPM packages","vlc/0.8.5/fc4","vlc-fc4.tar.gz","");?>
<p>Uncompress vlc-fc4.tar.gz in the same directory :</p>
<pre>
$ tar zxf &lt;package name&gt;
</pre>
<p>Then, as root, install the packages (use -ivh for installation and -Uvh for upgrade) :</p>
<pre>
$ rpm -ivh fedora/4/i386/vlc/0.8.5/base/*.rpm fedora/4/i386/vlc/0.8.5/contrib/*.rpm
</pre>
<h2>Older versions</h2>
<?php browse_old("vlc") ; ?>
*/ ?>
</div>
<?php footer('$Id$'); ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment