Ravenports generated: 28 Oct 2022 03:24
[ravenports.git] / bucket_EB / memcached
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               memcached
4 VERSION=                1.6.17
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.17.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
42 RC_SUBR=                memcached:primary
43
44 VAR_ARCH[aarch64]=      CONFIGURE_ARGS=--enable-64bit
45 VAR_ARCH[x86_64]=       CONFIGURE_ARGS=--enable-64bit
46
47 post-install:
48         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool \
49                 ${STAGEDIR}${PREFIX}/bin
50         # docs
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}
55 .endfor
56
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.
61
62
63 [FILE:102:distinfo]
64 2055e373613d8fc21529aff9f0adce3e23b9ce01ba0478d30e7941d9f2bd1224      1713186 memcached-1.6.17.tar.gz
65
66
67 [FILE:110:manifests/plist.primary]
68 bin/
69  memcached
70  memcached-tool
71 include/memcached/
72  protocol_binary.h
73  xxhash.h
74 share/man/man1/memcached.1.gz
75
76
77 [FILE:108:manifests/plist.docs]
78 share/doc/memcached/
79  protocol-binary-range.txt
80  protocol-binary.txt
81  protocol.txt
82  readme.txt
83  threads.txt
84
85
86 [FILE:732:patches/patch-configure]
87 --- configure.orig      2022-08-27 00:37:42 UTC
88 +++ configure
89 @@ -5859,7 +5859,7 @@ fi
90  printf "%s\n" "#define ENABLE_DTRACE 1" >>confdefs.h
91  
92      build_dtrace=yes
93 -    $DTRACE -h -o conftest.h -s memcached_dtrace.d 2>/dev/zero
94 +    /usr/bin/true
95      if test $? -eq 0
96      then
97          dtrace_instrument_obj=yes
98 @@ -8421,7 +8421,7 @@ printf "%s\n" "#define _GNU_SOURCE 1" >>
99  elif test "$GCC" = "yes"
100  then
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"
106    fi
107
108
109 [FILE:3054:files/memcached.in]
110 #!/bin/sh
111
112 # PROVIDE: memcached
113 # REQUIRE: LOGIN
114 # KEYWORD: shutdown
115 #
116 # Add the following lines to /etc/rc.conf to run memcached:
117 #
118 # memcached_enable (bool):      Set it to "YES" to enable memcached.
119 #                               Default is "NO".
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
129 #                               started here.
130 #                               Default is empty "".
131
132 . /etc/rc.subr
133
134 name="memcached"
135 rcvar=memcached_enable
136
137 _piddir="/var/run/memcached"
138 pidfile="${_piddir}/memcached.pid"
139
140 : ${memcached_enable="NO"}
141 : ${memcached_user="nobody"}
142 : ${memcached_group="nobody"}
143
144 load_rc_config ${name}
145
146 if [ -n "$2" ]; then
147         profile="$2"
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}}"
155         else
156                 echo "%%PREFIX%%/etc/rc.d/memcached: extra argument ignored"
157         fi
158 else
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)
164                                 continue
165                                 ;;
166                         [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
167                                 ;;
168                         *)
169                                 if test -z "$_enable"; then
170                                         _var=memcached_enable
171                                 else
172                                         _var=memcached_"${profile}"_enable
173                                 fi
174                                 warn "Bad value" \
175                                     "'${_enable:-${memcached_enable}}'" \
176                                     "for ${_var}. " \
177                                     "Profile ${profile} skipped."
178                                 continue
179                                 ;;
180                         esac
181                         echo "===> memcached profile: ${profile}"
182                         if %%PREFIX%%/etc/rc.d/memcached $1 ${profile} ; then
183                                 success="${profile} ${success:-}"
184                         else
185                                 failed="${profile} (${retcode}) ${failed:-}"
186                         fi
187                 done
188                 exit 0
189         fi
190 fi
191
192 memcached_poststart()
193 {
194     if [ -n "$memcached_post_start" ]; then
195         eval $memcached_post_start
196     fi
197 }
198
199 memcached_poststop()
200 {
201         if [ -n "${profile}" ]; then
202                 [ -e "$pidfile" ] && unlink $pidfile
203         else
204                 local file
205
206                 for file in ${_piddir}/* ; do
207                         case "$file" in
208                         *\*)
209                                 continue ;;
210                         esac
211                         unlink $file
212                 done
213         fi
214 }
215
216 command=%%PREFIX%%/bin/memcached
217 command_args="-d -P ${pidfile} "
218
219 start_precmd="install -d -o $memcached_user -g $memcached_group -m 755 $_piddir"
220 start_postcmd="${name}_poststart"
221 stop_postcmd="${name}_poststop"
222
223 run_rc_command "$1"
224