runit: use 'gnu-makefile' build-style
This commit is contained in:
parent
d765c03d9d
commit
e6995be69a
1 changed files with 10 additions and 14 deletions
|
@ -1,25 +1,25 @@
|
||||||
# Template file for 'runit'
|
# Template file for 'runit'
|
||||||
pkgname=runit
|
pkgname=runit
|
||||||
version=2.1.2
|
version=2.1.2
|
||||||
revision=9
|
revision=10
|
||||||
|
build_style="gnu-makefile"
|
||||||
wrksrc="admin"
|
wrksrc="admin"
|
||||||
|
build_wrksrc="${pkgname}-${version}/src"
|
||||||
short_desc="A UNIX init scheme with service supervision"
|
short_desc="A UNIX init scheme with service supervision"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="3-clause-BSD"
|
license="BSD-3-Clause"
|
||||||
homepage="http://smarden.org/runit/"
|
homepage="http://smarden.org/runit/"
|
||||||
distfiles="http://smarden.org/runit/runit-$version.tar.gz"
|
distfiles="http://smarden.org/runit/runit-$version.tar.gz"
|
||||||
checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
|
checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
|
||||||
|
|
||||||
build_options="static"
|
build_options="static"
|
||||||
|
|
||||||
do_build() {
|
if [ "$build_option_static" ]; then
|
||||||
cd ${pkgname}-${version}/src
|
CFLAGS+=" -static"
|
||||||
|
LDFLAGS+=" -static"
|
||||||
if [ "$build_option_static" ]; then
|
fi
|
||||||
CFLAGS+=" -static"
|
|
||||||
LDFLAGS+=" -static"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
sed -e 's,sbin/runit,usr/bin/runit,g' -i runit.h
|
sed -e 's,sbin/runit,usr/bin/runit,g' -i runit.h
|
||||||
|
|
||||||
echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc
|
echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc
|
||||||
|
@ -28,14 +28,10 @@ do_build() {
|
||||||
sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c
|
sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c
|
||||||
# change type short to gid_t for getgroups(2) and setgroups(2)
|
# change type short to gid_t for getgroups(2) and setgroups(2)
|
||||||
sed -i -e 's:short x\[4\];$:gid_t x[4];:' chkshsgr.c
|
sed -i -e 's:short x\[4\];$:gid_t x[4];:' chkshsgr.c
|
||||||
|
|
||||||
make ${makejobs}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vlicense ${pkgname}-${version}/package/COPYING
|
vlicense ../package/COPYING
|
||||||
|
|
||||||
cd ${pkgname}-${version}/src
|
|
||||||
|
|
||||||
# default services
|
# default services
|
||||||
vmkdir var
|
vmkdir var
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue