Date: Wednesday, October 15, 2014 @ 09:20:45
Author: alucryd
Revision: 120691
archrelease: copy trunk to community-any
Added:
mantisbt/repos/
mantisbt/repos/community-any/
mantisbt/repos/community-any/PKGBUILD
(from rev 120690, mantisbt/trunk/PKGBUILD)
mantisbt/repos/community-any/mantisbt.install
(from rev 120690, mantisbt/trunk/mantisbt.install)
------------------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
mantisbt.install | 17 +++++++++++++++++
2 files changed, 59 insertions(+)
Copied: mantisbt/repos/community-any/PKGBUILD (from rev 120690,
mantisbt/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2014-10-15 07:20:45 UTC (rev 120691)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Alexander 'gridcol' Griesbaum <[email protected]>
+# Contributor: Ravenman <[email protected]>
+# Contributor: Anton Bazhenov <anton.bazhenov@gmail>
+# Contributor: Angel 'angvp' Velasquez <[email protected]>
+
+pkgname=mantisbt
+pkgver=1.2.17
+pkgrel=2
+pkgdesc='Web-based issue tracking system'
+arch=('any')
+url='http://www.mantisbt.org/'
+license=('GPL')
+depends=('php')
+optdepends=('apache: Web server to run MantisBT'
+ 'curl: Twitter integration'
+ 'gd: Graphs support'
+ 'lighttpd: Web server to run MantisBT'
+ 'mariadb: SQL database'
+ 'nginx: Web server to run MantisBT'
+ 'php-pgsql: PostgreSQL database')
+backup=('etc/webapps/mantisbt/config_inc.php')
+install='mantisbt.install'
+source=("http://downloads.sourceforge.net/mantisbt/mantisbt-${pkgver}.tar.gz")
+sha256sums=('4305295a1d3910516b6fa238e03e710c0bb5b30a01b3a908865799096207b243')
+
+package() {
+ install -dm 755 "${pkgdir}"/{etc,usr/share}/webapps/mantisbt
+ cp -dr --no-preserve='ownership' mantisbt-${pkgver}/*
"${pkgdir}"/usr/share/webapps/mantisbt
+
+ for f in
{config_inc.php,custom_strings_inc.php,custom_constants_inc.php,custom_functions_inc.php};
do
+ ln -s /etc/webapps/mantisbt/${f} "${pkgdir}"/usr/share/webapps/mantisbt/
+ done
+ cp "${pkgdir}"/usr/share/webapps/mantisbt/config_inc.php.sample
"${pkgdir}"/etc/webapps/mantisbt/config_inc.php
+
+ find "${pkgdir}" -type d -exec chmod 755 {} +
+ find "${pkgdir}" -type f -exec chmod 644 {} +
+ chown http:http -R "${pkgdir}"/usr/share/webapps/mantisbt
+}
+
+# vim: ts=2 sw=2 et:
Copied: mantisbt/repos/community-any/mantisbt.install (from rev 120690,
mantisbt/trunk/mantisbt.install)
===================================================================
--- repos/community-any/mantisbt.install (rev 0)
+++ repos/community-any/mantisbt.install 2014-10-15 07:20:45 UTC (rev
120691)
@@ -0,0 +1,17 @@
+pre_upgrade() {
+ cd /usr/share/webapps/mantisbt
+
+ cp mantis_offline.php.sample mantis_offline.php
+}
+
+post_upgrade() {
+ cd /usr/share/webapps/mantisbt
+
+ rm mantis_offline.php
+}
+
+post_remove() {
+ rm -rf /usr/share/webapps/mantisbt
+}
+
+# vim: ts=2 sw=2 et: