rpcbind: added systemd build option.
This commit is contained in:
parent
4fe5f68da2
commit
5626c5ab7b
1 changed files with 10 additions and 4 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'rpcbind'
|
# Template file for 'rpcbind'
|
||||||
pkgname=rpcbind
|
pkgname=rpcbind
|
||||||
version=0.2.1
|
version=0.2.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-warmstarts --with-statedir=/run --with-rpcuser=rpc"
|
configure_args="--enable-warmstarts --with-statedir=/run --with-rpcuser=rpc"
|
||||||
hostmakedepends="pkg-config libtirpc-devel"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libtirpc-devel"
|
makedepends="libtirpc-devel"
|
||||||
systemd_services="${pkgname}.service on"
|
|
||||||
system_accounts="rpc"
|
system_accounts="rpc"
|
||||||
short_desc="Converts RPC program numbers into universal addresses"
|
short_desc="Converts RPC program numbers into universal addresses"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -15,8 +14,15 @@ license="BSD"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
checksum=da169ff877a5a07581fad50a9a808ac6e96f0c277a3df49a7ef005778428496e
|
checksum=da169ff877a5a07581fad50a9a808ac6e96f0c277a3df49a7ef005778428496e
|
||||||
|
|
||||||
|
build_options="systemd"
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
systemd_services="${pkgname}.service on"
|
||||||
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall man/rpcbind.8 644 usr/share/man/man8
|
vinstall man/rpcbind.8 644 usr/share/man/man8
|
||||||
vinstall man/rpcinfo.8 644 usr/share/man/man8
|
vinstall man/rpcinfo.8 644 usr/share/man/man8
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue