|
@@ -1,6 +1,6 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
-RETCODE=$(fw_exists /usr/local/bin/mongrel2)
|
|
|
+RETCODE=$(fw_exists ${IROOT}/mongrel2.installed)
|
|
|
[ ! "$RETCODE" == 0 ] || { return 0; }
|
|
|
|
|
|
fw_depends zeromq
|
|
@@ -13,14 +13,17 @@ sudo ldconfig -v
|
|
|
|
|
|
fw_get https://github.com/zedshaw/mongrel2/tarball/v1.8.1 -O mongrel2.tar.gz
|
|
|
fw_untar mongrel2.tar.gz
|
|
|
+mv mongrel2 mongrel2-install
|
|
|
|
|
|
# mongrel2 untars into this folder
|
|
|
-mv zedshaw-mongrel2-aa2ecf8 mongrel2
|
|
|
+mv zedshaw-mongrel2-aa2ecf8 mongrel2-install
|
|
|
|
|
|
# for zmq4, we update the following file manually (not in v1.8.1)
|
|
|
fw_get https://raw.github.com/zedshaw/mongrel2/9b565eeea003783c47502c2d350b99c9684ce97c/src/zmq_compat.h
|
|
|
-mv -f zmq_compat.h mongrel2/src/
|
|
|
+mv -f zmq_compat.h mongrel2-install/src/
|
|
|
|
|
|
-cd mongrel2
|
|
|
-make clean all
|
|
|
-sudo make install
|
|
|
+cd mongrel2-install
|
|
|
+PREFIX=${IROOT}/mongrel2 make clean all
|
|
|
+PREFIX=${IROOT}/mongrel2 make install
|
|
|
+
|
|
|
+touch ${IROOT}/mongrel2.installed
|