beanstalkd: fix service, use make_dirs=
This commit is contained in:
parent
63099be5b5
commit
c2bc46d9de
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
# By default use persistent storage (binary log)
|
||||
[ -r conf ] && . ./conf
|
||||
[ -d /var/lib/beanstalkd ] || install -D -o beanstalkd -g beanstalkd /var/lib/beanstalkd
|
||||
exec chpst -u beanstalkd:beanstalkd beanstalkd ${OPTS:=-b /var/lib/beanstalkd} 2>&1
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Template file for 'beanstalkd'
|
||||
pkgname=beanstalkd
|
||||
version=1.10
|
||||
revision=3
|
||||
short_desc="A simple, fast, general-purpose work queue"
|
||||
revision=4
|
||||
short_desc="Simple, fast, general-purpose work queue"
|
||||
maintainer="bougyman <bougyman@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="http://kr.github.io/beanstalkd/"
|
||||
|
@ -11,10 +11,13 @@ checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
|
|||
system_accounts="beanstalkd"
|
||||
replaces="beanstalk>=0"
|
||||
|
||||
make_dirs="/var/lib/beanstalkd 755 beanstalkd beanstalkd"
|
||||
|
||||
do_build() {
|
||||
sed -i 's,sys/fcntl.h,fcntl.h,' sd-daemon.c
|
||||
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||
vman doc/beanstalkd.1
|
||||
|
|
Loading…
Reference in New Issue