Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Thou shalt not blindly copy&paste stuff from pastebins! "
- exit 1 #
- # Maintainer: mawcomw <mawcomw@gmail.com>
- pkgname=limesurvey
- pkgver=2.63.1.170305
- _unpacked_folder=LimeSurvey-2.63.1-170305
- pkgrel=1
- pkgdesc="Then open source survey application."
- arch=('any')
- url="http://www.limesurvey.org"
- license=('GPL2')
- depends=('php>=5.3')
- #makedepends=()
- #checkdepends=()
- optdepends=('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')
- provides=('limesurvey')
- #conflicts=()
- #replaces=()
- #backup=('')
- #options=()
- #install=limesurvey.install
- #changelog
- source=('https://github.com/LimeSurvey/LimeSurvey/archive/2.63.1+170305.tar.gz'
- 'apache.example.conf')
- #noextract
- #md5sums=()
- #sha1sums=()
- #sha256sums=()
- #sha384sums=()
- sha512sums=('e6a72ff5b4d5fa53cc8092f02cb6321d427ec9c7067dbb301b055249a42c6238b159b2d580b63955245cc22728ef2453ef4e60884cc254aa98b81f661466384e'
- 'e594a3a02cb04e1cca9ddf1c5995344f20adc9c5543fe622ad66fdc48d587fc969541530f1e2a8883e0f501ed1b2d409c23ecc7cd8e29aaea0369f625cd4f417')
- build() {
- return 0
- }
- package() {
- _limesurvey_installation_path="/usr/share/webapps"
- _limesurvey_conf_path="/etc/webapps"
- _instdir="$pkgdir/${_limesurvey_installation_path}"
- _conf_dir="$pkgdir/${_limesurvey_conf_path}"
- #install license
- install -Dm644 "${srcdir}/${_unpacked_folder}/docs/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
- # install core application in /usr/share/webapps
- mkdir -p ${_instdir}
- cp -ra "${srcdir}/${_unpacked_folder}" ${_instdir}/${pkgname}
- # install configuration files in /etc/webapps
- mkdir -p "${_conf_dir}/${pkgname}"
- # limesurvey does not work with separate paths, and
- # for now i will not fix this.
- #mv "${_instdir}/${pkgname}/application/config" "${_conf_dir}/${pkgname}/config"
- #ln -s "/etc/webapps/${pkgname}/config" "${_instdir}/${pkgname}/application/config"
- # set the group that will run the http server to have write permission (for apache it should be http)
- chgrp -R http "${_instdir}/${pkgname}/tmp"
- chmod -R 775 "${_instdir}/${pkgname}/tmp"
- chgrp -R http "${_instdir}/${pkgname}/upload"
- chmod -R 775 "${_instdir}/${pkgname}/upload"
- chgrp -R http "${_instdir}/${pkgname}/application/config"
- chmod -R 775 "${_instdir}/${pkgname}/application/config"
- # install apache example config file
- install -m 644 ${srcdir}/apache.example.conf ${pkgdir}/etc/webapps/${pkgname}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement