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 - multiple files in one paste
17 - syntax highlighting with GeSHi
24 phorkie stands on the shoulders of giants.
27 Install VersionControl_Git
28 ==========================
31 $ pear install versioncontrol_git-alpha
38 $ pear channel-discover mediawiki.googlecode.com/svn
39 $ pear install mediawiki/geshi
41 Note that this version of GeSHi is a bit outdated, but it's the fastest
49 $ pear channel-discover pear.twig-project.org
50 $ pear install twig/Twig
57 Make git repositories clonable
58 ==============================
59 To make git repositories clonable, you need to install ``git-daemon``
60 (``git-daemon-run`` package on Debian/Ubuntu).
62 Now make the repositories available by symlinking the paste repository
63 directory (``$GLOBALS['phorkie']['cfg']['repos']`` setting) into
64 ``/var/cache/git``, e.g.::
66 $ ln -s /home/user/www/paste/repos /var/cache/git/paste
68 Edit your ``config.php`` and set the ``$GLOBALS['phorkie']['cfg']['git']['public']``
69 setting to ``git://$yourhostname/git/paste/``.
70 The rest will be appended automatically.
73 You're on your own to setup writable repositories.
83 - OpenID-Login to get username+email as authorship information
86 - document how to keep disk usage low (block size)
88 - when 2 people edit, merge changes
90 - configurable highlights
97 Index page. Shows form for new paste
99 Display page for paste
103 Display raw file contents
112 Internal directory layout
113 =========================
117 1/ - git repository for paste #1
119 description - Description for the repository
120 2/ - git repository for paste #2