Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=61a907491743ee51adb53556309d680406748186

commit 61a907491743ee51adb53556309d680406748186
Author: DeX77 <[email protected]>
Date:   Tue Dec 31 19:34:01 2013 +0100

uwsgi-2.0-1-x86_64

* new package

diff --git a/source/network-extra/uwsgi/FrugalBuild 
b/source/network-extra/uwsgi/FrugalBuild
new file mode 100644
index 0000000..44e1ba4
--- /dev/null
+++ b/source/network-extra/uwsgi/FrugalBuild
@@ -0,0 +1,264 @@
+# Compiling Time: 0.54 SBU
+# Maintainer: DeX77 <[email protected]>
+
+options+=('asneeded')
+
+pkgname=uwsgi
+pkgver=2.0
+pkgdesc="A fast, self-healing and developer/sysadmin-friendly application 
container server coded in pure C"
+pkgrel=1
+archs=(i686 x86_64)
+groups=('network-extra')
+url="http://projects.unbit.it/$pkname";
+license=(GPL2)
+conflicts=(python-$pkgbase)
+depends=('glibc')
+makedepends=(libyaml boost pcre libedit openssl gmp jansson openssl)
+source=(http://projects.unbit.it/downloads/$pkgname-$pkgver.tar.gz \
+       frugalware.ini \
+       uwsgi_trick_chroot.patch \
+       [email protected] \
+       [email protected] )
+up2date="Flasttar http://projects.unbit.it/downloads";
+_F_mono_nodepends="true"
+Finclude mono
+sha1sums=('6a210d25ab66b5726850fe0c80793ede55f02bcf' \
+          'e8687ab290013ca98f19400e383e65f88feca5ec' \
+          '851cbade79aac03c9cd0132dbb20c5db46cd0956' \
+          '5b28030d6a28b7a733ea42200360c1880d6bb9c1' \
+          'f7acfa534c5222dfaf407f30bda39c11389b7683')
+
+
+subpkgs=("uwsgi-plugin-rack"
+       "uwsgi-plugin-psgi"
+       "uwsgi-plugin-python"
+        "uwsgi-plugin-nagios"
+       "uwsgi-plugin-router"
+       "uwsgi-plugin-lua"
+       "uwsgi-plugin-carbon"
+       "uwsgi-plugin-pam"
+        "uwsgi-plugin-gevent"
+       "uwsgi-plugin-zergpool"
+       "uwsgi-plugin-jvm"
+        "uwsgi-plugin-webdav"
+       "uwsgi-plugin-graylog"
+       "uwsgi-plugin-ldap"
+        "uwsgi-plugin-geoip"
+       "uwsgi-plugin-sqlite"
+       "uwsgi-plugin-mono"
+       "uwsgi-plugin-logzmq"
+       "uwsgi-plugin-mongodblog"
+       "uwsgi-plugin-mongodb"
+       "uwsgi-plugin-xslt"
+       "uwsgi-plugin-airbrake"
+       "uwsgi-plugin-ruby"
+       "uwsgi-plugin-gridfs"
+       "uwsgi-plugin-mongrel"
+       "uwsgi-plugin-systemd"
+       "uwsgi-plugin-curl"
+       "uwsgi-plugin-xmpp"
+       "uwsgi-plugin-gccgo"
+       "uwsgi-plugin-ffi"
+       "uwsgi-plugin-objc"
+       "uwsgi-plugin-cplusplus")
+subdescs=("UWSGI Ruby Rack Plugin"
+       "UWSGI Perl psgi Plugin"
+        "UWSGI Python Plugin"
+       "UWSGI Nagios Plugin"
+       "UWSGI Router Plugin"
+        "UWSGI Lua Plugin"
+       "UWSGI Carbon Plugin"
+        "UWSGI PAM Plugin"
+       "UWSGI Gevent Plugin"
+       "UWSGI Zergpool Plugin"
+        "UWSGI Java Plugin"
+       "UWSGI WebDAV Plugin"
+       "UWSGI Graylog Plugin"
+        "UWSGI LDAP Plugin"
+       "UWSGI GeoIP Plugin"
+       "UWSGI SQLite3 Plugin"
+        "UWSGI Mono/.NET Plugin"
+       "USGI ZMQ Logging Plugin"
+       "UWSGI MongoDB Loggin Plugin"
+       "UWSGI MongoDB Plugin"
+       "UWSGI XSLT Plugin"
+       "UWSGI Airbrake Plugin"
+       "UWSGI Ruby Plugin"
+       "UWSGI GridFS Plugin"
+       "UWSGI Mongrel Plugin"
+       "UWSGI Sysemd Logging Plugin"
+       "UWSGI Curl Plugin"
+       "UWSGI Alarm XMPP Plugin"
+       "UWSGI GCC Go Plugin"
+       "UWSGI FFI Plugin"
+       "UWSGI ObjectiveC Plugin"
+       "UWSGI C++ Plugin")
+subdepends=('ruby'
+       'perl'
+       'python-greenlet'
+       ''
+       ''
+       'lua'
+        ''
+       ''
+       ''
+       ''
+       'openjdk'
+       'libxml2'
+       'zlib'
+       'libldap'
+       'geoip'
+        'sqlite3'
+       'mono'
+       'pyzmq'
+       'mongodb libboost'
+       'mongodb libboost'
+       'libxml2'
+       'libxml2 libssh2'
+       'ruby'
+       'libboost'
+       'zeromq'
+       'systemd'
+       'curl'
+       'gloox'
+       'gcc-go'
+       'libffi'
+       'gcc-objc'
+       'libstdc++')
+subrodepends=('uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+        'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi'
+        'uwsgi'
+       'uwsgi'
+        'uwsgi'
+       'uwsgi'
+       'uwsgi'
+        'uwsgi'
+        'uwsgi'
+       'uwsgi'
+       'uwsgi'
+       'uwsgi')
+
+subgroups=('network-extra'
+       'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra'
+        'network-extra')
+
+subarchs=('i686 x86_64'
+       'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64'
+        'i686 x86_64')
+
+build(){
+       Fcd
+       Fpatchall
+
+       mv ../frugalware.ini buildconf || Fdie
+
+        #Build core
+       export CFLAGS="-Wno-error"
+
+        python uwsgiconfig.py --build frugalware || Fdie
+
+       Fmkdir usr/bin
+       Finstall 755 ${_F_cd_path}/uwsgi usr/bin/
+
+       Fmkdir usr/lib/uwsgi
+
+       for lib in *.so
+       do
+               Finstall 755 ${_F_cd_path}/$lib usr/lib/uwsgi/
+       done
+
+       for plugin in "${subpkgs[@]}"
+       do
+               Fsplit $plugin 
usr/lib/uwsgi/\*${plugin/uwsgi-plugin-/}\*_plugin.so
+       done
+
+        Fmkdir /etc/tmpfiles.d
+        cat > $Fdestdir/etc/tmpfiles.d/uwsgi.conf << EOF
+d /run/uwsgi 0755 - - - -
+EOF
+
+       Ffile /lib/systemd/system/[email protected]
+       Ffile /lib/systemd/system/[email protected]
+
+}
+
+
+# optimization OK
diff --git a/source/network-extra/uwsgi/frugalware.ini 
b/source/network-extra/uwsgi/frugalware.ini
new file mode 100644
index 0000000..fa8b656
--- /dev/null
+++ b/source/network-extra/uwsgi/frugalware.ini
@@ -0,0 +1,17 @@
+[uwsgi]
+inherit = core
+bin_name = uwsgi
+xml = true
+yaml = true
+json = true
+pcre = true
+routing = true
+debug = false
+sqlite3 = true
+ssl = true
+xml_implementation = libxml2
+yaml_implementation = auto
+malloc_implementation = libc
+embedded_plugins = echo, ping, http, corerouter
+plugin_dir = /usr/lib/uwsgi
+plugins = airbrake, alarm_curl, alarm_xmpp, cache, carbon, cgi, 
cheaper_backlog2, cheaper_busyness, clock_monotonic, clock_realtime, 
corerouter, cplusplus, curl_cron, dumbloop, dummy, echo, emperor_amqp, 
emperor_mongodb, emperor_pg, emperor_zeromq, example, exception_log, 
fastrouter, fiber, forkptyrouter, gccgo, geoip, gevent, graylog2, greenlet, 
gridfs, http, jvm, jwsgi, ldap, legion_cache_fetch, libffi, logcrypto, logfile, 
logpipe, logsocket, logzmq, lua, mongodb, mongodblog, mongrel2, mono, msgpack, 
nagios, notfound, objc_gc, pam, ping, psgi, pty, pypy, python, pyuwsgi, rack, 
rawrouter, rbthreads, redislog, ring, router_basicauth, router_cache, 
router_expires, router_hash, router_http, router_memcached, router_metrics, 
router_radius, router_redirect, router_redis, router_rewrite, router_static, 
router_uwsgi, rpc, rrdtool, rsyslog, ruby19, servlet, signal, spooler, sqlite3, 
ssi, sslrouter, stats_pusher_file, stats_pusher_mongodb, stats_pusher_socket, 
stats_pusher_statsd, symcall, 
 syslog, systemd_logger, tornado, transformation_chunked, transformation_gzip, 
transformation_offload, transformation_template, transformation_tofile, 
transformation_toupper, tuntap, ugreen, webdav, xattr, xslt, zabbix, zergpool
diff --git a/source/network-extra/uwsgi/[email protected] 
b/source/network-extra/uwsgi/[email protected]
new file mode 100644
index 0000000..08941b5
--- /dev/null
+++ b/source/network-extra/uwsgi/[email protected]
@@ -0,0 +1,14 @@
+[Unit]
+Description=uWSGI Emperor
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/%I.ini
+Restart=always
+Type=notify
+StandardError=syslog
+NotifyAccess=main
+KillSignal=SIGQUIT
+
+[Install]
+WantedBy=multi-user.target
diff --git a/source/network-extra/uwsgi/[email protected] 
b/source/network-extra/uwsgi/[email protected]
new file mode 100644
index 0000000..012b33a
--- /dev/null
+++ b/source/network-extra/uwsgi/[email protected]
@@ -0,0 +1,9 @@
+[Unit]
+Description=Socket for uWSGI Cgit
+
+[Socket]
+# Change this to your uwsgi application port or unix socket location
+ListenStream=/run/uwsgi/%I.sock
+
+[Install]
+WantedBy=sockets.target
diff --git a/source/network-extra/uwsgi/uwsgi_trick_chroot.patch 
b/source/network-extra/uwsgi/uwsgi_trick_chroot.patch
new file mode 100644
index 0000000..3bfb1ac
--- /dev/null
+++ b/source/network-extra/uwsgi/uwsgi_trick_chroot.patch
@@ -0,0 +1,16 @@
+diff --git a/uwsgiconfig.py b/uwsgiconfig.py
+index e447123..4d55f2c 100644
+--- a/uwsgiconfig.py
++++ b/uwsgiconfig.py
+@@ -1129,10 +1129,7 @@ def build_plugin(path, uc, cflags, ldflags, libs, name 
= None):
+     except:
+         pass
+
+-    if uc:
+-        plugin_dest = uc.get('plugin_dir') + '/' + name + '_plugin'
+-    else:
+-        plugin_dest = name + '_plugin'
++    plugin_dest = name + '_plugin'
+
+     shared_flag = '-shared'
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to