GLUED: renamed cfg_package_spec_dir to pkg_dir.

This commit is contained in:
Ricardo Martins 2014-02-04 07:44:17 +00:00
parent 6d110a03f9
commit 8fe415232d
44 changed files with 54 additions and 54 deletions

View File

@ -320,7 +320,7 @@ fi
mkdir -p "$cfg_dir_downloads" "$cfg_dir_rootfs" "$cfg_dir_toolchain" "$cfg_dir_builds/$pkg"
export cfg_package_spec_dir="$cfg_dir_rules/$pkg"
export pkg_dir="$cfg_dir_rules/$pkg"
. "$cfg_dir_rules/$pkg/$pkg_var.bash"

View File

@ -21,7 +21,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -27,7 +27,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch)
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
if [ -n "$patches" ]; then
cd "../boost_$vendor_version" && cat $patches | patch -p1
fi

View File

@ -20,7 +20,7 @@ maintainer=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch 2>/dev/null)
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi &&

View File

@ -15,7 +15,7 @@ md5=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
@ -24,7 +24,7 @@ post_unpack()
configure()
{
cp "$cfg_package_spec_dir"/config .config &&
cp "$pkg_dir"/config .config &&
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
}
@ -36,5 +36,5 @@ build()
target_install()
{
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -88,7 +88,7 @@ target_install()
# Collectd:
$cmd_mkdir "$cfg_dir_rootfs/usr/share/"
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/share/collectd/" "$cfg_dir_rootfs/usr/share/"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
$cmd_cp "${pkg_dir}/fs/etc/rc.d/collectd" "$cfg_dir_rootfs/etc/rc.d/"
# Configuration:
echo "# Client

View File

@ -25,7 +25,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi

View File

@ -25,7 +25,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
@ -62,5 +62,5 @@ target_install()
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -76,5 +76,5 @@ target_install()
$cmd_target_strip daemon/dtnd -o "$cfg_dir_rootfs/usr/bin/dtnd" &&
$cmd_mkdir "$cfg_dir_rootfs/etc/dtn" "$cfg_dir_rootfs/usr/share/dtn" &&
cp servlib/conv_layers/clevent.xsd "$cfg_dir_rootfs/usr/share/dtn" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -24,7 +24,7 @@ post_unpack()
{
ln -fs ../ports ../eglibc-$version/libc/ports
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
patches=$(ls "$pkg_dir"/patches/*.patch)
cd ../eglibc-$version
if [ -n "$patches" ]; then

View File

@ -13,7 +13,7 @@ build()
host_install()
{
$cmd_make install_root="$cfg_dir_toolchain_sysroot" -j1 install &&
cp "$cfg_package_spec_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
cp "$pkg_dir"/files/timepps.h "$cfg_dir_toolchain_sysroot/usr/include"
}
target_install()
@ -33,5 +33,5 @@ target_install()
$cmd_target_strip -v --strip-unneeded "elf/ldconfig" \
-o "$cfg_dir_rootfs/sbin/ldconfig" &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -44,5 +44,5 @@ target_install()
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
done &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -27,7 +27,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches-$version/*.patch)
patches=$(ls "$pkg_dir"/patches-$version/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
@ -37,7 +37,7 @@ post_unpack()
build()
{
OLD_PATH="$PATH"
export PATH="$cfg_package_spec_dir/compat:$PATH"
export PATH="$pkg_dir/compat:$PATH"
export PLASMA_HOME="$PWD/../europa-$version"
export EUROPA_HOME="$cfg_dir_toolchain_sysroot/usr"

View File

@ -21,7 +21,7 @@ requires=\
post_unpack()
{
cd ../expect${version}
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -15,7 +15,7 @@ md5=\
post_unpack()
{
patch -d ../fconfig -p1 < "$cfg_package_spec_dir"/patches/limits.patch
patch -d ../fconfig -p1 < "$pkg_dir"/patches/limits.patch
}
build()

View File

@ -34,7 +34,7 @@ target_install()
$cmd_mkdir "$cfg_dir_rootfs"/root/.ssh &&
chmod 0700 "$cfg_dir_rootfs"/root/.ssh &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
if [ -d "$cfg_dir_system/fs" ]; then
tar -C "$cfg_dir_system/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -

View File

@ -19,7 +19,7 @@ requires=(
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch)
patches=$(ls "$pkg_dir/patches-$version/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -17,7 +17,7 @@ build_dir=$pkg_var
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch)
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
if [ -n "$patches" ]; then
cd "../gcc-$version" && cat $patches | patch -p1
fi

View File

@ -41,5 +41,5 @@ target_install()
$cmd_target_strip "$l" -o $cfg_dir_rootfs/usr/lib/"$(basename $l)"
done
cp "$cfg_package_spec_dir"/services/gpsd "$cfg_dir_rootfs/etc/rc.d"
cp "$pkg_dir"/services/gpsd "$cfg_dir_rootfs/etc/rc.d"
}

View File

@ -10,5 +10,5 @@ maintainer=\
target_install()
{
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -26,7 +26,7 @@ requires=\
post_unpack()
{
for patch in "$cfg_package_spec_dir"/patches/*; do
for patch in "$pkg_dir"/patches/*; do
patch -p1 < "$patch" || return 1
done
}

View File

@ -25,7 +25,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -15,7 +15,7 @@ md5=\
post_unpack()
{
patch -p1 < "$cfg_package_spec_dir"/patches/libxslt-configure.patch
patch -p1 < "$pkg_dir"/patches/libxslt-configure.patch
}
requires=\

View File

@ -1,6 +1,6 @@
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch\
patches=$(ls "$pkg_dir/patches-$version/"*.patch\
"$cfg_dir_system/patches/linux/patches-${version}/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1

View File

@ -17,11 +17,11 @@ requires=\
download()
{
mkdir -p dnsmasq.d &&
python "$cfg_package_spec_dir/download-peers.py" dnsmasq.d
python "$pkg_dir/download-peers.py" dnsmasq.d
}
target_install()
{
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f - &&
tar -C dnsmasq.d --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs/etc" -x -v -f -
}

View File

@ -20,7 +20,7 @@ maintainer=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cd "../m4-$version" && cat $patches | patch -p1
fi

View File

@ -29,7 +29,7 @@ requires=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -37,5 +37,5 @@ target_install()
$cmd_target_strip ntpd/ntpd -o $cfg_dir_rootfs/usr/bin/ntpd &&
$cmd_target_strip ntpdate/ntpdate -o $cfg_dir_rootfs/usr/bin/ntpdate &&
$cmd_target_strip ntpq/ntpq -o $cfg_dir_rootfs/usr/bin/ntpq &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -25,7 +25,7 @@ md5=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches-${version}/*.patch)
patches=$(ls "$pkg_dir"/patches-${version}/*.patch)
if [ -n "$patches" ]; then
# echo " cat $patches | patch -p1 "
cat $patches | patch -p1
@ -58,8 +58,8 @@ target_install()
{
# Log:
$cmd_mkdir "${cfg_dir_rootfs}/var/lib/omniEvents/"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/omniEvents" "$cfg_dir_rootfs/etc/rc.d/omniEvents"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/omniorb-eventservice" "${cfg_dir_rootfs}/etc/"
$cmd_cp "${pkg_dir}/fs/etc/rc.d/omniEvents" "$cfg_dir_rootfs/etc/rc.d/omniEvents"
$cmd_cp "${pkg_dir}/fs/etc/omniorb-eventservice" "${cfg_dir_rootfs}/etc/"
# Binaries:
$cmd_cp "${cfg_dir_toolchain_sysroot}/usr/lib/lib"*"omniEvents"* "${cfg_dir_rootfs}/usr/lib"

View File

@ -89,8 +89,8 @@ target_install()
$cmd_cp "$cfg_dir_toolchain_sysroot/usr/bin/catior" "$cfg_dir_rootfs/usr/bin"
# Specific configuration:
$cmd_cp "${cfg_package_spec_dir}/fs/etc/rc.d/omninames" "$cfg_dir_rootfs/etc/rc.d/omninames"
$cmd_cp "${cfg_package_spec_dir}/fs/etc/omniORB.cfg" "$cfg_dir_rootfs/etc/omniORB.cfg"
$cmd_cp "${pkg_dir}/fs/etc/rc.d/omninames" "$cfg_dir_rootfs/etc/rc.d/omninames"
$cmd_cp "${pkg_dir}/fs/etc/omniORB.cfg" "$cfg_dir_rootfs/etc/omniORB.cfg"
# Log:
$cmd_mkdir "${cfg_dir_rootfs}/var/omninames/"

View File

@ -47,7 +47,7 @@ requires=\
post_unpack()
{
sed "s!%cfg_dir_rootfs%!$cfg_dir_rootfs!g" "$cfg_package_spec_dir"/perl.in > "$pkg_build_dir"/perl &&
sed "s!%cfg_dir_rootfs%!$cfg_dir_rootfs!g" "$pkg_dir"/perl.in > "$pkg_build_dir"/perl &&
chmod 0755 "$pkg_build_dir"/perl
}

View File

@ -23,7 +23,7 @@ post_unpack()
chmod -v 644 Makefile.SH &&
chmod -v 644 utils/Makefile.SH
patches=$(ls "$cfg_package_spec_dir"/patches-${version}/*.patch)
patches=$(ls "$pkg_dir"/patches-${version}/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -25,7 +25,7 @@ requires=\
post_unpack()
{
for patch in "$cfg_package_spec_dir"/patches/*; do
for patch in "$pkg_dir"/patches/*; do
patch -p1 < "$patch" || return 1
done
}

View File

@ -26,5 +26,5 @@ build()
target_install()
{
$cmd_target_strip src/ptpd2 -o $cfg_dir_rootfs/usr/bin/ptpd2 &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -14,8 +14,8 @@ configure()
echo "Configure is in $(pwd)"
# We are patching the source as python needs python to compile python for our target:
patch -p1 < "${cfg_package_spec_dir}/patches/Python-${version}-xcompile.patch"
patch -p1 < "${cfg_package_spec_dir}/patches/001-Enable-zlib-bz2.patch"
patch -p1 < "${pkg_dir}/patches/Python-${version}-xcompile.patch"
patch -p1 < "${pkg_dir}/patches/001-Enable-zlib-bz2.patch"
export CC="$cfg_target_canonical-gcc"
export CXX="$cfg_target_canonical-g++"

View File

@ -25,7 +25,7 @@ maintainer=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
patches=$(ls "$pkg_dir/patches/"*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p0
fi

View File

@ -36,5 +36,5 @@ build()
target_install()
{
$cmd_target_strip setserial -o $cfg_dir_rootfs/usr/bin/setserial
cp "$cfg_package_spec_dir"/services/setserial "$cfg_dir_rootfs/etc/rc.d"
cp "$pkg_dir"/services/setserial "$cfg_dir_rootfs/etc/rc.d"
}

View File

@ -24,7 +24,7 @@ target_install()
$cmd_target_strip extlinux/extlinux -o $cfg_dir_rootfs/usr/sbin/extlinux &&
$cmd_mkdir $cfg_dir_rootfs/boot/extlinux &&
cp -d mbr/mbr.bin $cfg_dir_rootfs/boot/extlinux &&
(echo $console ; cat "$cfg_package_spec_dir"/extlinux.conf) \
(echo $console ; cat "$pkg_dir"/extlinux.conf) \
| sed "s%\$cfg_kernel_extra_args%$cfg_kernel_extra_args%g" \
| sed "s%\$cfg_kernel_boot_dev%$cfg_kernel_boot_dev%g" \
> "$cfg_dir_rootfs/boot/extlinux/extlinux.conf"

View File

@ -20,7 +20,7 @@ maintainer=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi

View File

@ -42,5 +42,5 @@ target_install()
$cmd_target_strip "$dst"
done &&
tar -C "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -1,6 +1,6 @@
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch\
patches=$(ls "$pkg_dir/patches-$version/"*.patch\
"$cfg_dir_system/patches/u-boot/patches-${version}/"*.patch 2>/dev/null)
if [ -n "$patches" ]; then
cat $patches | patch -p1

View File

@ -1,4 +1,4 @@
source "$cfg_package_spec_dir/default.bash"
source "$pkg_dir/default.bash"
host_install()
{

View File

@ -20,7 +20,7 @@ maintainer=\
# post_unpack()
# {
# patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
# patches=$(ls "$pkg_dir"/patches/*.patch)
# if [ -n "$patches" ]; then
# cat $patches | patch -p1
# fi

View File

@ -22,7 +22,7 @@ maintainer=\
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir"/patches/*.patch)
patches=$(ls "$pkg_dir"/patches/*.patch)
if [ -n "$patches" ]; then
cd ../xerces-c-src_$vendor_version &&