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.15.tar.gz:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= python-xml2rfc:single:python_default
23 BUILDRUN_DEPENDS= libevent:single:standard
24 cyrus-sasl:primary:standard
26 USES= cpe shebangfix autoreconf
28 LICENSE= BSD3CLAUSE:primary
29 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
32 FPC_EQUIVALENT= databases/memcached
33 SHEBANG_FILES= scripts/memcached-tool
36 CONFIGURE_ARGS= --with-libevent={{LOCALBASE}}
42 RC_SUBR= memcached:primary
44 VAR_ARCH[aarch64]= CONFIGURE_ARGS=--enable-64bit
45 VAR_ARCH[x86_64]= CONFIGURE_ARGS=--enable-64bit
48 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool \
49 ${STAGEDIR}${PREFIX}/bin
51 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
52 .for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
53 readme.txt threads.txt
54 ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${STD_DOCDIR}
57 [FILE:185:descriptions/desc.primary]
58 memcached is a high-performance, distributed memory object caching
59 system, generic in nature, but intended for use in speeding up dynamic
60 web applications by alleviating database load.
64 8d7abe3d649378edbba16f42ef1d66ca3f2ac075f2eb97145ce164388e6ed515 1051109 memcached-1.6.15.tar.gz
67 [FILE:110:manifests/plist.primary]
74 share/man/man1/memcached.1.gz
77 [FILE:108:manifests/plist.docs]
79 protocol-binary-range.txt
86 [FILE:798:patches/patch-configure.ac]
87 --- configure.ac.orig 2022-02-21 18:58:33 UTC
89 @@ -188,7 +188,7 @@ if test "x$enable_dtrace" = "xyes"; then
90 if test "x$DTRACE" != "xno"; then
91 AC_DEFINE([ENABLE_DTRACE],1,[Set to nonzero if you want to include DTRACE])
93 - $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
97 dtrace_instrument_obj=yes
98 @@ -814,7 +814,7 @@ then
99 elif test "$GCC" = "yes"
101 GCC_VERSION=`$CC -dumpversion`
102 - CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
103 + CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
104 if test "x$enable_asan" = "xyes"; then
105 CFLAGS="$CFLAGS -fsanitize=address"
109 [FILE:3054:files/memcached.in]
116 # Add the following lines to /etc/rc.conf to run memcached:
118 # memcached_enable (bool): Set it to "YES" to enable memcached.
120 # memcached_flags (flags): Set extra flags here. More options in memcached(1)
121 # Default is empty "".
122 # memcached_user (user): Set user to run memcached.
123 # Default is "nobody".
124 # memcached_group (group): Set group to run memcached.
125 # Default is "nobody".
126 # memcached_profiles (str): Set to "" by default.
127 # Define your profiles here.
128 # memcached_post_start (str): Set extra commands that should be executed after memcached was successfully
130 # Default is empty "".
135 rcvar=memcached_enable
137 _piddir="/var/run/memcached"
138 pidfile="${_piddir}/memcached.pid"
140 : ${memcached_enable="NO"}
141 : ${memcached_user="nobody"}
142 : ${memcached_group="nobody"}
144 load_rc_config ${name}
148 if [ -n "${memcached_profiles}" ]; then
149 pidfile="${_piddir}/memcached.${profile}.pid"
150 eval memcached_enable="\${memcached_${profile}_enable:-${memcached_enable}}"
151 eval memcached_user="\${memcached_${profile}_user:-${memcached_user}}"
152 eval memcached_group="\${memcached_${profile}_group:-${memcached_group}}"
153 eval memcached_flags="\${memcached_${profile}_flags:-${memcached_flags}}"
154 eval memcached_post_start="\${memcached_${profile}_post_start:-${memcached_post_start}}"
156 echo "%%PREFIX%%/etc/rc.d/memcached: extra argument ignored"
159 if [ -n "${memcached_profiles}" -a -n "$1" ]; then
160 for profile in ${memcached_profiles}; do
161 eval _enable="\${memcached_${profile}_enable}"
162 case "${_enable:-${memcached_enable}}" in
163 [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
166 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
169 if test -z "$_enable"; then
170 _var=memcached_enable
172 _var=memcached_"${profile}"_enable
175 "'${_enable:-${memcached_enable}}'" \
177 "Profile ${profile} skipped."
181 echo "===> memcached profile: ${profile}"
182 if %%PREFIX%%/etc/rc.d/memcached $1 ${profile} ; then
183 success="${profile} ${success:-}"
185 failed="${profile} (${retcode}) ${failed:-}"
192 memcached_poststart()
194 if [ -n "$memcached_post_start" ]; then
195 eval $memcached_post_start
201 if [ -n "${profile}" ]; then
202 [ -e "$pidfile" ] && unlink $pidfile
206 for file in ${_piddir}/* ; do
216 command=%%PREFIX%%/bin/memcached
217 command_args="-d -P ${pidfile} "
219 start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
220 start_postcmd="${name}_poststart"
221 stop_postcmd="${name}_poststop"