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.19.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
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}}
43 RC_SUBR= memcached:primary
45 VAR_ARCH[aarch64]= CONFIGURE_ARGS=--enable-64bit
46 VAR_ARCH[x86_64]= CONFIGURE_ARGS=--enable-64bit
49 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool \
50 ${STAGEDIR}${PREFIX}/bin
52 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
53 .for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
54 readme.txt threads.txt
55 ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${STD_DOCDIR}
58 [FILE:185:descriptions/desc.primary]
59 memcached is a high-performance, distributed memory object caching
60 system, generic in nature, but intended for use in speeding up dynamic
61 web applications by alleviating database load.
65 2fd48b047146398b073a588e97917d9bc908ce51978580d8e0bedaa123b4c70d 2599941 memcached-1.6.19.tar.gz
68 [FILE:110:manifests/plist.primary]
75 share/man/man1/memcached.1.gz
78 [FILE:108:manifests/plist.docs]
80 protocol-binary-range.txt
87 [FILE:310:patches/patch-configure]
88 --- configure.orig 2023-03-08 21:42:12 UTC
90 @@ -5868,7 +5868,7 @@ fi
91 printf "%s\n" "#define ENABLE_DTRACE 1" >>confdefs.h
94 - $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
98 dtrace_instrument_obj=yes
101 [FILE:3054:files/memcached.in]
108 # Add the following lines to /etc/rc.conf to run memcached:
110 # memcached_enable (bool): Set it to "YES" to enable memcached.
112 # memcached_flags (flags): Set extra flags here. More options in memcached(1)
113 # Default is empty "".
114 # memcached_user (user): Set user to run memcached.
115 # Default is "nobody".
116 # memcached_group (group): Set group to run memcached.
117 # Default is "nobody".
118 # memcached_profiles (str): Set to "" by default.
119 # Define your profiles here.
120 # memcached_post_start (str): Set extra commands that should be executed after memcached was successfully
122 # Default is empty "".
127 rcvar=memcached_enable
129 _piddir="/var/run/memcached"
130 pidfile="${_piddir}/memcached.pid"
132 : ${memcached_enable="NO"}
133 : ${memcached_user="nobody"}
134 : ${memcached_group="nobody"}
136 load_rc_config ${name}
140 if [ -n "${memcached_profiles}" ]; then
141 pidfile="${_piddir}/memcached.${profile}.pid"
142 eval memcached_enable="\${memcached_${profile}_enable:-${memcached_enable}}"
143 eval memcached_user="\${memcached_${profile}_user:-${memcached_user}}"
144 eval memcached_group="\${memcached_${profile}_group:-${memcached_group}}"
145 eval memcached_flags="\${memcached_${profile}_flags:-${memcached_flags}}"
146 eval memcached_post_start="\${memcached_${profile}_post_start:-${memcached_post_start}}"
148 echo "%%PREFIX%%/etc/rc.d/memcached: extra argument ignored"
151 if [ -n "${memcached_profiles}" -a -n "$1" ]; then
152 for profile in ${memcached_profiles}; do
153 eval _enable="\${memcached_${profile}_enable}"
154 case "${_enable:-${memcached_enable}}" in
155 [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
158 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
161 if test -z "$_enable"; then
162 _var=memcached_enable
164 _var=memcached_"${profile}"_enable
167 "'${_enable:-${memcached_enable}}'" \
169 "Profile ${profile} skipped."
173 echo "===> memcached profile: ${profile}"
174 if %%PREFIX%%/etc/rc.d/memcached $1 ${profile} ; then
175 success="${profile} ${success:-}"
177 failed="${profile} (${retcode}) ${failed:-}"
184 memcached_poststart()
186 if [ -n "$memcached_post_start" ]; then
187 eval $memcached_post_start
193 if [ -n "${profile}" ]; then
194 [ -e "$pidfile" ] && unlink $pidfile
198 for file in ${_piddir}/* ; do
208 command=%%PREFIX%%/bin/memcached
209 command_args="-d -P ${pidfile} "
211 start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
212 start_postcmd="${name}_poststart"
213 stop_postcmd="${name}_poststop"