Browse Source

overlay: automatized application of pkgs/$pkg/ overlay dir, and patches/$pkg.patch

0.2-maint
Alejandro Mery 14 years ago
parent
commit
931f42155c
2 changed files with 25 additions and 5 deletions
  1. +24
    -0
      parse-config
  2. +1
    -5
      pkg_util-vserver.conf

+ 24
- 0
parse-config

@ -0,0 +1,24 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/sheba/parse-config
# Copyright (C) 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
shebadir="$base/target/${SDECFG_TRG_SHEBA:-sheba}"
x="$shebadir/pkgs/$pkg"
if [ -d "$x/" ]; then
var_append mnemosyne_overlay ' ' "$x"
fi
x="$shebadir/patches/$pkg.patch"
if [ -s "$x" ]; then
var_append patchfiles ' ' "$x"
fi
unset shebadir x

+ 1
- 5
pkg_util-vserver.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: target/sheba/pkg_util-vserver.conf # Filename: target/sheba/pkg_util-vserver.conf
# Copyright (C) 2007 - 2008 The OpenSDE Project
# Copyright (C) 2007 - 2010 The OpenSDE Project
# Copyright (C) 2004 - 2006 Alejandro Mery # Copyright (C) 2004 - 2006 Alejandro Mery
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -21,8 +21,6 @@ sheba_util_vserver_populate()
local devdir="$root$sysconfdir/vservers/.defaults/dev" local devdir="$root$sysconfdir/vservers/.defaults/dev"
local node= local node=
overlay_apply "$base/target/$target/pkgs/$pkg"
mkdir -p "$devdir" mkdir -p "$devdir"
"$udevconfdir/create_nodes.sh" "$devdir" < $root$docdir/nodes.txt | "$udevconfdir/create_nodes.sh" "$devdir" < $root$docdir/nodes.txt |
while read node; do while read node; do
@ -30,5 +28,3 @@ sheba_util_vserver_populate()
done done
} }
hook_add postmake 5 "sheba_util_vserver_populate" hook_add postmake 5 "sheba_util_vserver_populate"
var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch

Loading…
Cancel
Save