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