public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tiziano Müller" <dev-zero@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/dev-zero:master commit in: www-servers/uwsgi/files/, www-servers/uwsgi/
Date: Tue,  9 Aug 2011 10:02:59 +0000 (UTC)	[thread overview]
Message-ID: <cbe548d673af5f78f7ec32ebc87ddc87511515aa.dev-zero@gentoo> (raw)

commit:     cbe548d673af5f78f7ec32ebc87ddc87511515aa
Author:     Tiziano Mueller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 16:06:21 2011 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 16:06:21 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=cbe548d6

Fix building and installing plugins.

---
 www-servers/uwsgi/Manifest                         |    5 ++-
 .../uwsgi/files/uwsgi-9999-fix-destdir.patch       |   11 +++++++++
 www-servers/uwsgi/files/uwsgi.initd                |    8 ++++++
 www-servers/uwsgi/uwsgi-9999.ebuild                |   24 +++++++++++++++----
 4 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/www-servers/uwsgi/Manifest b/www-servers/uwsgi/Manifest
index b04b601..13ba6bf 100644
--- a/www-servers/uwsgi/Manifest
+++ b/www-servers/uwsgi/Manifest
@@ -2,9 +2,10 @@ MISC ChangeLog 533 RMD160 cef38aefe63bc7d5ad4a767bc34b7f57a1be9b5a SHA1 80e5cd4b
 AUX 42_mod_uwsgi.conf 159 RMD160 d3de5b69a9e292c731508b13a0bdbe234fac9db7 SHA1 24624a805c16778aaa4e24b74d2e8230ee381aec SHA256 b759712baa7b8abab2ffd56c3cbc970cb9189ef1efa3f3aa154a963dc67ba861
 AUX uwsgi-0.9.8-fix-psgi-flags.patch 640 RMD160 6556801682d2c35e30b394812bf3c695b3f234da SHA1 6e305e2d1d9c8b3f5f0d41b72bcd058a2a1d0cc1 SHA256 f27db595c0c9e9002163d978fc5f7075e1aa8fd453395ac6c43848b1a96bdb42
 AUX uwsgi-0.9.8-no-werror.patch 624 RMD160 ef3ebbfff1c6b4a49297e780b5eb5545786f8173 SHA1 a4e0923cb5ebaab19cee5b4495b1625f54c7510b SHA256 8650fe560d25d9b6facf8034bb5edfedc8aa74f22a716da702d2b97a1d298998
+AUX uwsgi-9999-fix-destdir.patch 385 RMD160 86e055c560079c61035107943d63c48d3689c35c SHA1 44b54276acf2ea61da824bf8aab054e662cdc8aa SHA256 b9fcaf3b7a76ab7a5150b85df4a39ecf578a7f181d9880c36d1e6e876bcb0ed7
 AUX uwsgi.confd 1247 RMD160 f3cbb0ed1e83385e917949b7df1b8953792b9464 SHA1 2cba8d1990f0138f7bea113fec924b1656d53a8c SHA256 26c52f22137ffd44ef4c094ce9cf3b55f1c418f1602e0451462103a5117174a4
-AUX uwsgi.initd 2258 RMD160 567652a6d348494e8f74c002a4af48c361fe4202 SHA1 7119489ea985984735fc11e9f1414cc737d3c09e SHA256 38df43560b1a4de0bef8b3455bec46942917c97465da9ab167a4fc33ab1d53f8
+AUX uwsgi.initd 2392 RMD160 d90a00358cfafc341889882989593ee567c3b153 SHA1 af23d4a1646560acd7a9d82dc2ac98196392075a SHA256 98859da43ac2def62b9b7d8527207481cdb4fbfbb17e9de6a1f2853d3271654d
 MISC metadata.xml 255 RMD160 07d553bdf9282f61c4e99ad3f7697a310946cf9d SHA1 533ddafc8a18d2110ccdbec4c99c48abbcd6e633 SHA256 e3eef1b3ebe3eea3ba74657f3a332c7427c1bd24a5609d2ff887f63901d9cd35
 EBUILD uwsgi-0.9.8.3.ebuild 3329 RMD160 21e4b09e5fb03a56bfdd2256367992244de8396c SHA1 8aab4fe9a179c896615d66a3b1b487338e640744 SHA256 fc595c2be57e1e2a8ff92fdd1e79470be7abc104f2167e7326af560bfe6bc65f
-EBUILD uwsgi-9999.ebuild 3396 RMD160 8d77416b104053e16e133a4e75c59f2a7bbb66b1 SHA1 35c54016e8ea95302f304a3b516586d9750f5a5f SHA256 3896af58a9a0b915a9d84910595db9e015f13e952bc89fdb2ea006d0d97c941c
+EBUILD uwsgi-9999.ebuild 3701 RMD160 12064bd8202d62b224b6bb20739461a7c68bd003 SHA1 619c859ebb2e70ea545ee31ec9725bd9da966d65 SHA256 58bd6e5bc09b03ce9bc82c21e61c55536de61c985dde11befad0bb6c72d83245
 DIST uwsgi-0.9.8.3.tar.gz 351168 RMD160 8bfdaa9a503516378e834bca60dfa828b7bee9d2 SHA1 780a96a2c32a0f7bb7f5a63353acca2fbd23a8e6 SHA256 2b529a8408bb4938ebccd3c4264af5af4f17ee5bd6043376ef3909c2411f611f

diff --git a/www-servers/uwsgi/files/uwsgi-9999-fix-destdir.patch b/www-servers/uwsgi/files/uwsgi-9999-fix-destdir.patch
new file mode 100644
index 0000000..a7c47b6
--- /dev/null
+++ b/www-servers/uwsgi/files/uwsgi-9999-fix-destdir.patch
@@ -0,0 +1,11 @@
+--- uwsgiconfig.py.orig	2011-08-08 17:56:14.649325030 +0200
++++ uwsgiconfig.py	2011-08-08 17:58:00.085329500 +0200
+@@ -670,7 +670,7 @@
+     else:
+         p_cflags.append("-D%s_plugin=%s_plugin" % (up.NAME, name))
+ 
+-    plugin_dest = uc.get('plugin_dir') + '/' + name + '_plugin'
++    plugin_dest = uc.get('plugin_build_dir') + '/' + name + '_plugin'
+ 
+     shared_flag = '-shared'
+ 

diff --git a/www-servers/uwsgi/files/uwsgi.initd b/www-servers/uwsgi/files/uwsgi.initd
index 580f967..5877449 100644
--- a/www-servers/uwsgi/files/uwsgi.initd
+++ b/www-servers/uwsgi/files/uwsgi.initd
@@ -9,6 +9,8 @@ UWSGI_EXEC=/usr/bin/uwsgi
 PIDPATH=/var/run/uwsgi
 PIDFILE="${PIDPATH}/${PROGNAME}.pid"
 
+opts="${opts} reload"
+
 depend() {
 	need net
 }
@@ -86,3 +88,9 @@ stop() {
 	start-stop-daemon --stop --pidfile "${PIDFILE}" --signal 3
 	eend $?
 }
+
+reload() {
+    elog "Reloading uWSGI"
+    start-stop-daemon --signal HUP --pidfile "${PIDFILE}"
+    eend $?
+}

diff --git a/www-servers/uwsgi/uwsgi-9999.ebuild b/www-servers/uwsgi/uwsgi-9999.ebuild
index f2d9356..80ed927 100644
--- a/www-servers/uwsgi/uwsgi-9999.ebuild
+++ b/www-servers/uwsgi/uwsgi-9999.ebuild
@@ -6,7 +6,7 @@ EAPI="3"
 PYTHON_DEPEND="*"
 SUPPORT_PYTHON_ABIS="1"
 
-inherit eutils python toolchain-funcs apache-module mercurial
+inherit eutils python toolchain-funcs apache-module multilib mercurial
 
 DESCRIPTION="uWSGI server for Python web applications"
 HOMEPAGE="http://projects.unbit.it/uwsgi/"
@@ -37,7 +37,8 @@ want_apache2_2
 src_prepare() {
 	epatch \
 		"${FILESDIR}"/${PN}-0.9.8-no-werror.patch \
-		"${FILESDIR}"/${PN}-0.9.8-fix-psgi-flags.patch
+		"${FILESDIR}"/${P}-fix-destdir.patch
+
 	python_copy_sources
 }
 
@@ -55,6 +56,7 @@ src_configure() {
 		use lua && plugins+=", lua"
 		use perl && plugins+=", psgi"
 		use ruby && plugins+=", rack"
+		plugins="${plugins:1}"
 
 		cat > "buildconf/default.ini" << EOF
 [uwsgi]
@@ -82,11 +84,12 @@ unbit = false
 xml_implementation = libxml2
 yaml_implementation = libyaml
 malloc_implementation = libc
-plugins = python, ping, cache, nagios, rpc, fastrouter, http, ugreen${plugins}
+plugins = ${plugins}
 bin_name = uwsgi
 append_version =
-plugin_dir = plugins
-#embedded_plugins =  python, ping, cache, nagios, rpc, fastrouter, http, ugreen${plugins}
+plugin_build_dir = plugins
+plugin_dir = /usr/$(get_libdir)/uwsgi
+embedded_plugins =  python, ping, cache, nagios, rpc, fastrouter, http, ugreen
 
 locking = auto
 event = auto
@@ -120,6 +123,11 @@ src_compile() {
 src_install() {
 	installation() {
 		newbin uwsgi uwsgi-${PYTHON_ABI}
+
+		if use lua || use perl || use ruby ; then
+			insinto /usr/$(get_libdir)/uwsgi
+			doins plugins/*.so
+		fi
 	}
 	python_execute_function -s installation
 
@@ -134,6 +142,7 @@ src_install() {
 
 	newinitd "${FILESDIR}"/uwsgi.initd uwsgi
 	newconfd "${FILESDIR}"/uwsgi.confd uwsgi
+
 }
 
 pkg_postinst() {
@@ -145,4 +154,9 @@ pkg_postinst() {
 		elog "mod_uwsgi is commercially supported by Unbit and stable but a bit hacky."
 		elog "mod_Ruwsgi is newer and more Apache-API friendly but not commercially supported."
 	fi
+
+	if use lua || use perl || use ruby ; then
+		elog "The lua, perl and ruby modules are built as real plugins."
+		elog "Use '--plugins lua', '--plugins psgi' or '--plugins rack' to load them."
+	fi
 }



             reply	other threads:[~2011-08-09 10:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 10:02 Tiziano Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-23  7:49 [gentoo-commits] dev/dev-zero:master commit in: www-servers/uwsgi/files/, www-servers/uwsgi/ Tiziano Müller
2011-11-29 18:52 Tiziano Müller
2011-11-21 10:56 Tiziano Müller
2011-08-09 13:09 Tiziano Müller
2011-08-02  9:42 Tiziano Müller
2011-07-31 13:48 Tiziano Müller
2011-07-31 13:41 Tiziano Müller
2011-07-31 13:27 Tiziano Müller
2011-07-31 13:23 Tiziano Müller
2011-07-31 13:23 Tiziano Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cbe548d673af5f78f7ec32ebc87ddc87511515aa.dev-zero@gentoo \
    --to=dev-zero@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox