nfs-utils: use make_dirs.

This commit is contained in:
Juan RP 2012-07-14 23:28:07 +02:00
parent 9092c43685
commit feb3a23794
3 changed files with 9 additions and 7 deletions

View file

@ -1,4 +0,0 @@
d /var/lib/nfs/rpc_pipefs 0755 root root -
d /var/lib/nfs/v4recovery 0755 root root -
d /var/lib/nfs/sm 0750 root root -
d /etc/exports.d 0750 root root -

View file

@ -10,6 +10,10 @@ replaces="nfs-utils<1.2.6_2"
conf_files="/etc/exports"
mutable_files="/var/lib/nfs/etab /var/lib/nfs/rmtab /var/lib/nfs/xtab"
systemd_services="nfsd.service on rpc-mountd.service on"
make_dirs="
/var/lib/nfs/v4recovery 0755 root root
/var/lib/nfs/sm 0750 root root
/etc/exports.d 0750 root root"
do_install() {
vmove etc/exports etc

View file

@ -1,7 +1,7 @@
# Template file for 'nfs-utils'
pkgname=nfs-utils
version=1.2.6
revision=6
revision=7
build_style=gnu-configure
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
--with-statedir=/var/lib/nfs --enable-libmount-mount
@ -23,6 +23,10 @@ long_desc="
The $pkgname package provides client utilities for the linux kernel
implementation of NFS - Network File System."
make_dirs="
/var/lib/nfs/rpc_pipefs 0755 root root
/var/lib/nfs/sm 0750 root root"
pre_install() {
# Makefile doesn't seem to create it!
vmkdir sbin
@ -34,8 +38,6 @@ post_install() {
vinstall ${FILESDIR}/exports 644 etc
vinstall ${FILESDIR}/idmapd.conf 644 etc
# systemd glue
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d 644 \
usr/lib/tmpfiles.d ${pkgname}.conf
vmkdir usr/lib/systemd/system
install -m644 ${FILESDIR}/*.{service,mount} \
${DESTDIR}/usr/lib/systemd/system