summaryrefslogtreecommitdiff
path: root/www-apps/dokuwiki
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/dokuwiki
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/dokuwiki')
-rw-r--r--www-apps/dokuwiki/Manifest10
-rw-r--r--www-apps/dokuwiki/dokuwiki-20160626e.ebuild77
-rw-r--r--www-apps/dokuwiki/dokuwiki-20170219e.ebuild77
-rw-r--r--www-apps/dokuwiki/files/htaccess10
-rw-r--r--www-apps/dokuwiki/files/htaccess-dist43
-rw-r--r--www-apps/dokuwiki/files/postinstall-en.txt52
-rw-r--r--www-apps/dokuwiki/metadata.xml20
7 files changed, 289 insertions, 0 deletions
diff --git a/www-apps/dokuwiki/Manifest b/www-apps/dokuwiki/Manifest
new file mode 100644
index 000000000000..576ad6042b69
--- /dev/null
+++ b/www-apps/dokuwiki/Manifest
@@ -0,0 +1,10 @@
+AUX htaccess 170 SHA256 62da7d1754d82a8408a324b37691b1b391ce222cb290234318f4e44f7cfae19a SHA512 a19dba09a2a5c6926b56ca1063e329e431253825550890be56a46faccd736aec7236167b5da1f0b0cfec47a9935f340f246b4bfaaaaeba06644d08a76fc52514 WHIRLPOOL 12b983669b61ded932a3bb8d65deb22f9143cbee75ab13ee63b1593e1a9ac21ffdaa3f250434107c8be2bb1afbfcd27416ad016a05245283b88418cb2c22f613
+AUX htaccess-dist 1639 SHA256 36747f3f013acb2698a253c91f9d9b9ac531efc8d6bb91de61367ea1f3e2c99e SHA512 8d05756eb04a61fc9a89b814d0cf9022feb57c3de10fa74cf1964bdba7910d25448109147facccd8447a4ff446cb7a0cf8d8134642061d23b03e0921b032fc76 WHIRLPOOL e2afd57b591c8625f7c197f584641afddfd89309c1d9d29632634f10f3f9697d69620d57ecc04baca01865b7c493655c04939a6d6088c35d526c99e046340c70
+AUX postinstall-en.txt 1791 SHA256 405a54af08d9d08f903bbd33398e7d716ab37228b2ff0e4af81dc2368d64f2bf SHA512 a7492810fad0c5ca6f3e724679ae753934b7a92f90663dc0e93608dca06d1a4b2ba04842e0755955b9b3e6ba63742a5b3c882d097c8c0e2df178d044f471c5b5 WHIRLPOOL 1389c2f1b7e550fa36b979664872de257c7177b4cc5976e90dcd86e4888ffaf439688a8d842490a806a58af9c689c2c40160e2969b7fc023886411a3a8893d0a
+DIST dokuwiki-2016-06-26e.tgz 3464178 SHA256 af63ccaa54b617a809d78642c7e83fe6581c545b869aab7440d63ab82b0120bd SHA512 b47c3a31b0bc731392703ed8d705717e7d1b75db0c44d822d8791c1e409d5285fe863a3dbd13bc60b73c01ca268f7a73a6a24c90edd211fd5c124d3a8be70039 WHIRLPOOL 028c5ac4c72d0bc29d8d534133e61749683169f1f5a5ad4627fff8cf9bcd9bd5b4cb6e5ac845cd1572f9417fe2c23e2234d484c0920250ffacc830075abfa913
+DIST dokuwiki-2017-02-19e.tgz 3505643 SHA256 93172a28ab88107a8abac1e6a34fa6cef54b6e407cd03a8cc14d2a604a63e888 SHA512 6fadb64f9d8394731f346708849d8828b33f4f775e23bca97896b2e06bbfc3b70a6fc17d63dcef8199fdb0aaf0b8291eb0eebcdff7b81524b2d454229eb20be4 WHIRLPOOL b3eeee3bff1d1ea8bd62432dcd79480b929cdb4a86331aa0179690d6c7602ba8176d79c276316ea4a9b81a645e91e7739d2332dc23ccc249867328556f5540da
+EBUILD dokuwiki-20160626e.ebuild 1658 SHA256 a823628c4acd2d1b043e3ce0524c09aaec007ee9d479e01e3585940dcd42afe6 SHA512 cd6a68cfd2eac03ec5e77e44aaad86abad20ad1065ca2838a3ab5cf80bc3f84b4e4245684c7f892072cca196340a5f6b25539120953ee50eecc1aa069b4ecf9b WHIRLPOOL bddfc1b04c2982f1e58a6ccefd8caeb4ae934228361ffe7ad0eaf537021e7f9de06dea54f9ae8317df44f2c625f800f3b7ff9e26ce2c7d61a5f386597a363a43
+EBUILD dokuwiki-20170219e.ebuild 1658 SHA256 a823628c4acd2d1b043e3ce0524c09aaec007ee9d479e01e3585940dcd42afe6 SHA512 cd6a68cfd2eac03ec5e77e44aaad86abad20ad1065ca2838a3ab5cf80bc3f84b4e4245684c7f892072cca196340a5f6b25539120953ee50eecc1aa069b4ecf9b WHIRLPOOL bddfc1b04c2982f1e58a6ccefd8caeb4ae934228361ffe7ad0eaf537021e7f9de06dea54f9ae8317df44f2c625f800f3b7ff9e26ce2c7d61a5f386597a363a43
+MISC ChangeLog 3811 SHA256 420ed0a0f1093129de0574ad59816dc0a5ec9760e422d1f765346645c39bdf65 SHA512 3904ade7c1e87db4b07d06f5cf5469a402ada94df7957af644ddfd16feb27e37cdcf59dfaa612a633b29d1371c5477fa86ca507ecbaf8e5a03e872ba4e39304b WHIRLPOOL 17b8b0923d34d4f217aa4b7a706ee3f21992ec2d564a408a3d0e05a5b7a85ea692c8c00f23eca1855ac04790718985c44c4bdd5f57aba989618fbf72d0a01ef8
+MISC ChangeLog-2015 13949 SHA256 b663b87a3f05a47fb545333ccfc874e4f30d6567c5f55b15029ead3a5e779ea6 SHA512 0e5ddb6743bfc3be71f0a9dc550e11a0af5ac825fb098492dadba670e21fd0651fcf65853f33f0caceec9a22eb9bcef1da2b519d42896a02be2cca1ca4f30eda WHIRLPOOL 704d0455dfcef0446e94d4a42ede7ba255ae769b7486dc2fd2a5a6c062e4d5ddee4ed69d3d59a52b484a9ae09dd3acf234f775b82426a5cefbe8e12e8f8db5a2
+MISC metadata.xml 820 SHA256 683046ea0f982e4b9cff81159ba7fe07f4a3dd2f981aa0d02256b124e8b6501e SHA512 9fc806f40f766674a758578017d2dd6a81ff81d65b9dc202c811d4970eea0b2e5135e49c9b655bfd25969ba038ce449885424020ac52c2b2e493665b9d2e313f WHIRLPOOL fa9f979b735ec4b611b363f75d200d4698b43a2dd9a5e40838e29e2e52ef072a18a05472b0a9438bcb1f81262b4194ba8df4a1ac41d549fc25559b16c701bdcf
diff --git a/www-apps/dokuwiki/dokuwiki-20160626e.ebuild b/www-apps/dokuwiki/dokuwiki-20160626e.ebuild
new file mode 100644
index 000000000000..d6e837cfd1cc
--- /dev/null
+++ b/www-apps/dokuwiki/dokuwiki-20160626e.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp
+
+# upstream uses dashes in the datestamp
+MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
+MY_PV="${MY_BASE_PV}${PV:8:1}"
+
+DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's documentation needs."
+HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
+SRC_URI="http://download.dokuwiki.org/src/${PN}/${PN}-${MY_PV}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="gd"
+
+DEPEND=""
+RDEPEND="
+ >=dev-lang/php-5.3[xml]
+ virtual/httpd-php:*
+ gd? ( ||
+ (
+ dev-lang/php[gd]
+ media-gfx/imagemagick
+ )
+ )
+"
+
+need_httpd_cgi
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ # create initial changes file
+ touch data/changes.log
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc README
+ rm -f README COPYING
+
+ docinto scripts
+ dodoc bin/*
+ rm -rf bin
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r .
+
+ # Copy custom .htaccess that works with both apache 2.2 and 2.4
+ for dir in "conf" "data" "inc" "inc/lang"; do
+ insinto "${MY_HTDOCSDIR}/${dir}"
+ newins "${FILESDIR}/htaccess" ".htaccess"
+ done
+
+ # Use custom .htaccess.dist that works with both apache 2.2 and 2.4
+ insinto "${MY_HTDOCSDIR}/"
+ newins "${FILESDIR}/htaccess-dist" ".htaccess.dist"
+
+ for x in $(find data/ -not -name '.htaccess'); do
+ webapp_serverowned "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_configfile "${MY_HTDOCSDIR}"/.htaccess.dist
+ webapp_configfile "${MY_HTDOCSDIR}"/conf
+
+ for x in $(find conf/ -not -name 'msg'); do
+ webapp_configfile "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
diff --git a/www-apps/dokuwiki/dokuwiki-20170219e.ebuild b/www-apps/dokuwiki/dokuwiki-20170219e.ebuild
new file mode 100644
index 000000000000..d6e837cfd1cc
--- /dev/null
+++ b/www-apps/dokuwiki/dokuwiki-20170219e.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit webapp
+
+# upstream uses dashes in the datestamp
+MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
+MY_PV="${MY_BASE_PV}${PV:8:1}"
+
+DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's documentation needs."
+HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
+SRC_URI="http://download.dokuwiki.org/src/${PN}/${PN}-${MY_PV}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="gd"
+
+DEPEND=""
+RDEPEND="
+ >=dev-lang/php-5.3[xml]
+ virtual/httpd-php:*
+ gd? ( ||
+ (
+ dev-lang/php[gd]
+ media-gfx/imagemagick
+ )
+ )
+"
+
+need_httpd_cgi
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_prepare() {
+ # create initial changes file
+ touch data/changes.log
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc README
+ rm -f README COPYING
+
+ docinto scripts
+ dodoc bin/*
+ rm -rf bin
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r .
+
+ # Copy custom .htaccess that works with both apache 2.2 and 2.4
+ for dir in "conf" "data" "inc" "inc/lang"; do
+ insinto "${MY_HTDOCSDIR}/${dir}"
+ newins "${FILESDIR}/htaccess" ".htaccess"
+ done
+
+ # Use custom .htaccess.dist that works with both apache 2.2 and 2.4
+ insinto "${MY_HTDOCSDIR}/"
+ newins "${FILESDIR}/htaccess-dist" ".htaccess.dist"
+
+ for x in $(find data/ -not -name '.htaccess'); do
+ webapp_serverowned "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_configfile "${MY_HTDOCSDIR}"/.htaccess.dist
+ webapp_configfile "${MY_HTDOCSDIR}"/conf
+
+ for x in $(find conf/ -not -name 'msg'); do
+ webapp_configfile "${MY_HTDOCSDIR}"/${x}
+ done
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
diff --git a/www-apps/dokuwiki/files/htaccess b/www-apps/dokuwiki/files/htaccess
new file mode 100644
index 000000000000..18532a25d643
--- /dev/null
+++ b/www-apps/dokuwiki/files/htaccess
@@ -0,0 +1,10 @@
+# Apache 2.4
+<IfModule mod_authz_core.c>
+ Require all denied
+</IfModule>
+
+# Apache 2.2
+<IfModule !mod_authz_core.c>
+ Order Allow,Deny
+ Deny from all
+</IfModule>
diff --git a/www-apps/dokuwiki/files/htaccess-dist b/www-apps/dokuwiki/files/htaccess-dist
new file mode 100644
index 000000000000..dc8caceeceea
--- /dev/null
+++ b/www-apps/dokuwiki/files/htaccess-dist
@@ -0,0 +1,43 @@
+## Enable this to restrict editing to logged in users only
+
+## You should disable Indexes and MultiViews either here or in the
+## global config. Symlinks maybe needed for URL rewriting.
+#Options -Indexes -MultiViews +FollowSymLinks
+
+## make sure nobody gets the htaccess, README, COPYING or VERSION files
+<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all denied
+ </IfModule>
+
+ # Apache 2.2
+ <IfModule !mod_authz_core.c>
+ Order Allow,Deny
+ Deny from all
+ </IfModule>
+</Files>
+
+## Uncomment these rules if you want to have nice URLs using
+## $conf['userewrite'] = 1 - not needed for rewrite mode 2
+#RewriteEngine on
+#
+#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
+#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
+#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
+#RewriteRule ^$ doku.php [L]
+#RewriteCond %{REQUEST_FILENAME} !-f
+#RewriteCond %{REQUEST_FILENAME} !-d
+#RewriteRule (.*) doku.php?id=$1 [QSA,L]
+#RewriteRule ^index.php$ doku.php
+#
+## Not all installations will require the following line. If you do,
+## change "/dokuwiki" to the path to your dokuwiki directory relative
+## to your document root.
+#RewriteBase /dokuwiki
+#
+## If you enable DokuWikis XML-RPC interface, you should consider to
+## restrict access to it over HTTPS only! Uncomment the following two
+## rules if your server setup allows HTTPS.
+#RewriteCond %{HTTPS} !=on
+#RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
diff --git a/www-apps/dokuwiki/files/postinstall-en.txt b/www-apps/dokuwiki/files/postinstall-en.txt
new file mode 100644
index 000000000000..1816ba6bf88d
--- /dev/null
+++ b/www-apps/dokuwiki/files/postinstall-en.txt
@@ -0,0 +1,52 @@
+To complete installation you need to perform the following steps:
+
+ 1) Configure dokuwiki base options
+ 2) Check the config
+ 3) Notes
+
+1 - Configure dokuwiki base options
+
+ The first thing we need to do is set base options of dokuwiki:
+
+ $ cd ${MY_INSTALLDIR}/conf
+
+ Edit dokuwiki/conf/dokuwiki.php (see config [1]) if you want to change
+ anything within it. Better yet, create ${MY_INSTALLDIR}/conf/local.php containing
+ those lines from dokuwiki.php which you want to change. This way, your
+ changes are preserved when overwriting the dokuwiki.php with a new
+ release.
+
+ $ cp local.php.dist local.php
+
+2 - Check the config
+
+ Finally, test if everything is set up correctly. Use the check option in a
+ URL and pull it up into a browser:
+
+ http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/doku.php?do=check
+
+3) - Notes
+
+ Please see the website [2] for more information on setting up dokuwiki.
+
+ Dokuwiki's default config leaves editing wide open, so please read the
+ acl [3] and user [4] documentation before proceding farther. If you use
+ the plaintext authentication, you may need to do the following:
+
+ $ cd conf/
+ $ cp users.auth.php.dist users.auth.php
+ $ cp acl.auth.php.dist acl.auth.php
+ $ chown apache:apache users.auth.php acl.auth.php
+
+ This enables apache to write to the files for editing the acl/user
+ creation capability.
+
+ If you're updating from an older version of Dokuwiki or want to learn about
+ other authentication methods, check the documentation about authentication
+ backends and plugins[5].
+
+[1] https://www.dokuwiki.org/config
+[2] https://www.dokuwiki.org/dokuwiki
+[3] https://www.dokuwiki.org/acl
+[4] https://www.dokuwiki.org/plugin:authplain
+[5] https://www.dokuwiki.org/auth
diff --git a/www-apps/dokuwiki/metadata.xml b/www-apps/dokuwiki/metadata.xml
new file mode 100644
index 000000000000..6cbe76a6b937
--- /dev/null
+++ b/www-apps/dokuwiki/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jmbsvicetto@gentoo.org</email>
+ <name>Jorge Manuel B. S. Vicetto</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+ </maintainer>
+ <longdescription lang="en">
+ DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
+ creating documentation of any kind. It is targeted at developer teams,
+ workgroups and small companies. It has a simple but powerful syntax
+ which makes sure the datafiles remain readable outside the Wiki and
+ eases the creation of structured texts. All data is stored in plain text
+ files - no database is required.
+ </longdescription>
+</pkgmetadata>