mirror of the now-defunct rocklinux.org
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.
 
 
 
 
 
 

64 lines
2.1 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/util-linux/util-linux.conf
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# 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; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
prepare_cross_build() {
for x in `grep -l 'LIBCURSES.' */Makefile`
do
echo -n "Patching $x ... "
sed -i 's/\$(LIBCURSES)//g' $x
echo "done"
done
for x in `egrep -l '#.*include.*[<"](n?curses|term).h[">]' */*.c`
do
echo -n "Killing $x ... "
echo "int main() { return 1; }" > $x
echo "done"
done
# disable cramfs tools
patch -p1 < $confdir/disable_cramfs_tools.diff
}
[ $stagelevel -le 1 ] && premake='prepare_cross_build'
tmp1=`echo "$arch_machine" | sed 's/i.86/intel/;s/arm.*/arm/'`
makeopt="CC='$CC' CPU='$arch_machine' ARCH='$tmp1'"
makeinstopt="CC='$CC' CPU='$arch_machine' ARCH='$tmp1' DESTDIR='$root' install"
util_linux_postmake() {
rm -f $root/sbin/sln # we are using sln from glibc
$CC $confdir/freeramdisk.c -o $root/sbin/freeramdisk
$MAKE -C partx
cp -v partx/{partx,delpart,addpart} $root/sbin
install -m 644 misc-utils/scriptreplay.1 $mandir/man1/scriptreplay.1
install -m 755 misc-utils/scriptreplay.pl $bindir/scriptreplay.pl
olddir=$PWD
cd $mandir/man1
ln -s -v -f scriptreplay.1 replay.1
cd $bindir/
ln -s -v -f scriptreplay.pl replay
cd $olddir
}
postmake="util_linux_postmake"
var_append patchfiles " " "${confdir}/cryptoloop-support.diff"