[arch-commits] Commit in dokuwiki/repos (3 files)
Pierre Schmitz
pierre at archlinux.org
Sat Jan 23 08:56:28 UTC 2021
Date: Saturday, January 23, 2021 @ 08:56:27
Author: pierre
Revision: 825917
archrelease: copy trunk to community-testing-any
Added:
dokuwiki/repos/community-testing-any/
dokuwiki/repos/community-testing-any/PKGBUILD
(from rev 825916, dokuwiki/trunk/PKGBUILD)
dokuwiki/repos/community-testing-any/apache.example.conf
(from rev 825916, dokuwiki/trunk/apache.example.conf)
---------------------+
PKGBUILD | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++
apache.example.conf | 7 +++++
2 files changed, 74 insertions(+)
Copied: dokuwiki/repos/community-testing-any/PKGBUILD (from rev 825916, dokuwiki/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-01-23 08:56:27 UTC (rev 825917)
@@ -0,0 +1,67 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sébastien Luttringer
+
+pkgname=dokuwiki
+pkgver=20200729
+_pkgver=${pkgver:0:4}-${pkgver:4:2}-${pkgver:6}
+_pkgver=${_pkgver/_/}
+_pkgver=${_pkgver/rc/}
+[[ $pkgver == *"rc" ]] && _release=candidate || _release=stable
+pkgrel=3
+pkgdesc='Simple to use and highly versatile Open Source wiki software'
+arch=('any')
+url='https://www.dokuwiki.org/'
+license=('GPL')
+depends=('php7')
+backup=('etc/webapps/dokuwiki/.htaccess'
+ 'etc/httpd/conf/extra/dokuwiki.conf')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/splitbrain/dokuwiki/archive/release_${_release}_${_pkgver}.tar.gz"
+ 'apache.example.conf')
+sha256sums=('cc1cd9f00095fea327baa79d8f02c904fe1c37bc3f8fd9999eaf646ee9928884'
+ '237e11ec2c1cd69d0b7e8cff2169d0072666b31694efd727338c9197199e0f5f')
+
+package() {
+ cd "$pkgdir"
+ install -dm0755 usr/share/webapps var/lib/dokuwiki etc/webapps
+ cp -a "$srcdir"/$pkgname-release_${_release}_${_pkgver} usr/share/webapps/dokuwiki
+
+ # move data in var
+ mv usr/share/webapps/dokuwiki/data var/lib/dokuwiki
+ ln -s {../../../../../var/lib/dokuwiki,usr/share/webapps/dokuwiki}/data
+
+ # move plugins in var
+ mv usr/share/webapps/dokuwiki/lib/plugins var/lib/dokuwiki
+ ln -s {../../../../../../var/lib/dokuwiki,usr/share/webapps/dokuwiki/lib}/plugins
+
+ # move templates in var
+ mv usr/share/webapps/dokuwiki/lib/tpl var/lib/dokuwiki
+ ln -s {../../../../../../var/lib/dokuwiki,usr/share/webapps/dokuwiki/lib}/tpl
+
+ # move config in /etc
+ mv usr/share/webapps/dokuwiki/conf etc/webapps/dokuwiki
+ chmod g=rwx etc/webapps/dokuwiki
+ ln -s ../../../../../etc/webapps/dokuwiki usr/share/webapps/dokuwiki/conf
+
+ # inform update on changes.log
+ touch var/lib/dokuwiki/data/changes.log
+ chmod 0644 var/lib/dokuwiki/data/changes.log
+
+ # use default htaccess
+ cp usr/share/webapps/dokuwiki/.htaccess.dist etc/webapps/dokuwiki/.htaccess
+ ln -s /etc/webapps/dokuwiki/.htaccess usr/share/webapps/dokuwiki/.htaccess
+
+ # fix rights and ownership
+ chown 33:33 var/lib/dokuwiki/plugins
+ chown -R 33:33 var/lib/dokuwiki/data
+ chown -R 33:33 etc/webapps/dokuwiki
+
+ # apache config
+ install -Dm0644 "$srcdir"/apache.example.conf etc/httpd/conf/extra/dokuwiki.conf
+
+ # php.ini
+# install -dm0755 "$pkgdir"/etc/php7/conf.d/
+# echo 'open_basedir = ${open_basedir}:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/' >"$pkgdir"/etc/php7/conf.d/dokuwiki.ini
+}
+
+# vim:set ts=2 sw=2 et:
Copied: dokuwiki/repos/community-testing-any/apache.example.conf (from rev 825916, dokuwiki/trunk/apache.example.conf)
===================================================================
--- community-testing-any/apache.example.conf (rev 0)
+++ community-testing-any/apache.example.conf 2021-01-23 08:56:27 UTC (rev 825917)
@@ -0,0 +1,7 @@
+Alias /dokuwiki /usr/share/webapps/dokuwiki
+<Directory /usr/share/webapps/dokuwiki/>
+ Options +FollowSymLinks
+ AllowOverride All
+ Require all granted
+ php_admin_value open_basedir "/tmp/:/usr/share/webapps/dokuwiki/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/"
+</Directory>
More information about the arch-commits
mailing list