Fini la conversion du stage3 (nouveau format répertoire pkg)
[hvlinux.git] / stage3 / pkg / nfs-utils
index 6a5eeda..e1d6321 100644 (file)
@@ -1,27 +1,8 @@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
 
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-# Problem with build directory
-cd ${LFS_TMP}/${1}
-./configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --disable-nfsv4 \
-    --disable-gss
-make -j ${MAKEJOBS}
-make install
-
-cat > /etc/exports << "EOF"
+hvbuild_post()
+{
+    cat > /etc/exports << "EOF"
 # NFS file systems export list
 #
 # An entry in /etc/exports will typically look like this: 
@@ -31,7 +12,6 @@ cat > /etc/exports << "EOF"
 #/srv/www/htdocs       192.168.0.0/24(rw,sync)
 EOF
 
-install -v -m740 ${SCRDIR}/bootscripts/nfs /etc/rc.d/init.d
-bootscript_add_rc3 nfs 15 74
-
-exit $?
+    install -v -m740 ${SCRDIR}/bootscripts/nfs /etc/rc.d/init.d
+    bootscript_add_rc3 nfs 15 74
+}