beanstalkd: update to 1.11

Updated to 1.11 and some template cleanup

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
Nathan Owens 2019-12-04 18:33:34 -06:00 committed by Juan RP
parent 36cfc27aca
commit 944def3e45
2 changed files with 13 additions and 11 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
# By default use persistent storage (binary log)
[ -r conf ] && . ./conf
exec chpst -u beanstalkd:beanstalkd beanstalkd ${OPTS:=-b /var/lib/beanstalkd} 2>&1
exec chpst -u _beanstalkd:_beanstalkd beanstalkd ${OPTS:=-b /var/lib/beanstalkd} 2>&1

View file

@ -1,27 +1,29 @@
# Template file for 'beanstalkd'
pkgname=beanstalkd
version=1.10
revision=4
version=1.11
revision=1
build_style=gnu-makefile
short_desc="Simple, fast, general-purpose work queue"
maintainer="bougyman <bougyman@voidlinux.org>"
license="MIT"
homepage="http://kr.github.io/beanstalkd/"
distfiles="https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"
checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
system_accounts="beanstalkd"
checksum=5e3414e49d00e9ef9530897983e56bdba98da6f8f1f30f5fe7e6064b2f68c544
system_accounts="_beanstalkd"
replaces="beanstalk>=0"
make_dirs="/var/lib/beanstalkd 755 beanstalkd beanstalkd"
make_dirs="/var/lib/beanstalkd 755 _beanstalkd _beanstalkd"
do_build() {
CFLAGS="-Wno-error"
pre_build() {
sed -i 's,sys/fcntl.h,fcntl.h,' sd-daemon.c
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
vsed -i 's,override,,g' Makefile
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
post_install() {
vman doc/beanstalkd.1
vdoc README
vdoc README.md README
vdoc doc/protocol.txt
vlicense LICENSE
vsv beanstalkd