beanstalkd: fix service, use make_dirs=

This commit is contained in:
maxice8 2019-01-10 14:34:28 -02:00 committed by maxice8
parent 63099be5b5
commit c2bc46d9de
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -1,8 +1,8 @@
# Template file for 'beanstalkd' # Template file for 'beanstalkd'
pkgname=beanstalkd pkgname=beanstalkd
version=1.10 version=1.10
revision=3 revision=4
short_desc="A simple, fast, general-purpose work queue" short_desc="Simple, fast, general-purpose work queue"
maintainer="bougyman <bougyman@voidlinux.org>" maintainer="bougyman <bougyman@voidlinux.org>"
license="MIT" license="MIT"
homepage="http://kr.github.io/beanstalkd/" homepage="http://kr.github.io/beanstalkd/"
@ -11,10 +11,13 @@ checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
system_accounts="beanstalkd" system_accounts="beanstalkd"
replaces="beanstalk>=0" replaces="beanstalk>=0"
make_dirs="/var/lib/beanstalkd 755 beanstalkd beanstalkd"
do_build() { do_build() {
sed -i 's,sys/fcntl.h,fcntl.h,' sd-daemon.c sed -i 's,sys/fcntl.h,fcntl.h,' sd-daemon.c
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
} }
do_install() { do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install make PREFIX=/usr DESTDIR=${DESTDIR} install
vman doc/beanstalkd.1 vman doc/beanstalkd.1