the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: memcached
Version: 1.2.8
Revision: 1
DocFiles: AUTHORS COPYING ChangeLog NEWS README TODO doc/CONTRIBUTORS doc/memory_management.txt doc/protocol.txt
Description: High-performance object caching system
License: BSD
Maintainer: Alexey Zakhlestin
Homepage: http://danga.com/memcached/
DescDetail: <<
memcached is a high-performance, distributed memory object caching system,
generic in nature, but intended for use in speeding up dynamic web
applications by alleviating database load.
<<
DescUsage: <<
to start the server just type:
memcached -d -m 2048 -l 10.0.0.40 -p 11211
This starts memcached up as a daemon, using 2GB of memory, and listening on
IP 10.0.0.40, port 11211.
<<
BuildDepends: fink (>= 0.24.12), libevent1
Depends: daemonic, libevent1-shlibs
Source: http://danga.com/memcached/dist/%n-%v.tar.gz
Source-MD5: e5a4ee04e517a5cad110f29e4490e4ab
ConfigureParams: --disable-dependency-tracking --with-libevent=%p
CompileScript: <<
./configure %c
make
make test
<<
InstallScript: <<
make install prefix=%i bindir=%i/sbin mandir=%i/share/man datadir=%i/share/doc/%n
rm -f %i/sbin/memcached-debug
mkdir -p %i/var/run/%n
<<
DaemonicName: %n
DaemonicFile: <<
<<
PostInstScript: <<
set +e
if [ "$1" = "configure" ]; then
chown nobody:nobody %p/var/run/%n
%p/bin/daemonic install %n
echo '###########################################################################'
echo ' use daemonic to configure and run memcached, please:'
echo ' %p/etc/daemons/%n.xml -- service definition'
echo ' daemonic update %n -- load new xml definition'
echo ' daemonic enable %n -- add to startup'
echo ' daemonic disable %n -- remove from startup'
echo ' /Library/StartupItems/daemonic-%n/daemonic-%n start -- start immediately'
echo '###########################################################################'
fi
if [ "$1" = "upgrade" ]; then
%p/bin/daemonic update %n
if [ -f /Library/StartupItems/daemonic-%n/daemonic-%n ]; then
echo "Stopping %n"
killall %n 2>/dev/null
/Library/StartupItems/daemonic-%n/daemonic-%n start
fi
fi
<<
PreRmScript: <<
set +e
if [ "$1" != "upgrade" ]; then
if [ -f %p/var/run/%n.pid ]; then
echo "Stopping %n"
killall %n 2>/dev/null
fi
%p/bin/daemonic disable %n
fi
<<