1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Distributed memory object caching system
8 HOMEPAGE= http://www.memcached.org/
12 SITES[main]= http://www.memcached.org/files/
13 DISTFILE[1]= memcached-1.6.21.tar.gz:main
15 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILD_DEPENDS= python-xml2rfc:single:python_default
26 BUILDRUN_DEPENDS= libevent:primary:standard
27 cyrus-sasl:primary:standard
31 LICENSE= BSD3CLAUSE:primary
32 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
35 FPC_EQUIVALENT= databases/memcached
36 SHEBANG_FILES= scripts/memcached-tool
39 CONFIGURE_ARGS= --with-libevent={{LOCALBASE}}
46 RC_SUBR= memcached:primary
48 VAR_ARCH[aarch64]= CONFIGURE_ARGS=--enable-64bit
49 VAR_ARCH[x86_64]= CONFIGURE_ARGS=--enable-64bit
52 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool \
53 ${STAGEDIR}${PREFIX}/bin
55 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
56 .for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
57 readme.txt threads.txt
58 ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${STD_DOCDIR}
61 [FILE:185:descriptions/desc.primary]
62 memcached is a high-performance, distributed memory object caching
63 system, generic in nature, but intended for use in speeding up dynamic
64 web applications by alleviating database load.
68 c788980efc417dd5d93c442b1c8b8769fb2018896c29de3887d22a2f143da2ee 1127623 memcached-1.6.21.tar.gz
71 [FILE:32:manifests/plist.primary]
77 [FILE:48:manifests/plist.dev]
83 [FILE:30:manifests/plist.man]
84 share/man/man1/memcached.1.gz
87 [FILE:108:manifests/plist.docs]
89 protocol-binary-range.txt
96 [FILE:310:patches/patch-configure]
97 --- configure.orig 2023-06-16 02:12:14 UTC
99 @@ -5868,7 +5868,7 @@ fi
100 printf "%s\n" "#define ENABLE_DTRACE 1" >>confdefs.h
103 - $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
107 dtrace_instrument_obj=yes
110 [FILE:3054:files/memcached.in]
117 # Add the following lines to /etc/rc.conf to run memcached:
119 # memcached_enable (bool): Set it to "YES" to enable memcached.
121 # memcached_flags (flags): Set extra flags here. More options in memcached(1)
122 # Default is empty "".
123 # memcached_user (user): Set user to run memcached.
124 # Default is "nobody".
125 # memcached_group (group): Set group to run memcached.
126 # Default is "nobody".
127 # memcached_profiles (str): Set to "" by default.
128 # Define your profiles here.
129 # memcached_post_start (str): Set extra commands that should be executed after memcached was successfully
131 # Default is empty "".
136 rcvar=memcached_enable
138 _piddir="/var/run/memcached"
139 pidfile="${_piddir}/memcached.pid"
141 : ${memcached_enable="NO"}
142 : ${memcached_user="nobody"}
143 : ${memcached_group="nobody"}
145 load_rc_config ${name}
149 if [ -n "${memcached_profiles}" ]; then
150 pidfile="${_piddir}/memcached.${profile}.pid"
151 eval memcached_enable="\${memcached_${profile}_enable:-${memcached_enable}}"
152 eval memcached_user="\${memcached_${profile}_user:-${memcached_user}}"
153 eval memcached_group="\${memcached_${profile}_group:-${memcached_group}}"
154 eval memcached_flags="\${memcached_${profile}_flags:-${memcached_flags}}"
155 eval memcached_post_start="\${memcached_${profile}_post_start:-${memcached_post_start}}"
157 echo "%%PREFIX%%/etc/rc.d/memcached: extra argument ignored"
160 if [ -n "${memcached_profiles}" -a -n "$1" ]; then
161 for profile in ${memcached_profiles}; do
162 eval _enable="\${memcached_${profile}_enable}"
163 case "${_enable:-${memcached_enable}}" in
164 [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
167 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
170 if test -z "$_enable"; then
171 _var=memcached_enable
173 _var=memcached_"${profile}"_enable
176 "'${_enable:-${memcached_enable}}'" \
178 "Profile ${profile} skipped."
182 echo "===> memcached profile: ${profile}"
183 if %%PREFIX%%/etc/rc.d/memcached $1 ${profile} ; then
184 success="${profile} ${success:-}"
186 failed="${profile} (${retcode}) ${failed:-}"
193 memcached_poststart()
195 if [ -n "$memcached_post_start" ]; then
196 eval $memcached_post_start
202 if [ -n "${profile}" ]; then
203 [ -e "$pidfile" ] && unlink $pidfile
207 for file in ${_piddir}/* ; do
217 command=%%PREFIX%%/bin/memcached
218 command_args="-d -P ${pidfile} "
220 start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
221 start_postcmd="${name}_poststart"
222 stop_postcmd="${name}_poststop"