Ravenports generated: 12 Oct 2023 22:54
[ravenports.git] / bucket_EB / memcached
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               memcached
4 VERSION=                1.6.21
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Distributed memory object caching system
8 HOMEPAGE=               http://www.memcached.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://www.memcached.org/files/
13 DISTFILE[1]=            memcached-1.6.21.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         dev
18                         man
19                         docs
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 BUILD_DEPENDS=          python-xml2rfc:single:python_default
25                         libevent:dev:standard
26 BUILDRUN_DEPENDS=       libevent:primary:standard
27                         cyrus-sasl:primary:standard
28
29 USES=                   cpe shebangfix
30
31 LICENSE=                BSD3CLAUSE:primary
32 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/COPYING
33 LICENSE_SCHEME=         solo
34
35 FPC_EQUIVALENT=         databases/memcached
36 SHEBANG_FILES=          scripts/memcached-tool
37
38 MUST_CONFIGURE=         gnu
39 CONFIGURE_ARGS=         --with-libevent={{LOCALBASE}}
40                         --program-prefix=
41                         --disable-coverage
42                         --enable-sasl
43                         --enable-docs
44                         --disable-werror
45
46 RC_SUBR=                memcached:primary
47
48 VAR_ARCH[aarch64]=      CONFIGURE_ARGS=--enable-64bit
49 VAR_ARCH[x86_64]=       CONFIGURE_ARGS=--enable-64bit
50
51 post-install:
52         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool \
53                 ${STAGEDIR}${PREFIX}/bin
54         # docs
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}
59 .endfor
60
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.
65
66
67 [FILE:102:distinfo]
68 c788980efc417dd5d93c442b1c8b8769fb2018896c29de3887d22a2f143da2ee      1127623 memcached-1.6.21.tar.gz
69
70
71 [FILE:32:manifests/plist.primary]
72 bin/
73  memcached
74  memcached-tool
75
76
77 [FILE:48:manifests/plist.dev]
78 include/memcached/
79  protocol_binary.h
80  xxhash.h
81
82
83 [FILE:30:manifests/plist.man]
84 share/man/man1/memcached.1.gz
85
86
87 [FILE:108:manifests/plist.docs]
88 share/doc/memcached/
89  protocol-binary-range.txt
90  protocol-binary.txt
91  protocol.txt
92  readme.txt
93  threads.txt
94
95
96 [FILE:310:patches/patch-configure]
97 --- configure.orig      2023-06-16 02:12:14 UTC
98 +++ configure
99 @@ -5868,7 +5868,7 @@ fi
100  printf "%s\n" "#define ENABLE_DTRACE 1" >>confdefs.h
101  
102      build_dtrace=yes
103 -    $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
104 +    /usr/bin/true
105      if test $? -eq 0
106      then
107          dtrace_instrument_obj=yes
108
109
110 [FILE:3054:files/memcached.in]
111 #!/bin/sh
112
113 # PROVIDE: memcached
114 # REQUIRE: LOGIN
115 # KEYWORD: shutdown
116 #
117 # Add the following lines to /etc/rc.conf to run memcached:
118 #
119 # memcached_enable (bool):      Set it to "YES" to enable memcached.
120 #                               Default is "NO".
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
130 #                               started here.
131 #                               Default is empty "".
132
133 . /etc/rc.subr
134
135 name="memcached"
136 rcvar=memcached_enable
137
138 _piddir="/var/run/memcached"
139 pidfile="${_piddir}/memcached.pid"
140
141 : ${memcached_enable="NO"}
142 : ${memcached_user="nobody"}
143 : ${memcached_group="nobody"}
144
145 load_rc_config ${name}
146
147 if [ -n "$2" ]; then
148         profile="$2"
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}}"
156         else
157                 echo "%%PREFIX%%/etc/rc.d/memcached: extra argument ignored"
158         fi
159 else
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)
165                                 continue
166                                 ;;
167                         [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
168                                 ;;
169                         *)
170                                 if test -z "$_enable"; then
171                                         _var=memcached_enable
172                                 else
173                                         _var=memcached_"${profile}"_enable
174                                 fi
175                                 warn "Bad value" \
176                                     "'${_enable:-${memcached_enable}}'" \
177                                     "for ${_var}. " \
178                                     "Profile ${profile} skipped."
179                                 continue
180                                 ;;
181                         esac
182                         echo "===> memcached profile: ${profile}"
183                         if %%PREFIX%%/etc/rc.d/memcached $1 ${profile} ; then
184                                 success="${profile} ${success:-}"
185                         else
186                                 failed="${profile} (${retcode}) ${failed:-}"
187                         fi
188                 done
189                 exit 0
190         fi
191 fi
192
193 memcached_poststart()
194 {
195     if [ -n "$memcached_post_start" ]; then
196         eval $memcached_post_start
197     fi
198 }
199
200 memcached_poststop()
201 {
202         if [ -n "${profile}" ]; then
203                 [ -e "$pidfile" ] && unlink $pidfile
204         else
205                 local file
206
207                 for file in ${_piddir}/* ; do
208                         case "$file" in
209                         *\*)
210                                 continue ;;
211                         esac
212                         unlink $file
213                 done
214         fi
215 }
216
217 command=%%PREFIX%%/bin/memcached
218 command_args="-d -P ${pidfile} "
219
220 start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
221 start_postcmd="${name}_poststart"
222 stop_postcmd="${name}_poststop"
223
224 run_rc_command "$1"
225