diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-08-04 10:41:31 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-08-04 10:41:31 +0200 |
commit | b796bed39624486a348d1cb2881c5a1e88f84954 (patch) | |
tree | 74f89104c89a9440733cc08bfde1c17efe2bd3db /community/nginx/PKGBUILD | |
parent | 589a2311981a3552f48d4c9001be0cb5a06563a9 (diff) | |
parent | f8ac5d4703080cc87ba2fe36f68df745d3a5f62f (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/kphotoalbum/PKGBUILD
community-testing/libextractor/PKGBUILD
community/mplayer2/PKGBUILD
community/preload/PKGBUILD
community/python2-pymongo/PKGBUILD
extra/virtuoso/PKGBUILD
testing/calligra/PKGBUILD
testing/hugin/PKGBUILD
testing/kdebase-runtime/PKGBUILD
testing/kdegraphics-gwenview/PKGBUILD
testing/kdepim-runtime/PKGBUILD
testing/libkexiv2/PKGBUILD
Diffstat (limited to 'community/nginx/PKGBUILD')
-rw-r--r-- | community/nginx/PKGBUILD | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/community/nginx/PKGBUILD b/community/nginx/PKGBUILD index a6c022eb0..cb6cd70b2 100644 --- a/community/nginx/PKGBUILD +++ b/community/nginx/PKGBUILD @@ -1,14 +1,14 @@ -# $Id: PKGBUILD 74220 2012-07-23 03:07:53Z allan $ +# $Id: PKGBUILD 74696 2012-08-02 08:23:51Z bpiotrowski $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Bartłomiej Piotrowski <barthalion@gmal.com> # Contributor: Miroslaw Szot <mss@czlug.icis.pcz.pl> _cfgdir=/etc/nginx -_tmpdir=/var/tmp/nginx +_tmpdir=/var/lib/nginx pkgname=nginx pkgver=1.2.2 -pkgrel=2 +pkgrel=3 pkgdesc="lightweight HTTP server and IMAP/POP3 proxy server" arch=('i686' 'x86_64' 'mips64el') depends=('pcre' 'zlib' 'openssl') @@ -17,20 +17,20 @@ optdepends=('passenger') url="http://nginx.org" license=('custom') install=nginx.install -backup=("${_cfgdir:1}/fastcgi.conf" - "${_cfgdir:1}/fastcgi_params" - "${_cfgdir:1}/koi-win" - "${_cfgdir:1}/koi-utf" - "${_cfgdir:1}/mime.types" - "${_cfgdir:1}/nginx.conf" - "${_cfgdir:1}/scgi_params" - "${_cfgdir:1}/uwsgi_params" - "${_cfgdir:1}/win-utf" - "etc/logrotate.d/nginx") +backup=(${_cfgdir:1}/fastcgi.conf + ${_cfgdir:1}/fastcgi_params + ${_cfgdir:1}/koi-win + ${_cfgdir:1}/koi-utf + ${_cfgdir:1}/mime.types + ${_cfgdir:1}/nginx.conf + ${_cfgdir:1}/scgi_params + ${_cfgdir:1}/uwsgi_params + ${_cfgdir:1}/win-utf + etc/logrotate.d/nginx) source=(http://nginx.org/download/nginx-$pkgver.tar.gz - rc.d - service - nginx.logrotate) + rc.d + service + nginx.logrotate) md5sums=('53105bbe3ac9319db54d9eb46119695b' 'f62c7c9b5a53471d4666a4c49ad363fb' '62d494d23aef31d0b867161f9fffa6eb' @@ -79,26 +79,25 @@ build() { } package() { - cd "$srcdir/nginx-${pkgver}" + cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install install -d "$pkgdir"/etc/logrotate.d - install -m644 $srcdir/nginx.logrotate $pkgdir/etc/logrotate.d/nginx + install -m644 "$srcdir"/nginx.logrotate "$pkgdir"/etc/logrotate.d/nginx sed -e 's|\<user\s\+\w\+;|user html;|g' \ - -e '44s|html|/usr/share/nginx/html|' \ - -e '54s|html|/usr/share/nginx/html|' \ - -i $pkgdir/etc/nginx/nginx.conf - rm $pkgdir/etc/nginx/*.default + -e '44s|html|/usr/share/nginx/html|' \ + -e '54s|html|/usr/share/nginx/html|' \ + -i "$pkgdir"/etc/nginx/nginx.conf + rm "$pkgdir"/etc/nginx/*.default - install -dm1777 $pkgdir/var/tmp - install -d $pkgdir/$_tmpdir + install -d "$pkgdir"/$_tmpdir - install -d $pkgdir/usr/share/nginx - mv $pkgdir/etc/nginx/html/ $pkgdir/usr/share/nginx + install -d "$pkgdir"/usr/share/nginx + mv "$pkgdir"/etc/nginx/html/ "$pkgdir"/usr/share/nginx - install -D -m755 $srcdir/rc.d $pkgdir/etc/rc.d/nginx - install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/nginx.service - install -D -m644 LICENSE $pkgdir/usr/share/licenses/nginx/LICENSE - rm -rf $pkgdir/var/run + install -D -m755 "$srcdir"/rc.d "$pkgdir"/etc/rc.d/nginx + install -Dm644 "$srcdir"/service "$pkgdir"/usr/lib/systemd/system/nginx.service + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/nginx/LICENSE + rm -rf "$pkgdir"/var/run } |