Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 176 lines (143 sloc) 5.06 KB
<h2>Download Geany-Plugins</h2>
<?php
$dir = "./geany-plugins/";
if($handle = opendir($dir))
{
$versions = Array();
while(false !== ($file = readdir($handle)))
{
if( preg_match("/.tar.gz$/", $file) )
{
$file = substr($file, 14);
$file = substr($file, 0, -7);
$versions[] = $file;
}
if( preg_match("/.exe$/", $file) )
{
$file = substr($file, 14);
$file = substr($file, 0, -10);
$wversions[] = $file;
}
}
closedir($handle);
$version = max($versions);
$wversion = max($wversions);
echo "The latest version for Linux/Unix is " . $version . ", you should take a look at the <a href=\"./geany-plugins/geany-plugins-" . $version . ".NEWS\">release notes</a>.<br />\n";
echo "The latest version for Windows is " . $wversion . ", <a href=\"./geany-plugins/geany-plugins-" . $wversion . ".NEWS\">release notes</a>.<br />\n";
echo "<table>";
echo "<tr>";
echo " <th>Download</th>";
echo " <th>SIG</th>";
echo " <th>";
if ($_GET['hash'] != "md5")
{
echo "<a href=\"?site=downloads&amp;hash=md5\">MD5</a> ";
}
else
{
echo "MD5 ";
}
echo "/";
if ($_GET['hash'] != "sha1")
{
echo " <a href=\"?site=downloads&amp;hash=sha1\">SHA1</a> ";
}
else
{
echo " SHA1";
}
echo "</tr>";
if(file_exists($dir . "geany-plugins-" . $version . ".tar.gz") &&
file_exists($dir . "geany-plugins-" . $version . ".tar.gz.sig"))
{
echo "<tr>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" . $version . ".tar.gz\">geany-plugins-" . $version . ".tar.gz</a></td>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" . $version . ".tar.gz.sig\">GPG Signature</a></td>";
if ($_GET['hash'] == "sha1")
{
echo " <td><pre>" . sha1_file($dir . "geany-plugins-" . $version . ".tar.gz") . "</pre></td>";
} else {
echo " <td><pre>" . md5_file($dir . "geany-plugins-" . $version . ".tar.gz") . "</pre></td>";
}
echo "</tr>";
}
if(file_exists($dir . "geany-plugins-" . $version . ".tar.bz2") &&
file_exists($dir . "geany-plugins-" . $version . ".tar.bz2.sig"))
{
echo "<tr>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" . $version . ".tar.bz2\">geany-plugins-" . $version . ".tar.bz2</a></td>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" . $version . ".tar.bz2.sig\">GPG Signature</a></td>";
if ($_GET['hash'] == "sha1")
{
echo " <td><pre>" . sha1_file($dir . "geany-plugins-" . $version . ".tar.bz2") . "</pre></td>";
} else {
echo " <td><pre>" . md5_file($dir . "geany-plugins-" . $version . ".tar.bz2") . "</pre></td>";
}
echo "</tr>";
}
if(file_exists($dir . "geany-plugins-" . $wversion . "_setup.exe") &&
file_exists($dir . "geany-plugins-" . $wversion . "_setup.exe.sig"))
{
echo "<tr>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" .$wversion . "_setup.exe\">geany-plugins-" . $wversion . "_setup.exe</a></td>";
echo " <td><a href=\"./geany-plugins/geany-plugins-" .$wversion . "_setup.exe.sig\">GPG Signature</a></td>";
if ($_GET['hash'] == "sha1")
{
echo " <td><pre>" . sha1_file($dir . "geany-plugins-" . $wversion . "_setup.exe") . "</pre></td>";
} else {
echo " <td><pre>" . md5_file($dir . "geany-plugins-" . $wversion . "_setup.exe") . "</pre></td>";
}
echo "</tr>";
}
echo "</table>";
echo "<br /><a href=\"./geany-plugins\">Older versions of Geany-Plugins can also be downloaded</a>.";
}
else
{
echo "No plugins available at the moment.";
}
?>
<h2>Verifying Signatures</h2>
<p>The tarballs are signed with a GPG key to make sure the source code
wasn't compromised somewhere on the net. You can verify you have the correct
tarballs by checking if the GPG signature is correct. To do this, follow
these instructions:</p>
<ul>
<li>Import the key via <code>gpg --recv-keys 588752a1</code></li>
<li>Verify the downloaded archive either with
<code>gpg --verify geany-plugins-0.20.tar.bz2.sig geany-plugins-0.20.tar.bz2</code> or
<code>gpg --verify geany-plugins-0.20.tar.gz.sig geany-plugins-0.20.tar.gz</code>
</li>
</ul>
<p>The command's output should state something like "Good Signature" and
should return exit code 0. If you get another exit code it's likely,
something went wrong.</p>
<p>Another complete example:</p>
<code>
wget http://download.geany.org/hyperair-pubkey.txt<br />
gpg --import &lt; hyperair-pubkey.txt<br />
gpg --verify geany-plugins-0.20.tar.bz2.sig geany-plugins-0.20.tar.bz2
</code>
<h2>Download directly from version control</h2>
<p>You can pull the sources for Geany-Plugins directly from version control
as well. To do this, just clone the <a href=
"https://github.com/geany/geany-plugins">Git repository</a> like this:</p>
<code>
git clone git://github.com/geany/geany-plugins.git geany-plugins
</code>
<p>You can build the plugins from those sources then using Waf:</p>
<code>
./waf configure<br />
./waf build -p -k
</code>
<p>You can either copy the resulting .so files to ~/.config/geany/plugins/ or
install them to /usr/share/geany/ with running following command as root:</p>
<code>
./waf install
</code>
<p>Or either do it the autotools way as well:</p>
<code>
./autogen.sh # Note this already runs ./configure<br />
make<br >
make install
</code>
Something went wrong with that request. Please try again.