SHARE
TWEET

Untitled

a guest Apr 13th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo "Thou shalt not blindly copy&paste stuff from pastebins! "
  2. exit 1 #
  3.  
  4. # Maintainer: mawcomw <mawcomw@gmail.com>
  5. pkgname=limesurvey
  6. pkgver=2.63.1.170305
  7. _unpacked_folder=LimeSurvey-2.63.1-170305
  8. pkgrel=1
  9. pkgdesc="Then open source survey application."
  10. arch=('any')
  11. url="http://www.limesurvey.org"
  12. license=('GPL2')
  13. depends=('php>=5.3')
  14. #makedepends=()
  15. #checkdepends=()
  16. optdepends=('apache: a supported application server'
  17.             'nginx: a supported application server'
  18.             'tomcat6: a supported application server'
  19.             'tomcat7: a supported application server'
  20.             'mariadb: MariaDB database support'
  21.             'mysql: MySQL database support'
  22.             'postgresql: PostgreSQL database support')
  23. provides=('limesurvey')
  24. #conflicts=()
  25. #replaces=()
  26. #backup=('')
  27. #options=()
  28. #install=limesurvey.install
  29. #changelog
  30. source=('https://github.com/LimeSurvey/LimeSurvey/archive/2.63.1+170305.tar.gz'
  31.         'apache.example.conf')
  32. #noextract
  33. #md5sums=()
  34. #sha1sums=()
  35. #sha256sums=()
  36. #sha384sums=()
  37. sha512sums=('e6a72ff5b4d5fa53cc8092f02cb6321d427ec9c7067dbb301b055249a42c6238b159b2d580b63955245cc22728ef2453ef4e60884cc254aa98b81f661466384e'
  38.             'e594a3a02cb04e1cca9ddf1c5995344f20adc9c5543fe622ad66fdc48d587fc969541530f1e2a8883e0f501ed1b2d409c23ecc7cd8e29aaea0369f625cd4f417')
  39.  
  40. build() {
  41.         return 0
  42. }
  43.  
  44. package() {
  45.         _limesurvey_installation_path="/usr/share/webapps"
  46.         _limesurvey_conf_path="/etc/webapps"
  47.  
  48.         _instdir="$pkgdir/${_limesurvey_installation_path}"
  49.         _conf_dir="$pkgdir/${_limesurvey_conf_path}"
  50.  
  51.         #install license
  52.         install -Dm644 "${srcdir}/${_unpacked_folder}/docs/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
  53.  
  54.         # install core application in /usr/share/webapps
  55.         mkdir -p ${_instdir}
  56.         cp -ra "${srcdir}/${_unpacked_folder}" ${_instdir}/${pkgname}
  57.  
  58.         # install configuration files in /etc/webapps
  59.         mkdir -p "${_conf_dir}/${pkgname}"
  60.         # limesurvey does not work with separate paths, and
  61.         # for now i will not fix this.
  62.         #mv "${_instdir}/${pkgname}/application/config" "${_conf_dir}/${pkgname}/config"
  63.         #ln -s "/etc/webapps/${pkgname}/config" "${_instdir}/${pkgname}/application/config"
  64.  
  65.         # set the group that will run the http server to have write permission (for apache it should be http)
  66.         chgrp -R http "${_instdir}/${pkgname}/tmp"
  67.         chmod -R 775 "${_instdir}/${pkgname}/tmp"
  68.         chgrp -R http "${_instdir}/${pkgname}/upload"
  69.         chmod -R 775 "${_instdir}/${pkgname}/upload"
  70.  
  71.         chgrp -R http "${_instdir}/${pkgname}/application/config"
  72.         chmod -R 775 "${_instdir}/${pkgname}/application/config"
  73.  
  74.         # install apache example config file
  75.         install -m 644 ${srcdir}/apache.example.conf ${pkgdir}/etc/webapps/${pkgname}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top