Move off sourceforge
authorChristian Weiske <cweiske@cweiske.de>
Tue, 18 Apr 2017 20:56:53 +0000 (22:56 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 18 Apr 2017 20:56:53 +0000 (22:56 +0200)
README.rst
build.properties.dist [deleted file]
build.xml
composer.json
data/templates/base.htm
src/stub-phar.php
www/setup.php

index 422306ce22038092d2eb852dc5805788bd13c612..391db6b5e6739422f6f8eee5a9df7fe510da5db7 100644 (file)
@@ -1,10 +1,13 @@
-************************************
-phorkie - PHP and Git based pastebin
-************************************
+****************************
+phorkie - Git based pastebin
+****************************
 Self-hosted pastebin software written in PHP.
 Pastes are editable, may have multiple files and are stored in git repositories.
 
-Project page: http://sourceforge.net/p/phorkie/
+`Homepage <https://cweiske.de/phorkie.htm>`__
+| `Bug tracker <https://github.com/cweiske/phorkie/issues>`__
+| `Git repository <https://git.cweiske.de/phorkie.git>`__
+ยท `GitHub mirror <https://github.com/cweiske/phorkie/>`__
 
 .. contents:: Table of Contents
 
@@ -45,6 +48,18 @@ Features
 - text file detection for unknown file types
 
 
+========
+Download
+========
+phorkie is released as self-contained ``.phar`` file that includes
+all dependencies, as well as a normal zip file.
+
+.. LATESTRELEASE
+
+See `phorkie downloads page <http://cweiske.de/phorkie-download.htm>`_
+for all released versions.
+
+
 ============
 Installation
 ============
@@ -462,6 +477,7 @@ Releasing a new version
     $ phing phar
 #. Test.
 #. Tag the release in git
-#. Upload release to sourceforge::
+#. Run the script to update the homepage
 
-    $ phing deploy-sf
+    $ cd /home/cweiske/Dev/html/cweiske.de
+    $ ./scripts/update-phorkie.sh
diff --git a/build.properties.dist b/build.properties.dist
deleted file mode 100644 (file)
index b50ad08..0000000
+++ /dev/null
@@ -1 +0,0 @@
-sfuser=FIXME
index 65562772d0690bedc028bb5936a4e03026bdb565..8237c65bf24ffa20ce540568a06441ac0d6934f2 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -6,9 +6,6 @@
     tasks around phorkie, like creating a release version,
     tagging a release
   -->
-  <property file="build.properties" />
-
-  <property name="version-m"  value="0.7" />
   <property name="version"    value="0.7.0" />
   <property name="stability"  value="beta" />
   <property name="releasenotes" value="
@@ -27,9 +24,6 @@ Version 0.7.0 - 2015-11-05
   <property name="distfile"    value="dist/${zipfile}" />
   <property name="distpkgfile" value="dist/pear/${pkgfile}" />
 
-  <property name="sfproject"   value="phorkie" />
-  <property name="sffilepath"  value="p/ph/phorkie/" />
-
   <fileset id="fs.zip" dir=".">
    <include name="data/**"/>
    <include name="scripts/**"/>
@@ -306,7 +300,7 @@ Version 0.7.0 - 2015-11-05
   </target>
 
 
-  <target name="build-docs" description="render documentation">
+  <target name="docs" description="render documentation">
    <rST format="html" uptodate="true">
     <fileset refid="fs.doc"/>
     <mapper type="regexp" from="^(.+?).rst$" to="dist/docs/\1.html"/>
@@ -318,39 +312,13 @@ Version 0.7.0 - 2015-11-05
   </target>
 
 
-  <target name="release" depends="check,zip,pear,deploy-sf"
-   description="Release the version on sourceforge"
+  <target name="release" depends="check,zip,pear"
+   description="Package the new version"
    >
    <!-- meta-target -->
   </target>
 
 
-  <!--
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/phorkie-v0.1.0.zip
-  /home/frs/project/p/ph/phorkie/phorkie/v0.1/phorkie-v0.1.1.zip
-  https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
-  -->
-  <target name="deploy-sf" depends="check,zip,phar"
-   description="Upload release to sourceforge"
-   >
-    <delete dir="dist/deploy-sf" /><!-- make empty -->
-    <mkdir dir="dist/deploy-sf" />
-    <mkdir dir="dist/deploy-sf/v${version-m}" />
-    <copy file="${distfile}" tofile="dist/deploy-sf/v${version-m}/${zipfile}"/>
-    <copy file="${pharpath}" tofile="dist/deploy-sf/v${version-m}/${pharfile}"/>
-    <!-- test
-    <exec command="rsync -av dist/deploy-sf/ /tmp/test/" escape="false" />
-    -->
-    <exec
-     command="rsync -av -e ssh dist/deploy-sf/ ${sfuser},${sfproject}@frs.sourceforge.net:/home/frs/project/${sffilepath}/${sfproject}/"
-     escape="false" checkreturn="false"
-     />
-    <!-- rsync always returns code 23 on sourceforge releases, so we
-         can't check return values -->
-  </target>
-
-
   <target name="preparedirs">
     <mkdir dir="dist" />
   </target>
@@ -359,9 +327,6 @@ Version 0.7.0 - 2015-11-05
    description="Check variables"
    >
     <fail unless="version" message="Version not defined!" />
-    <fail unless="sfuser" message="Sourceforge username not defined!" />
-    <fail unless="sfproject" message="Sourceforge project name not defined!" />
-    <fail unless="sffilepath" message="Sourceforge project file path not defined!" />
   </target>
 
 </project>
index caf409d675292778457d4e5ccc8464a2be168081..8e91f298bc54ce14d8bcf6f538ba9be1fb6bb4ef 100644 (file)
@@ -2,7 +2,7 @@
     "name": "cweiske/phorkie",
     "type": "project",
     "license": "AGPL-3.0+",
-    "homepage": "http://sourceforge.net/p/phorkie/",
+    "homepage": "https://cweiske.de/phorkie.htm",
     "authors": [
         {
             "name": "Christian Weiske",
index 8f09ffb34fef143a1a82e5e55d14a81ecd26deb3..7eef70f6a3b5e851ec4538dcd2575b3768c5e9a9 100644 (file)
@@ -92,7 +92,7 @@
   </div>
 
   <div class="container footer">
-   <a href="//sf.net/p/phorkie/">phorkie</a>,
+   <a href="https://cweiske.de/phorkie.htm">phorkie</a>,
    the self-hosted, git-based pastebin software is available under the
    <a href="http://www.gnu.org/licenses/agpl-3.0.html">
     <abbr title="GNU Affero General Public License">AGPL</abbr></a>.
index 95e894cb123d6f3420f3eff1b6acb2c76d3bc85b..859152bf8c6d6e3993ec3ef00ab64efb83bc0f5d 100644 (file)
@@ -9,7 +9,7 @@
  * @author    Christian Weiske <cweiske@cweiske.de>
  * @copyright 2014 Christian Weiske
  * @license   http://www.gnu.org/licenses/agpl.html GNU AGPL v3
- * @link      http://phorkie.sf.net/
+ * @link      https://cweiske.de/phorkie.htm
  */
 if (!in_array('phar', stream_get_wrappers()) || !class_exists('Phar', false)) {
     echo "Phar extension not avaiable\n";
index 2656c9ca0bb2dc9e52e6f974142197aa8a43854b..909306f06e179051dc841e25d35feb2bb6f24587 100644 (file)
@@ -133,7 +133,7 @@ $out .= <<<HTM
   </div>
 
   <div class="container footer">
-   <a href="//sf.net/p/phorkie/">phorkie</a>,
+   <a href="https://cweiske.de/phorkie.htm">phorkie</a>,
    the self-hosted, git-based pastebin software is available under the
    <a href="http://www.gnu.org/licenses/agpl-3.0.html">
     <abbr title="GNU Affero General Public License">AGPL</abbr></a>.