Date: Wednesday, October 15, 2014 @ 09:20:31 Author: alucryd Revision: 120690
Add mantisbt Added: mantisbt/ mantisbt/trunk/ mantisbt/trunk/PKGBUILD mantisbt/trunk/mantisbt.install ------------------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ mantisbt.install | 17 +++++++++++++++++ 2 files changed, 59 insertions(+) Added: mantisbt/trunk/PKGBUILD =================================================================== --- mantisbt/trunk/PKGBUILD (rev 0) +++ mantisbt/trunk/PKGBUILD 2014-10-15 07:20:31 UTC (rev 120690) @@ -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: Property changes on: mantisbt/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: mantisbt/trunk/mantisbt.install =================================================================== --- mantisbt/trunk/mantisbt.install (rev 0) +++ mantisbt/trunk/mantisbt.install 2014-10-15 07:20:31 UTC (rev 120690) @@ -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:
