[arch-commits] Commit in uwsgi/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jul 14 00:52:09 UTC 2020


    Date: Tuesday, July 14, 2020 @ 00:52:08
  Author: svenstaro
Revision: 663563

Properly quote variables

Modified:
  uwsgi/trunk/PKGBUILD

----------+
 PKGBUILD |   80 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-14 00:46:17 UTC (rev 663562)
+++ PKGBUILD	2020-07-14 00:52:08 UTC (rev 663563)
@@ -59,10 +59,10 @@
             '9e9eab08199cf08810ec95b0697cd8817226986d1e3aeb54845c0140ea5887360580348f295060c0558fb2d6aaed26fec929ea36b28cfeaf2b3588ce40fec3df')
 
 prepare() {
-    cd $srcdir/$pkgbase-$pkgver
-    cp $srcdir/archlinux.ini buildconf/archlinux.ini
+    cd $pkgbase-$pkgver
+    cp "$srcdir"/archlinux.ini buildconf/archlinux.ini
     for patch in uwsgi_ruby20_compatibility.patch uwsgi_trick_chroot.patch; do
-        patch -Np1 -i $srcdir/$patch
+        patch -Np1 -i "$srcdir"/$patch
     done
     rm -rf plugins/ruby
     mv plugins/ruby{19,}
@@ -70,11 +70,11 @@
 
     sed -i 's/--cflags mono-2/--cflags mono-2 glib-2.0/g' plugins/mono/uwsgiplugin.py
 
-    cp $srcdir/uwsgiplugin.py plugins/systemd_logger/uwsgiplugin.py
+    cp "$srcdir"/uwsgiplugin.py plugins/systemd_logger/uwsgiplugin.py
 }
 
 build() {
-    pushd $srcdir/$pkgbase-$pkgver
+    pushd "$srcdir"/$pkgbase-$pkgver
 
     export UWSGICONFIG_LUAPC='lua51'
 
@@ -92,99 +92,99 @@
     pkgdesc="A fast, self-healing and developer/sysadmin-friendly application container server coded in pure C"
     depends=(libxml2 jansson systemd-libs libcap pam pcre)
     install=uwsgi.install
-    cd $srcdir/$pkgbase-$pkgver
-    install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
-    install -Dm644 $srcdir/uwsgi_at.service $pkgdir/usr/lib/systemd/system/uwsgi at .service
-    install -Dm644 $srcdir/uwsgi_at.socket $pkgdir/usr/lib/systemd/system/uwsgi at .socket
-    install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/usr/lib/systemd/system/emperor.uwsgi.service
-    install -Dm644 $srcdir/emperor.uwsgi.socket $pkgdir/usr/lib/systemd/system/emperor.uwsgi.socket
-    install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
-    install -Dm644 $srcdir/tmpfilesd $pkgdir/usr/lib/tmpfiles.d/uwsgi.conf
-    install -Dm644 $srcdir/uwsgi.logrotate $pkgdir/etc/logrotate.d/uwsgi
-    install -Dm644 $srcdir/uwsgi.sysusers $pkgdir/usr/lib/sysusers.d/uwsgi.conf
+    cd "$srcdir"/$pkgbase-$pkgver
+    install -Dm755 uwsgi "$pkgdir"/usr/bin/uwsgi
+    install -Dm644 "$srcdir"/uwsgi_at.service "$pkgdir"/usr/lib/systemd/system/uwsgi at .service
+    install -Dm644 "$srcdir"/uwsgi_at.socket "$pkgdir"/usr/lib/systemd/system/uwsgi at .socket
+    install -Dm644 "$srcdir"/emperor.uwsgi.service "$pkgdir"/usr/lib/systemd/system/emperor.uwsgi.service
+    install -Dm644 "$srcdir"/emperor.uwsgi.socket "$pkgdir"/usr/lib/systemd/system/emperor.uwsgi.socket
+    install -Dm644 "$srcdir"/emperor.ini "$pkgdir"/etc/uwsgi/emperor.ini
+    install -Dm644 "$srcdir"/tmpfilesd "$pkgdir"/usr/lib/tmpfiles.d/uwsgi.conf
+    install -Dm644 "$srcdir"/uwsgi.logrotate "$pkgdir"/etc/logrotate.d/uwsgi
+    install -Dm644 "$srcdir"/uwsgi.sysusers "$pkgdir"/usr/lib/sysusers.d/uwsgi.conf
 }
 
 package_uwsgi-plugin-cgi() {
     depends=(uwsgi)
     pkgdesc="CGI plugin"
-    install -Dm755 $pkgbase-$pkgver/cgi_plugin.so $pkgdir/usr/lib/uwsgi/cgi_plugin.so
+    install -Dm755 $pkgbase-$pkgver/cgi_plugin.so "$pkgdir"/usr/lib/uwsgi/cgi_plugin.so
 }
 
 package_uwsgi-plugin-rack() {
     depends=(uwsgi ruby)
     pkgdesc="Ruby rack plugin"
-    install -Dm755 $pkgbase-$pkgver/rack_plugin.so $pkgdir/usr/lib/uwsgi/rack_plugin.so
-    install -Dm755 $pkgbase-$pkgver/fiber_plugin.so $pkgdir/usr/lib/uwsgi/fiber_plugin.so
-    install -Dm755 $pkgbase-$pkgver/rbthreads_plugin.so $pkgdir/usr/lib/uwsgi/rbthreads_plugin.so
+    install -Dm755 $pkgbase-$pkgver/rack_plugin.so "$pkgdir"/usr/lib/uwsgi/rack_plugin.so
+    install -Dm755 $pkgbase-$pkgver/fiber_plugin.so "$pkgdir"/usr/lib/uwsgi/fiber_plugin.so
+    install -Dm755 $pkgbase-$pkgver/rbthreads_plugin.so "$pkgdir"/usr/lib/uwsgi/rbthreads_plugin.so
 }
 
 package_uwsgi-plugin-psgi() {
     depends=(uwsgi perl)
     pkgdesc="Perl psgi plugin"
-    install -Dm755 $pkgbase-$pkgver/psgi_plugin.so $pkgdir/usr/lib/uwsgi/psgi_plugin.so
+    install -Dm755 $pkgbase-$pkgver/psgi_plugin.so "$pkgdir"/usr/lib/uwsgi/psgi_plugin.so
 }
 
 package_uwsgi-plugin-python() {
     depends=(uwsgi python python-greenlet)
     pkgdesc="Plugin for Python support"
-    install -Dm755 $pkgbase-$pkgver/python_plugin.so $pkgdir/usr/lib/uwsgi/python_plugin.so
-    install -Dm755 $pkgbase-$pkgver/greenlet_plugin.so $pkgdir/usr/lib/uwsgi/greenlet_plugin.so
-    install -Dm755 $pkgbase-$pkgver/gevent_plugin.so $pkgdir/usr/lib/uwsgi/gevent_plugin.so
-    install -Dm755 $pkgbase-$pkgver/asyncio_plugin.so $pkgdir/usr/lib/uwsgi/asyncio_plugin.so
-    install -Dm644 $pkgbase-$pkgver/uwsgidecorators.py $pkgdir/usr/lib/python3.8/site-packages/uwsgidecorators.py
-    python -m compileall $pkgdir/usr/lib/python3.8/site-packages/
-    python -O -m compileall $pkgdir/usr/lib/python3.8/site-packages/
+    install -Dm755 $pkgbase-$pkgver/python_plugin.so "$pkgdir"/usr/lib/uwsgi/python_plugin.so
+    install -Dm755 $pkgbase-$pkgver/greenlet_plugin.so "$pkgdir"/usr/lib/uwsgi/greenlet_plugin.so
+    install -Dm755 $pkgbase-$pkgver/gevent_plugin.so "$pkgdir"/usr/lib/uwsgi/gevent_plugin.so
+    install -Dm755 $pkgbase-$pkgver/asyncio_plugin.so "$pkgdir"/usr/lib/uwsgi/asyncio_plugin.so
+    install -Dm644 $pkgbase-$pkgver/uwsgidecorators.py "$pkgdir"/usr/lib/python3.8/site-packages/uwsgidecorators.py
+    python -m compileall "$pkgdir"/usr/lib/python3.8/site-packages/
+    python -O -m compileall "$pkgdir"/usr/lib/python3.8/site-packages/
 }
 
 package_uwsgi-plugin-pypy() {
     depends=(uwsgi pypy)
     pkgdesc="Plugin for PyPy support"
-    install -Dm755 $pkgbase-$pkgver/pypy_plugin.so $pkgdir/usr/lib/uwsgi/pypy_plugin.so
-    install -Dm644 $pkgbase-$pkgver/uwsgidecorators.py $pkgdir/opt/pypy/site-packages/uwsgidecorators.py
-    pypy -m compileall $pkgdir/opt/pypy/site-packages/
-    pypy -O -m compileall $pkgdir/opt/pypy/site-packages/
+    install -Dm755 $pkgbase-$pkgver/pypy_plugin.so "$pkgdir"/usr/lib/uwsgi/pypy_plugin.so
+    install -Dm644 $pkgbase-$pkgver/uwsgidecorators.py "$pkgdir"/opt/pypy/site-packages/uwsgidecorators.py
+    pypy -m compileall "$pkgdir"/opt/pypy/site-packages/
+    pypy -O -m compileall "$pkgdir"/opt/pypy/site-packages/
 }
 
 package_uwsgi-plugin-lua51() {
     depends=(uwsgi lua51)
     pkgdesc="Plugin for Lua support"
-    install -Dm755 $pkgbase-$pkgver/lua_plugin.so $pkgdir/usr/lib/uwsgi/lua_plugin.so
+    install -Dm755 $pkgbase-$pkgver/lua_plugin.so "$pkgdir"/usr/lib/uwsgi/lua_plugin.so
 }
 
 package_uwsgi-plugin-php() {
     depends=(uwsgi php-embed libyaml jansson)
     pkgdesc="Plugin for PHP support"
-    install -Dm755 $pkgbase-$pkgver/php_plugin.so $pkgdir/usr/lib/uwsgi/php_plugin.so
+    install -Dm755 $pkgbase-$pkgver/php_plugin.so "$pkgdir"/usr/lib/uwsgi/php_plugin.so
 }
 
 package_uwsgi-plugin-jvm() {
     depends=(uwsgi java-environment=7 classpath)
     pkgdesc="Plugin for Jvm support"
-    install -Dm644 $pkgbase-$pkgver/plugins/jvm/uwsgi.jar $pkgdir/usr/share/java/uwsgi.jar
-    install -Dm755 $pkgbase-$pkgver/jvm_plugin.so $pkgdir/usr/lib/uwsgi/jvm_plugin.so
+    install -Dm644 $pkgbase-$pkgver/plugins/jvm/uwsgi.jar "$pkgdir"/usr/share/java/uwsgi.jar
+    install -Dm755 $pkgbase-$pkgver/jvm_plugin.so "$pkgdir"/usr/lib/uwsgi/jvm_plugin.so
 }
 
 package_uwsgi-plugin-mono() {
     depends=(uwsgi mono)
     pkgdesc="Plugin for mono support"
-    install -Dm755 $pkgbase-$pkgver/plugins/mono/uwsgi.dll $pkgdir/usr/lib/mono/2.0/uwsgi.dll
-    install -Dm755 $pkgbase-$pkgver/mono_plugin.so $pkgdir/usr/lib/uwsgi/mono_plugin.so
+    install -Dm755 $pkgbase-$pkgver/plugins/mono/uwsgi.dll "$pkgdir"/usr/lib/mono/2.0/uwsgi.dll
+    install -Dm755 $pkgbase-$pkgver/mono_plugin.so "$pkgdir"/usr/lib/uwsgi/mono_plugin.so
 }
 
 package_uwsgi-plugin-webdav() {
     depends=(uwsgi)
     pkgdesc="Plugin for webdav support"
-    install -Dm755 $pkgbase-$pkgver/webdav_plugin.so $pkgdir/usr/lib/uwsgi/webdav_plugin.so
+    install -Dm755 $pkgbase-$pkgver/webdav_plugin.so "$pkgdir"/usr/lib/uwsgi/webdav_plugin.so
 }
 
 package_uwsgi-plugin-zabbix() {
     depends=(uwsgi)
     pkgdesc="Plugin for zabbix support"
-    install -Dm755 $pkgbase-$pkgver/zabbix_plugin.so $pkgdir/usr/lib/uwsgi/zabbix_plugin.so
+    install -Dm755 $pkgbase-$pkgver/zabbix_plugin.so "$pkgdir"/usr/lib/uwsgi/zabbix_plugin.so
 }
 
 package_uwsgi-plugin-notfound() {
     depends=(uwsgi)
     pkgdesc="Plugin for notfound support"
-    install -Dm755 $pkgbase-$pkgver/notfound_plugin.so $pkgdir/usr/lib/uwsgi/notfound_plugin.so
+    install -Dm755 $pkgbase-$pkgver/notfound_plugin.so "$pkgdir"/usr/lib/uwsgi/notfound_plugin.so
 }


More information about the arch-commits mailing list