beanstalkd: enable PIE; install man/docs; fix runit service; replaces beanstalk.
This commit is contained in:
parent
54a8a0a90e
commit
6ec2e04d4c
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# By default use persistent storage (binary log)
|
# By default use persistent storage (binary log)
|
||||||
: ${OPTS:=-b /var/lib/beanstalkd}
|
|
||||||
[ -r conf ] && . ./conf
|
[ -r conf ] && . ./conf
|
||||||
[ -d /var/lib/beanstalkd ] || install -D -o beanstalkd -g beanstalkd /var/lib/beanstalkd
|
[ -d /var/lib/beanstalkd ] || install -D -o beanstalkd -g beanstalkd /var/lib/beanstalkd
|
||||||
exec chpst -u beanstalkd:beanstalkd ${OPTS} 2>&1
|
exec chpst -u beanstalkd:beanstalkd beanstalkd ${OPTS:=-b /var/lib/beanstalkd} 2>&1
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'beanstalkd'
|
# Template file for 'beanstalkd'
|
||||||
pkgname=beanstalkd
|
pkgname=beanstalkd
|
||||||
version=1.10
|
version=1.10
|
||||||
revision=1
|
revision=2
|
||||||
|
build_pie=yes
|
||||||
short_desc="A simple, fast, general-purpose work queue"
|
short_desc="A simple, fast, general-purpose work queue"
|
||||||
maintainer="bougyman <bougyman@voidlinux.eu>"
|
maintainer="bougyman <bougyman@voidlinux.eu>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -9,6 +10,7 @@ homepage="http://kr.github.io/beanstalkd/"
|
||||||
distfiles="https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"
|
distfiles="https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"
|
||||||
checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
|
checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
|
||||||
system_accounts="beanstalkd"
|
system_accounts="beanstalkd"
|
||||||
|
replaces="beanstalk>=0"
|
||||||
|
|
||||||
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
|
||||||
|
@ -16,6 +18,9 @@ do_build() {
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||||
|
vman doc/beanstalkd.1
|
||||||
vdoc README
|
vdoc README
|
||||||
|
vdoc doc/protocol.txt
|
||||||
|
vlicense LICENSE
|
||||||
vsv beanstalkd
|
vsv beanstalkd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue