nfs-utils: use make_dirs.
This commit is contained in:
parent
9092c43685
commit
feb3a23794
3 changed files with 9 additions and 7 deletions
|
@ -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 -
|
|
|
@ -10,6 +10,10 @@ replaces="nfs-utils<1.2.6_2"
|
||||||
conf_files="/etc/exports"
|
conf_files="/etc/exports"
|
||||||
mutable_files="/var/lib/nfs/etab /var/lib/nfs/rmtab /var/lib/nfs/xtab"
|
mutable_files="/var/lib/nfs/etab /var/lib/nfs/rmtab /var/lib/nfs/xtab"
|
||||||
systemd_services="nfsd.service on rpc-mountd.service on"
|
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() {
|
do_install() {
|
||||||
vmove etc/exports etc
|
vmove etc/exports etc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nfs-utils'
|
# Template file for 'nfs-utils'
|
||||||
pkgname=nfs-utils
|
pkgname=nfs-utils
|
||||||
version=1.2.6
|
version=1.2.6
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
||||||
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
||||||
|
@ -23,6 +23,10 @@ long_desc="
|
||||||
The $pkgname package provides client utilities for the linux kernel
|
The $pkgname package provides client utilities for the linux kernel
|
||||||
implementation of NFS - Network File System."
|
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() {
|
pre_install() {
|
||||||
# Makefile doesn't seem to create it!
|
# Makefile doesn't seem to create it!
|
||||||
vmkdir sbin
|
vmkdir sbin
|
||||||
|
@ -34,8 +38,6 @@ post_install() {
|
||||||
vinstall ${FILESDIR}/exports 644 etc
|
vinstall ${FILESDIR}/exports 644 etc
|
||||||
vinstall ${FILESDIR}/idmapd.conf 644 etc
|
vinstall ${FILESDIR}/idmapd.conf 644 etc
|
||||||
# systemd glue
|
# systemd glue
|
||||||
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d 644 \
|
|
||||||
usr/lib/tmpfiles.d ${pkgname}.conf
|
|
||||||
vmkdir usr/lib/systemd/system
|
vmkdir usr/lib/systemd/system
|
||||||
install -m644 ${FILESDIR}/*.{service,mount} \
|
install -m644 ${FILESDIR}/*.{service,mount} \
|
||||||
${DESTDIR}/usr/lib/systemd/system
|
${DESTDIR}/usr/lib/systemd/system
|
||||||
|
|
Loading…
Reference in a new issue