You are not logged in.

#1 2008-05-18 06:43:16

mullman
Member
Registered: 2007-05-24
Posts: 28

[Request] Mantis - A free and popular web-based bugtracking system

Can someone please finish off this pkgbuild and then add it to the AUR?

# Use at own risk!
# $Id: $
# Contributor: <Your name could be here!>

pkgname=mantis
pkgver=1.2.0.a1
pkgrel=1
pkgdesc="A free and popular web-based bugtracking system"
arch=('i686' 'x86_64')
url="http://www.mantisbt.org/"
license=('GPL')
depends=(postgresql=>8.0 lighttpd php=>5.2.0)
source=(http://downloads.sourceforge.net/mantisbt/${pkgname}-${pkgver}.tar.gz)
md5sums=('c9406018df266a6242f17c5c92fab31e')

build() {
    cd $startdir/src/
    tar zxvf ${pkgname}-${pkgver}.tar.gz
    cp /srv/www/mantis
    # Do you know how to finish this off properly?
    # http://www.mantisbt.org/manual/manual.installation.php
}

Offline

#2 2008-05-18 08:29:12

angvp
Developer
From: Buenos Aires, Argentina
Registered: 2008-05-15
Posts: 31
Website

Re: [Request] Mantis - A free and popular web-based bugtracking system

http://aur.archlinux.org/packages.php?ID=17033

Done but.

1.- I remove the lighthttpd dependency, because if i have apache, cherokee or another webserver configured i won't install another webserver and make conflicts ;-).

2.- This pkg is very basic, (web packages are almost basic) and you can do things in a non-automatic way example:

2.1 Do a : ln -s /srv/www/mantis/ to your /http/pathdir (By default in ArchLinux-Apache's is /home/httpd/html but i use other path (/var/www/ ) so in my case i will have to do ln -s /srv/www/mantis /var/www/mantis ).
2.2 Check the permissions, you must have at least 755, usually this point is 'hard' to understand but check that httpd user (in ArchLinux-Apache nobody is the default)
2.2 Point your browser at the following url: http://yoursite/mantis/admin/install.php

And off course

Check that you have the database engine and webserver running and well-configured.

Cheers!

Offline

#3 2008-05-18 09:27:55

mullman
Member
Registered: 2007-05-24
Posts: 28

Re: [Request] Mantis - A free and popular web-based bugtracking system

Thanks for your help, some notes:

a) AFAIK - PostgreSQL only works with version 1.2.0.a1 and above

b) Can you change the source line to?
source=(http://downloads.sourceforge.net/mantisbt/${pkgname}-${pkgver}.tar.gz)

c) Added some ideas to the build section. Would like to make the installation is as automagical as possible - it gives new users a solid default and a guide to learn from. Can you please help me with it?

build() {
    # http://www.mantisbt.org/manual/manual.installation.php
    mkdir -p $startdir/pkg/srv/www/${pkgname}
    cp -aR $startdir/src/${_pkgname}-${pkgver}/* $startdir/pkg/srv/www/${pkgname}/
    # check - new install or upgrade?
    # check permissions -- 755
    # create user and/or group?
    # create the database file
    echo "Creating Database file..."
    echo "To finish Mantis installation, please point your browser at the following url: http://YOURSITE/mantis/admin/install.php"
}

Offline

#4 2008-05-18 10:04:10

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [Request] Mantis - A free and popular web-based bugtracking system

mullman wrote:

c) Added some ideas to the build section. Would like to make the installation is as automagical as possible - it gives new users a solid default and a guide to learn from. Can you please help me with it?

You don't want to do this kind of stuff at build time (in the build function), but at install time, when you install the package with pacman.
This is done with scriptlets. See man PKGBUILD or just look at example .install files through ABS.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB