-Amélioré fonctions de download des packages
[hvlinux.git] / stage5 / pkg / cdrtools
index 50df063..37228ad 100644 (file)
@@ -1,22 +1,13 @@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
 
-# First argument of this script is the package name
+hvbuild()
+{
+    cd ${LFS_TMP}/${PACKAGE}
+    make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
+    make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
 
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
-make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install
-
-cat > /etc/sysconfig/cdrecord << "EOF"
-#!/bin/sh
+    cat > /etc/sysconfig/cdrecord << "EOF"
+#!/bin/bash
 
 # If you know exactly the device to use with cdrecord,
 # enter it in this variable. If this variable is empty,
@@ -31,5 +22,4 @@ cat > /etc/sysconfig/cdrecord << "EOF"
 CDREC_DEVICE_DESC="CD-Writer+ 8200"
 CDROM_DEVICE_DESC="CDR-8235"
 EOF
-
-exit $?
+}