1 ************************************
2 phorkie - PHP and Git based pastebin
3 ************************************
4 Self-hosted pastebin software written in PHP.
5 Pastes are editable, may have multiple files and are stored in git repositories.
7 Homepage: http://sourceforge.net/p/phorkie/
9 .. contents:: Table of Contents
14 - every paste is a git repository
16 - repositories can be cloned
17 - clone url can be displayed
21 - delete existing files
22 - replace file with upload
23 - multiple files in one paste
24 - syntax highlighting with GeSHi
26 - image upload + display
27 - external tool support
31 - history in the sidebar
33 - old files can be downloaded easily
38 phorkie stands on the shoulders of giants.
41 Install VersionControl_Git
42 ==========================
45 $ pear install versioncontrol_git-alpha
48 Install Date_HumanDiff
49 ======================
52 $ pear install https://github.com/downloads/cweiske/Date_HumanDiff/Date_HumanDiff-0.1.0.tgz
59 $ pear channel-discover mediawiki.googlecode.com/svn
60 $ pear install mediawiki/geshi
62 Note that this version of GeSHi is a bit outdated, but it's the fastest
70 $ pear channel-discover pear.twig-project.org
71 $ pear install twig/Twig
78 Make git repositories clonable
79 ==============================
80 To make git repositories clonable, you need to install ``git-daemon``
81 (``git-daemon-run`` package on Debian/Ubuntu).
83 Now make the repositories available by symlinking the paste repository
84 directory (``$GLOBALS['phorkie']['cfg']['repos']`` setting) into
85 ``/var/cache/git``, e.g.::
87 $ ln -s /home/user/www/paste/repos/git /var/cache/git/paste
89 Edit your ``config.php`` and set the ``$GLOBALS['phorkie']['cfg']['git']['public']``
90 setting to ``git://$yourhostname/git/paste/``.
91 The rest will be appended automatically.
94 You're on your own to setup writable repositories.
103 - filters (xmllint --format, rapper)
105 - OpenID-Login to get username+email as authorship information
106 - document how to keep disk usage low (block size)
108 - when 2 people edit, merge changes
110 - configurable highlights
112 - autotags for file types
113 - Atom feed for new pastes
114 - Atom feed for paste changes
121 Index page. Shows form for new paste
123 Display page for paste
127 Display raw file contents
136 Internal directory layout
137 =========================
142 1/ - work directory for paste #1
143 2/ - work directory for paste #2
145 1.git/ - git repository for paste #1
146 description - Description for the repository
147 2.git/ - git repository for paste #2