-Amélioré fonctions de download des packages
[hvlinux.git] / stage5 / pkg / ckermit
index 5bd062b..480a63f 100644 (file)
@@ -1,26 +1,15 @@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
 
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
+hvbuild()
+{
+    cd ${LFS_TMP}/${PACKAGE}
+    make linux
+    make prefix=/usr install
+}
 
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make linux
-make prefix=/usr install
-
-cat > /etc/skel/.kermrc << "EOF"
+hvbuild_post()
+{
+    cat > /etc/skel/.kermrc << "EOF"
 set line /dev/ttyUSB0
 set speed 115200
 set carrier-watch off
@@ -34,5 +23,4 @@ set send pack 1000
 set window 5
 xecho \27[32m\27[40m
 EOF
-
-exit $?
+}