summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/polarblog')
-rw-r--r--www-apps/polarblog/Manifest1
-rw-r--r--www-apps/polarblog/files/postinstall-en.txt13
-rw-r--r--www-apps/polarblog/files/reconfig12
-rw-r--r--www-apps/polarblog/metadata.xml5
-rw-r--r--www-apps/polarblog/polarblog-1.11.1.ebuild33
5 files changed, 64 insertions, 0 deletions
diff --git a/www-apps/polarblog/Manifest b/www-apps/polarblog/Manifest
new file mode 100644
index 000000000000..3d47d2e88f61
--- /dev/null
+++ b/www-apps/polarblog/Manifest
@@ -0,0 +1 @@
+DIST pb_v1111.tgz 284842 SHA256 c3cefd0f95a24a6559d1665126c63ee4bab19f72417e33b22231675696dd26db
diff --git a/www-apps/polarblog/files/postinstall-en.txt b/www-apps/polarblog/files/postinstall-en.txt
new file mode 100644
index 000000000000..5764bcf53589
--- /dev/null
+++ b/www-apps/polarblog/files/postinstall-en.txt
@@ -0,0 +1,13 @@
+
+Now execute:
+
+cp ${MY_INSTALLDIR}/css/<one_of_css_files>.css.dist ${MY_INSTALLDIR}/css/<one_of_css_files>.css
+cp ${MY_INSTALLDIR}/config/config.php.dist ${MY_INSTALLDIR}/config/config.php
+and edit them. As a minimum, set LIB_PATH, DB_PREFIX, DB_HOST, DB_NAME,
+DB_USER, DB_PASSWORD, CSS.
+
+Then go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/install.php to finish the installation.
+Don't forget to delete ${MY_INSTALLDIR}/install.php when you are done.
+
+Read the docs at http://polarblog.polarlava.com/docs/ , in particular the
+.htaccess section.
diff --git a/www-apps/polarblog/files/reconfig b/www-apps/polarblog/files/reconfig
new file mode 100644
index 000000000000..89f55b48d928
--- /dev/null
+++ b/www-apps/polarblog/files/reconfig
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+die() {
+ echo "#####"
+ echo $1
+ echo "#####"
+ exit 1
+}
+
+if [ $1 = "install" ]; then
+ sed -e "s|/your/path/to/public_html/polarblog|${MY_INSTALLDIR}|" -i ${MY_INSTALLDIR}/config/config.php.dist || die "sed failed"
+fi
diff --git a/www-apps/polarblog/metadata.xml b/www-apps/polarblog/metadata.xml
new file mode 100644
index 000000000000..95c06f0095bb
--- /dev/null
+++ b/www-apps/polarblog/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+</pkgmetadata>
diff --git a/www-apps/polarblog/polarblog-1.11.1.ebuild b/www-apps/polarblog/polarblog-1.11.1.ebuild
new file mode 100644
index 000000000000..c3c3f55660a4
--- /dev/null
+++ b/www-apps/polarblog/polarblog-1.11.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit webapp
+
+MY_PV=${PV//./}
+S=${WORKDIR}/PB_v${MY_PV}
+
+IUSE=""
+
+DESCRIPTION="PolarBlog is an open source embedded weblog solution"
+HOMEPAGE="http://polarblog.polarlava.com"
+SRC_URI="http://polarblog.polarlava.com/releases/pb_v${MY_PV}.tgz"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+LICENSE="GPL-2"
+
+RDEPEND="virtual/httpd-php"
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc CHANGES INSTALL README
+
+ cp -R [[:lower:]][[:lower:]]* "${D}/${MY_HTDOCSDIR}"
+ webapp_serverowned "${MY_HTDOCSDIR}"
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_hook_script "${FILESDIR}"/reconfig
+ webapp_src_install
+}