Browse Source

ecn-node: enhanced target logic and made more vserver friendly

master
Nagy Károly Gábriel 13 years ago
parent
commit
355adfc9f6
6 changed files with 76 additions and 1 deletions
  1. +16
    -0
      busybox.config
  2. +2
    -0
      config.in
  3. +18
    -1
      parse-config
  4. +15
    -0
      pkg_conf/busybox.conf
  5. +24
    -0
      pkg_conf/runit.conf
  6. +1
    -0
      pkgsel.d/core-userspace.all

+ 16
- 0
busybox.config

@ -0,0 +1,16 @@
# Core Features
#
X CONFIG_FEATURE_PRESERVE_HARDLINKS
# sysvinit
#
X CONFIG_LAST
X CONFIG_SULOGIN
X CONFIG_MESG
X CONFIG_WALL
X CONFIG_KILLALL5
X CONFIG_PIDOF
# needed by killall5
X CONFIG_KILL

+ 2
- 0
config.in

@ -14,6 +14,8 @@
#Description: ECN base node #Description: ECN base node
const SDECFG_TRG_ECN ${target:-$SDECFG_TARGET}
for x in OPT=size MULTILIB=0 \ for x in OPT=size MULTILIB=0 \
LIBC=glibc INIT=runit \ LIBC=glibc INIT=runit \
; do ; do

+ 18
- 1
parse-config

@ -12,6 +12,23 @@
# GNU General Public License can be found in the file COPYING. # GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END --- # --- SDE-COPYRIGHT-NOTE-END ---
ecn_apply_pkg_conf() {
[ ! -f "$1"/pkg_conf/$pkg.conf ] || . "$1"/pkg_conf/$pkg.conf
}
# append target specific patch files
ecn_append_patchfiles() {
for x in "$1"/pkg_patch/$pkg/*.patch
do
[ ! -f $x ] || var_append patchfiles ' ' $x
done
}
ecndir=$base/target/$SDECFG_TRG_ECN
ecn_apply_pkg_conf "$ecndir"
ecn_append_patchfiles "$ecndir"
unset ecndir
echo_status "Just minimal documentation files will be flisted" echo_status "Just minimal documentation files will be flisted"
ecn_flist_just_minimal_docs() { ecn_flist_just_minimal_docs() {
sed -i -e '/\.\(html\|pdf\|ps\|tex\)$/d;' \ sed -i -e '/\.\(html\|pdf\|ps\|tex\)$/d;' \
@ -19,5 +36,5 @@ echo_status "Just minimal documentation files will be flisted"
-e "/.*\/share\/\(doc\|gtk-doc\).*\/html\/.*/d;" \ -e "/.*\/share\/\(doc\|gtk-doc\).*\/html\/.*/d;" \
$builddir/flist.txt $builddir/flist.txt
} }
hook_add postflist 5 "ecn_flist_just_minimal_docs"
hook_add postflist 5 "ecn_flist_just_minimal_docs"

+ 15
- 0
pkg_conf/busybox.conf

@ -0,0 +1,15 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/ecn-node/pkg_conf/busybox.conf
# Copyright (C) 2012 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 ---
var_append conffiles ' ' "$base/target/$SDECFG_TRG_ECN/busybox.config"

+ 24
- 0
pkg_conf/runit.conf

@ -0,0 +1,24 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/ecn-node/pkg_conf/runit.conf
# Copyright (C) 2012 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 ---
vserver_cleanup() {
rm -rf $root/$sysconfdir/getty-*
rm -f $pkg_djb_servicedir/getty-*
rm -f $root/$sysconfdir/1.d/01system
rm -f $root/$sysconfdir/3.d/99system
}
hook_add postmake 9 'vserver_cleanup'

+ 1
- 0
pkgsel.d/core-userspace.all

@ -21,6 +21,7 @@ X bash
X bcron X bcron
X coreutils X coreutils
X util-linux X util-linux
X busybox
X mine X mine
X stone X stone
X socklog X socklog

Loading…
Cancel
Save