You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
62 lines
1.8 KiB
18 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../busybox/busybox.conf
|
||
|
# Copyright (C) 2006 - 2007 The OpenSDE Project
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
||
|
#
|
||
|
# 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 ---
|
||
|
|
||
|
runconf=0
|
||
|
|
||
|
for x in $( match_source_file -p patch ); do
|
||
|
var_append patchfiles ' ' $x
|
||
|
done
|
||
|
|
||
|
. $base/package/*/uclibc/functions.in
|
||
|
|
||
|
hook_add premake 1 'auto_config 2'
|
||
|
|
||
|
# add basic config
|
||
|
var_append conffiles ' ' "$confdir/busybox.config"
|
||
|
|
||
|
[ "$SDECFG_STATIC" != 1 ] || var_append conffiles ' ' "$confdir/static.config"
|
||
|
|
||
|
# add custom/target configuration from $targetdir
|
||
|
if [ -e $targetdir/busybox.config ] ; then
|
||
|
var_append conffiles ' ' $targetdir/busybox.config
|
||
|
fi
|
||
|
|
||
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
|
||
|
prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
|
||
|
set_confopt
|
||
|
|
||
|
var_append flistroot ' ' "${prefix%%/*}"
|
||
|
var_append conffiles ' ' "$confdir/emergency.config"
|
||
|
|
||
|
fi
|
||
|
|
||
|
# FIXME: shouldn't emergency thing force the symlinks creation? (on config.in)
|
||
|
|
||
|
if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then
|
||
|
makeinstopt=''
|
||
|
hook_add postmake 5 'cp -v busybox $root/$bindir'
|
||
|
else
|
||
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
|
||
|
var_append makeinstopt ' ' "PREFIX=${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
|
||
|
else
|
||
|
var_append makeinstopt ' ' "PREFIX=$root"
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
# save .config file for the future
|
||
|
hook_add postinstall 9 'cp -v .config busybox.links $root/$docdir'
|
||
|
|