Created
August 30, 2010 15:50
-
-
Save jfqd/557587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# memcached build script for nexenta ncp3 (no package available) | |
cd /usr/local/src | |
# get libevent library | |
/usr/bin/wget http://www.monkey.org/~provos/libevent-1.4.14b-stable.tar.gz | |
/usr/sbin/tar xzf libevent-1.4.14b-stable.tar.gz | |
cd libevent-1.4.14b-stable | |
./configure | |
/usr/bin/make | |
/usr/bin/make install | |
cd .. | |
/usr/bin/rm -rf libevent-1.4.14b-stable | |
# add /usr/local/lib to lib search path | |
/usr/bin/crle -u -l /usr/local/lib | |
# get memcached | |
/usr/bin/wget http://memcached.googlecode.com/files/memcached-1.2.8.tar.gz | |
/usr/sbin/tar xzf memcached-1.2.8.tar.gz | |
cd memcached-1.2.8 | |
./configure | |
/usr/bin/make | |
/usr/bin/make install | |
cd .. | |
/usr/bin/rm -rf memcached-1.2.8 | |
# install smf | |
/usr/bin/wget -O /var/svc/manifest/application/database/memcached.xml http://gist.github.com/raw/557540/948242191110de3ec3cdcd703801ebba92949688/memcached.xml | |
/usr/bin/chown root:root /var/svc/manifest/application/database/memcached.xml | |
/usr/bin/chmod 444 /var/svc/manifest/application/database/memcached.xml | |
/usr/sbin/svccfg import /var/svc/manifest/application/database/memcached.xml | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment