diff options
author | root <root@rshg054.dnsready.net> | 2012-08-25 00:02:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-25 00:02:57 +0000 |
commit | 29896582b8f0f163c9b880fa64ee948d470ef5ba (patch) | |
tree | 54d918c561c83d78e4d07f94774f7f10640cafa9 /pcr | |
parent | 12b846e1ead204137d60caba25f7e494b51b4dc8 (diff) |
Sat Aug 25 00:02:57 UTC 2012
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/chiliproject/PKGBUILD | 41 | ||||
-rw-r--r-- | pcr/chiliproject/chiliproject.install | 17 | ||||
-rw-r--r-- | pcr/ruby-bundler/PKGBUILD | 22 |
3 files changed, 80 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.' +} diff --git a/pcr/ruby-bundler/PKGBUILD b/pcr/ruby-bundler/PKGBUILD new file mode 100644 index 000000000..a1fb32449 --- /dev/null +++ b/pcr/ruby-bundler/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> +# Contributor: Alexsandr Pavlov <kidoz at mail dot ru> + +pkgname=ruby-bundler +_gemname=${pkgname#ruby-} +pkgver=1.1.5 +pkgrel=1 +pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably." +arch=('any') +url="http://gembundler.com" +license=('MIT') +depends=('ruby' 'rubygems') +source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem) +noextract=(${_gemname}-${pkgver}.gem) +md5sums=('ecced17bc29a761db4ea5ca57b0d8795') + +build() { + cd "${srcdir}" + export HOME=/tmp + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem +} |