summaryrefslogtreecommitdiff
path: root/packages/nfs-utils/nfs-utils_1.0.6.bb
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2005-06-11 22:41:33 +0000
committerJohn Bowler <jbowler@nslu2-linux.org>2005-06-11 22:41:33 +0000
commitdcb09a201c63d9482fa7cd716b6535ea41552f83 (patch)
tree7670e07b951ae9e116d0229f91e53285646c5cd5 /packages/nfs-utils/nfs-utils_1.0.6.bb
parentbe5521587e9bc187f6da403b7290d67b2ddcbe8e (diff)
Fix the installation of the /var directory contents
(/var/lib/nfs/...) in nfs-utils BKrev: 42ab689dd88f7RWUAeb8F9gtyYC91Q
Diffstat (limited to 'packages/nfs-utils/nfs-utils_1.0.6.bb')
-rw-r--r--packages/nfs-utils/nfs-utils_1.0.6.bb25
1 files changed, 13 insertions, 12 deletions
diff --git a/packages/nfs-utils/nfs-utils_1.0.6.bb b/packages/nfs-utils/nfs-utils_1.0.6.bb
index 53b1b992ae..f37e76f071 100644
--- a/packages/nfs-utils/nfs-utils_1.0.6.bb
+++ b/packages/nfs-utils/nfs-utils_1.0.6.bb
@@ -3,7 +3,7 @@ PRIORITY = "optional
SECTION = "console/networking"
MAINTAINER = "dyoung <dyoung@thestuffguy.com>"
LICENSE = GPL
-PR = "r0"
+PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
file://acinclude-lossage.patch;patch=1 \
@@ -16,7 +16,7 @@ inherit autotools
EXTRA_OECONF = "--with-statduser=nobody \
--enable-nfsv3 \
- --with-statedir=/var/lib/nfs"
+ --with-statedir=${localstatedir}/lib/nfs"
do_compile() {
# UGLY HACK ALERT
@@ -25,19 +25,20 @@ do_compile() {
}
do_install() {
- mkdir -p ${D}var/lib/nfs
- touch ${D}var/lib/nfs/xtab; chmod 644 ${D}var/lib/nfs/xtab
- touch ${D}var/lib/nfs/etab; chmod 644 ${D}var/lib/nfs/etab
- touch ${D}var/lib/nfs/smtab; chmod 644 ${D}var/lib/nfs/smtab
+ mkdir -p ${D}${localstatedir}/lib/nfs
+ touch ${D}${localstatedir}/lib/nfs/xtab; chmod 644 ${D}${localstatedir}/lib/nfs/xtab
+ touch ${D}${localstatedir}/lib/nfs/etab; chmod 644 ${D}${localstatedir}/lib/nfs/etab
+ touch ${D}${localstatedir}/lib/nfs/smtab; chmod 644 ${D}${localstatedir}/lib/nfs/smtab
+ touch ${D}${localstatedir}/lib/nfs/rmtab; chmod 644 ${D}${localstatedir}/lib/nfs/rmtab
- mkdir -p ${D}var/lib/nfs/sm
- mkdir -p ${D}var/lib/nfs/sm.bak
+ mkdir -p ${D}${localstatedir}/lib/nfs/sm
+ mkdir -p ${D}${localstatedir}/lib/nfs/sm.bak
- touch ${D}var/lib/nfs/state
+ touch ${D}${localstatedir}/lib/nfs/state
- chmod go-rwx ${D}var/lib/nfs/sm
- chmod go-rwx ${D}var/lib/nfs/sm.bak
- chmod go-rwx ${D}var/lib/nfs/state
+ chmod go-rwx ${D}${localstatedir}/lib/nfs/sm
+ chmod go-rwx ${D}${localstatedir}/lib/nfs/sm.bak
+ chmod go-rwx ${D}${localstatedir}/lib/nfs/state
# they should be owned by statduser, how to do that..
install -d ${D}${sbindir}