mongrel2.sh 674 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. RETCODE=$(fw_exists /usr/local/bin/mongrel2)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_depends zeromq
  5. # Dependencies
  6. sudo apt-get install -y sqlite3 libsqlite3-dev uuid uuid-runtime uuid-dev
  7. fw_get https://github.com/zedshaw/mongrel2/tarball/v1.8.1 -O mongrel2.tar.gz
  8. fw_untar mongrel2.tar.gz
  9. # mongrel2 untars into this folder
  10. mv zedshaw-mongrel2-aa2ecf8 mongrel2
  11. # for zmq4, we update the following file manually (not in v1.8.1)
  12. fw_get https://raw.github.com/zedshaw/mongrel2/9b565eeea003783c47502c2d350b99c9684ce97c/src/zmq_compat.h
  13. mv -f zmq_compat.h mongrel2/src/
  14. cd mongrel2
  15. make clean all
  16. sudo make install
  17. # Update linker cache
  18. sudo ldconfig -v