2 # Maintainer Michael Whitford <michael at alwandassociates.com>
6 pkgdesc='A fast, self-healing wsgi server coded in pure C. A sample configuration for virtual hosts is included.'
8 url='http://projects.unbit.it/uwsgi'
11 depends=('python2' 'libxml2')
12 makedepends=('gcc' 'python2')
15 conflicts=('python-uwsgi' 'uwsgi')
21 source=('http://projects.unbit.it/downloads/uwsgi-0.9.9.tar.gz'
27 md5sums=('05bcb6a0425c9a45a3353aaa1da866a8'
28 'fb392684a9ddc13dd931696d32bac711'
29 '2e3940f5181623ff0511e7df6467a5a8'
30 '3019883ea7bf55f07df68d0e13a016e2'
31 'bfb67b818311d4103a9f142ce39a096e')
34 cd $srcdir/uwsgi-$pkgver
35 CFLAGS='' make -f Makefile.Py27
39 cd $srcdir/uwsgi-$pkgver
41 mkdir -p $pkgdir/usr/bin
42 install -D -m755 uwsgi $pkgdir/usr/bin/uwsgi
43 # the rc.d init script
44 mkdir -p $pkgdir/etc/rc.d
45 install -D -m755 $srcdir/uwsgi.rcd $pkgdir/etc/rc.d/uwsgi
47 mkdir -p $pkgdir/etc/conf.d
48 install -D -m644 $srcdir/uwsgi.confd $pkgdir/etc/conf.d/uwsgi
50 mkdir -p $pkgdir/etc/uwsgi
51 install -D -m644 -gnobody -onobody $srcdir/uwsgi.xml $pkgdir/etc/uwsgi/uwsgi.xml
52 # the logrotate config
53 mkdir -p $pkgdir/etc/logrotate.d
54 install -D -m644 $srcdir/uwsgi.logrotate $pkgdir/etc/logrotate.d/uwsgi