diff options
author | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-08-24 02:11:29 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-08-24 02:11:29 -0300 |
commit | 5077d9a1f61b553af2e51112274b3f7ac0a7c095 (patch) | |
tree | f6f00bab3da85e3590139f3b733faae9a35ae4f8 /pcr | |
parent | dff9cef375d1cdfc3440f0cbe5256fb1c7dcc323 (diff) | |
download | abslibre-5077d9a1f61b553af2e51112274b3f7ac0a7c095.tar.gz abslibre-5077d9a1f61b553af2e51112274b3f7ac0a7c095.tar.bz2 abslibre-5077d9a1f61b553af2e51112274b3f7ac0a7c095.zip |
chiliproject: add package to pcr
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/chiliproject/PKGBUILD | 41 | ||||
-rw-r--r-- | pcr/chiliproject/chiliproject.install | 17 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/chiliproject/PKGBUILD b/pcr/chiliproject/PKGBUILD new file mode 100644 index 000000000..4f933934a --- /dev/null +++ b/pcr/chiliproject/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=chiliproject +pkgver=3.3.0 +pkgrel=1 +pkgdesc="Chiliproject is a fork of Redmine, a flexible project management web application written using Ruby on Rails." +arch=('any') +url="https://www.chiliproject.org" +license=('GPL2') +depends=('ruby' 'ruby-bundler' 'mysql' 'libxml2' 'libxslt' 'imagemagick' 'pkg-config') +provides=('chiliproject') +backup=('var/lib/chiliproject/config/database.yml' + 'var/lib/chiliproject/config/configuration.yml') +makedepends=('glibc') +optdepends=('git: Git repository browsing' + 'subversion>=1.3.0: Subversion repository browsing' + 'darcs: Darcs repository browsing' + 'bzr: Bazaar repository browsing' + 'mercurial: Mercurial repository browsing') +options=() +install=chiliproject.install +source=("https://www.chiliproject.org/attachments/download/360/chiliproject-$pkgver.tar.gz") +md5sums=('4fa4a825cf0cd91d7495180a19bc4c11') + +build() { + return 0 +} + +package() { + cd "$srcdir/chiliproject-$pkgver" + + # install in /var/lib + _instdir="$pkgdir/var/lib/chiliproject" + mkdir -p ${_instdir} + cp -ra . ${_instdir} + + # create required directories + mkdir -p "${_instdir}/public/plugin_assets" +} + +# vim:set ts=4 sw=4 et: diff --git a/pcr/chiliproject/chiliproject.install b/pcr/chiliproject/chiliproject.install new file mode 100644 index 000000000..cb4622f09 --- /dev/null +++ b/pcr/chiliproject/chiliproject.install @@ -0,0 +1,17 @@ +adjust_perms(){ + chown -R http:http "/var/lib/chiliproject" 1>/dev/null + for dir in /var/lib/chiliproject/{files,log,tmp,public/plugin_assets}; do + chown -R http:http "$dir" 1>/dev/null + chmod -R 755 "$dir" 1>/dev/null + done +} + +post_install() { + adjust_perms + echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.' +} + +post_upgrade() { + adjust_perms + echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.' +} |