diff options
Diffstat (limited to 'community/nginx')
-rw-r--r-- | community/nginx/PKGBUILD | 45 | ||||
-rw-r--r-- | community/nginx/service | 1 |
2 files changed, 24 insertions, 22 deletions
diff --git a/community/nginx/PKGBUILD b/community/nginx/PKGBUILD index 92006eadf..a6c022eb0 100644 --- a/community/nginx/PKGBUILD +++ b/community/nginx/PKGBUILD @@ -1,11 +1,14 @@ -# $Id: PKGBUILD 73240 2012-07-04 07:09:22Z bpiotrowski $ +# $Id: PKGBUILD 74220 2012-07-23 03:07:53Z allan $ # 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 + pkgname=nginx pkgver=1.2.2 -pkgrel=1 +pkgrel=2 pkgdesc="lightweight HTTP server and IMAP/POP3 proxy server" arch=('i686' 'x86_64' 'mips64el') depends=('pcre' 'zlib' 'openssl') @@ -14,27 +17,25 @@ optdepends=('passenger') url="http://nginx.org" license=('custom') install=nginx.install -backup=('etc/nginx/fastcgi.conf' - 'etc/nginx/fastcgi_params' - 'etc/nginx/koi-win' - 'etc/nginx/koi-utf' - 'etc/nginx/mime.types' - 'etc/nginx/nginx.conf' - 'etc/nginx/scgi_params' - 'etc/nginx/uwsgi_params' - 'etc/nginx/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' - '16c6b4cbe24001a3f4f58b9d5f4e3d4c' + '62d494d23aef31d0b867161f9fffa6eb' 'b38744739022876554a0444d92e6603b') -_cfgdir=/etc/nginx -_tmpdir=/var/tmp/nginx - build() { cd "$srcdir"/$pkgname-$pkgver @@ -82,8 +83,8 @@ package() { 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|' \ @@ -93,8 +94,8 @@ package() { install -dm1777 $pkgdir/var/tmp 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 diff --git a/community/nginx/service b/community/nginx/service index 78d0a492c..8e28f0cde 100644 --- a/community/nginx/service +++ b/community/nginx/service @@ -1,5 +1,6 @@ [Unit] Description=A high performance web server and a reverse proxy server +After=syslog.target network.target [Service] Type=forking |