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
18 - delete existing files
19 - multiple files in one paste
20 - syntax highlighting with GeSHi
27 phorkie stands on the shoulders of giants.
30 Install VersionControl_Git
31 ==========================
34 $ pear install versioncontrol_git-alpha
41 $ pear channel-discover mediawiki.googlecode.com/svn
42 $ pear install mediawiki/geshi
44 Note that this version of GeSHi is a bit outdated, but it's the fastest
52 $ pear channel-discover pear.twig-project.org
53 $ pear install twig/Twig
60 Make git repositories clonable
61 ==============================
62 To make git repositories clonable, you need to install ``git-daemon``
63 (``git-daemon-run`` package on Debian/Ubuntu).
65 Now make the repositories available by symlinking the paste repository
66 directory (``$GLOBALS['phorkie']['cfg']['repos']`` setting) into
67 ``/var/cache/git``, e.g.::
69 $ ln -s /home/user/www/paste/repos /var/cache/git/paste
71 Edit your ``config.php`` and set the ``$GLOBALS['phorkie']['cfg']['git']['public']``
72 setting to ``git://$yourhostname/git/paste/``.
73 The rest will be appended automatically.
76 You're on your own to setup writable repositories.
86 - OpenID-Login to get username+email as authorship information
89 - document how to keep disk usage low (block size)
91 - when 2 people edit, merge changes
93 - configurable highlights
100 Index page. Shows form for new paste
102 Display page for paste
106 Display raw file contents
115 Internal directory layout
116 =========================
120 1/ - git repository for paste #1
122 description - Description for the repository
123 2/ - git repository for paste #2