summaryrefslogtreecommitdiff
path: root/pcr/redmine
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-05-30 23:24:19 +0200
committeraurelien <aurelien@xload.io>2014-05-30 23:24:19 +0200
commitf0ec54d6f5843080278878857ff85145967e7afc (patch)
tree62f2bf831889756dcce95327204798531e38cd33 /pcr/redmine
parent0a80ae1230a1e11e61a2e5abd59c6e94cb67f83c (diff)
redmine
Diffstat (limited to 'pcr/redmine')
-rw-r--r--pcr/redmine/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/pcr/redmine/PKGBUILD b/pcr/redmine/PKGBUILD
new file mode 100644
index 000000000..62754f857
--- /dev/null
+++ b/pcr/redmine/PKGBUILD
@@ -0,0 +1,72 @@
+# Contributor: mawcomw <mawcomw@gmail.com>
+# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=redmine
+pkgver=2.5.1
+pkgrel=1
+pkgdesc="A flexible project management web application. Written using the Ruby on Rails, it is cross-platform and cross-database."
+arch=('any')
+url="http://www.redmine.org"
+license=('GPL2')
+#depends=('ruby')
+#makedepends=('glibc' 'dialog')
+#checkdepends=()
+optdepends=('ruby: a dynamic, interpreted, open source programming language'
+ 'rvm: a command line tool to easily manage multiple Ruby environments'
+ 'rbenv: another command line tool to easily manage multiple Ruby environments'
+ 'apache: a supported application server'
+ 'nginx: a supported application server'
+ 'tomcat6: a supported application server'
+ 'tomcat7: a supported application server'
+ 'mariadb: MariaDB database support'
+ 'mysql: MySQL database support'
+ 'postgresql: PostgreSQL database support'
+ 'git: Git repository browsing'
+ 'subversion: Subversion repository browsing'
+ 'darcs: Darcs repository browsing'
+ 'bzr: Bazaar repository browsing'
+ 'mercurial: Mercurial repository browsing'
+ 'cvs: CVS repository browsing'
+ 'imagemagick: Image export support for Gantt')
+provides=('redmine')
+#conflicts=()
+#replaces=()
+backup=('usr/share/webapps/redmine/config/configuration.yml'
+ 'usr/share/webapps/redmine/config/database.yml')
+#options=()
+#install=redmine.install
+#changelog
+source=("http://www.redmine.org/releases/$pkgname-$pkgver.tar.gz")
+#noextract
+
+build() {
+ return 0
+}
+
+package() {
+ _redmine_installation_path="/usr/share/webapps/redmine"
+ cd "$srcdir/redmine-$pkgver"
+
+ # install in /usr/share/webapps
+ _instdir="$pkgdir/${_redmine_installation_path}"
+ mkdir -p ${_instdir}
+ cp -ra . ${_instdir}
+
+ # create required directories
+ mkdir -p "${_instdir}/public/plugin_assets"
+ #mkdir -p "${_instdir}/tmp/pdf"
+ #mkdir -p "${_instdir}/files"
+ #mkdir -p "${_instdir}/log"
+
+ # set the group that will run the http server to have write permission (for apache it should be http)
+ chmod -R g+w "${_instdir}/tmp"
+ chmod g+w "${_instdir}/files"
+ chmod g+w "${_instdir}/log"
+
+ # set the http server user:group that will run the application
+ #chgrp -R http ${_instdir}
+
+ # Create systemd service
+ #mkdir -p "$pkgdir/usr/lib/systemd/system/"
+ #install -m 644 "$srcdir/redmine.service" "$pkgdir/usr/lib/systemd/system/"
+}