Compare commits
No commits in common. "v962" and "v963" have entirely different histories.
@ -40,24 +40,27 @@
|
|||||||
16 Basesys/linux-headers
|
16 Basesys/linux-headers
|
||||||
16 Basesys/man-pages
|
16 Basesys/man-pages
|
||||||
16 Basesys/man-pages-de
|
16 Basesys/man-pages-de
|
||||||
16 Basesys/glibc
|
16 Basesys/eglibc
|
||||||
16 Basesys/adjust
|
16 Basesys/adjust
|
||||||
16 Basesys/gmp
|
16 Basesys/gmp
|
||||||
16 Basesys/mpfr
|
16 Basesys/mpfr
|
||||||
|
16 Basesys/mpc
|
||||||
|
16 Basesys/ppl
|
||||||
|
16 Basesys/cloog-ppl
|
||||||
16 Basesys/zlib
|
16 Basesys/zlib
|
||||||
16 Basesys/binutils
|
16 Basesys/binutils
|
||||||
16 Basesys/zip
|
16 Basesys/zip
|
||||||
16 Basesys/gcc
|
16 Basesys/gcc
|
||||||
16 Basesys/multiarch_wrapper
|
16 Basesys/multiarch_wrapper
|
||||||
16 Basesys/pkgconfig
|
|
||||||
16 Basesys/sed
|
16 Basesys/sed
|
||||||
16 Basesys/binutils
|
16 Basesys/ncurses
|
||||||
|
16 Basesys/pkgconfig
|
||||||
|
16 Basesys/util-linux
|
||||||
|
16 Basesys/e2fsprogs
|
||||||
16 Basesys/coreutils
|
16 Basesys/coreutils
|
||||||
16 Basesys/m4
|
16 Basesys/m4
|
||||||
16 Basesys/bison
|
16 Basesys/bison
|
||||||
16 Basesys/ncurses
|
16 Basesys/procps
|
||||||
16 Basesys/util-linux-ng
|
|
||||||
16 Basesys/e2fsprogs
|
|
||||||
16 Basesys/libtool
|
16 Basesys/libtool
|
||||||
16 Basesys/flex
|
16 Basesys/flex
|
||||||
16 Basesys/iproute2
|
16 Basesys/iproute2
|
||||||
@ -75,25 +78,26 @@
|
|||||||
16 Basesys/grep
|
16 Basesys/grep
|
||||||
16 Basesys/groff
|
16 Basesys/groff
|
||||||
16 Basesys/gzip
|
16 Basesys/gzip
|
||||||
16 Basesys/vim
|
|
||||||
16 Basesys/subversion
|
|
||||||
22 Basesys/pkgconfig
|
|
||||||
22 Basesys/iproute2
|
|
||||||
16 Basesys/vim
|
|
||||||
16 Basesys/procps
|
|
||||||
16 Basesys/Linux-PAM
|
|
||||||
16 Basesys/cracklib
|
|
||||||
16 Basesys/iputils
|
16 Basesys/iputils
|
||||||
16 Basesys/net-tools
|
|
||||||
16 Basesys/kbd
|
16 Basesys/kbd
|
||||||
16 Basesys/less
|
16 Basesys/less
|
||||||
16 Basesys/make
|
16 Basesys/make
|
||||||
|
16 Basesys/xz
|
||||||
16 Basesys/man
|
16 Basesys/man
|
||||||
16 Basesys/module-init-tools
|
16 Basesys/module-init-tools
|
||||||
16 Basesys/patch
|
16 Basesys/patch
|
||||||
16 Basesys/psmisc
|
16 Basesys/psmisc
|
||||||
|
16 Basesys/vim
|
||||||
|
16 Basesys/subversion
|
||||||
|
22 Basesys/pkgconfig
|
||||||
|
22 Basesys/procps
|
||||||
|
22 Basesys/iproute2
|
||||||
|
22 Basesys/vim
|
||||||
|
16 Basesys/Linux-PAM
|
||||||
|
16 Basesys/cracklib
|
||||||
|
16 Basesys/net-tools
|
||||||
16 Basesys/shadow
|
16 Basesys/shadow
|
||||||
16 Basesys/sysklogd
|
16 Basesys/rsyslog
|
||||||
16 Basesys/expat
|
16 Basesys/expat
|
||||||
16 Basesys/libxml2
|
16 Basesys/libxml2
|
||||||
16 Basesys/dbus
|
16 Basesys/dbus
|
||||||
@ -104,26 +108,27 @@
|
|||||||
16 Basesys/texinfo
|
16 Basesys/texinfo
|
||||||
16 Basesys/udev
|
16 Basesys/udev
|
||||||
16 Basesys/ViitorMan
|
16 Basesys/ViitorMan
|
||||||
16 Basesys/xz
|
|
||||||
16 Basesys/yasm
|
16 Basesys/yasm
|
||||||
16 Basesys/bin86
|
16 Basesys/bin86
|
||||||
16 Basesys/lilo
|
|
||||||
16 Basesys/unzip
|
16 Basesys/unzip
|
||||||
16 Basesys/procinfo
|
16 Basesys/procinfo-ng
|
||||||
16 Basesys/ed
|
16 Basesys/ed
|
||||||
16 Basesys/reiserfsprogs
|
16 Basesys/reiserfsprogs
|
||||||
|
16 Basesys/libaal
|
||||||
|
16 Basesys/reiser4progs
|
||||||
16 Basesys/jfsutils
|
16 Basesys/jfsutils
|
||||||
16 Basesys/inetutils
|
16 Basesys/inetutils
|
||||||
16 Basesys/portmap
|
16 Basesys/portmap
|
||||||
16 Basesys/xinetd
|
16 Basesys/xinetd
|
||||||
16 Basesys/device-mapper
|
|
||||||
16 Basesys/LVM
|
16 Basesys/LVM
|
||||||
16 Basesys/mktemp
|
|
||||||
16 Basesys/xfsprogs
|
16 Basesys/xfsprogs
|
||||||
16 Basesys/attr
|
16 Basesys/attr
|
||||||
16 Basesys/acl
|
16 Basesys/acl
|
||||||
|
16 Basesys/dmapi
|
||||||
|
16 Basesys/lilo
|
||||||
16 Basesys/fcron
|
16 Basesys/fcron
|
||||||
16 Basesys/hotplug
|
16 Basesys/hotplug
|
||||||
|
16 Basesys/sdcc
|
||||||
16 Basesys/firmwarehotplug
|
16 Basesys/firmwarehotplug
|
||||||
16 Basesys/fbset
|
16 Basesys/fbset
|
||||||
16 Basesys/which
|
16 Basesys/which
|
||||||
@ -131,7 +136,7 @@
|
|||||||
16 Basesys/linux
|
16 Basesys/linux
|
||||||
16 Basesys/cpio
|
16 Basesys/cpio
|
||||||
16 Basesys/dialog
|
16 Basesys/dialog
|
||||||
16 Basesys/dhcp
|
16 Basesys/dhcpcd
|
||||||
16 Basesys/gpplib
|
16 Basesys/gpplib
|
||||||
22 Basesys/xfsprogs
|
22 Basesys/xfsprogs
|
||||||
16 Basesys/config
|
16 Basesys/config
|
||||||
|
@ -78,8 +78,42 @@ SRCPATH=Base/System
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/sbin
|
mkdir -p $TMPROOT/sbin
|
||||||
mkdir -p $TMPROOT/usr/share/man/man8
|
mkdir -p $TMPROOT/usr/share/man/man8
|
||||||
bunzip2 -c $LFSSOURCE/$SRCPATH/MAKEDEV*.bz >$TMPROOT/sbin/MAKEDEV
|
#bunzip2 -c $LFSSOURCE/$SRCPATH/MAKEDEV*.bz >$TMPROOT/sbin/MAKEDEV
|
||||||
chmod 755 $TMPROOT/sbin/MAKEDEV
|
#chmod 755 $TMPROOT/sbin/MAKEDEV
|
||||||
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
|
CXX="g++ ${BUILDOPTIONS32}" \
|
||||||
|
USE_ARCH=$UARCH \
|
||||||
|
CFLAGS="-m32" \
|
||||||
|
./configure --target=$TARGET32 \
|
||||||
|
--prefix=/ \
|
||||||
|
--libdir=/lib \
|
||||||
|
--enable-lvm1_fallback \
|
||||||
|
--enable-ocf \
|
||||||
|
--enable-udev_sync \
|
||||||
|
--enable-udev_rules \
|
||||||
|
--disable-selinux
|
||||||
|
make -j $NUMCPU
|
||||||
|
make DESTDIR=$TMPROOT install
|
||||||
|
mv $TMPROOT/include $TMPROOT/usr
|
||||||
|
if [ ! -d $TMPROOT/usr/lib/pkgconfig ]; then
|
||||||
|
mkdir -p $TMPROOT/usr/lib/pkgconfig
|
||||||
|
fi
|
||||||
|
cat >$TMPROOT/usr/lib/pkgconfig/devmapper.pc <<EOF
|
||||||
|
prefix=/
|
||||||
|
exec_prefix=\${prefix}
|
||||||
|
libdir=\${exec_prefix}/lib
|
||||||
|
includedir=\${prefix}/include
|
||||||
|
|
||||||
|
Name: uuid
|
||||||
|
Description: Universally unique id library
|
||||||
|
Version: 1.02
|
||||||
|
Requires:
|
||||||
|
Cflags: -I\${includedir}
|
||||||
|
Libs: -L\${libdir} -ldevmapper
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -87,25 +121,52 @@ mk() {
|
|||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/ \
|
./configure --prefix=/ \
|
||||||
--libdir=/$LIBDIR \
|
--libdir=/$LIBDIR \
|
||||||
|
--enable-lvm1_fallback \
|
||||||
|
--enable-ocf \
|
||||||
|
--enable-udev_sync \
|
||||||
|
--enable-udev_rules \
|
||||||
--disable-selinux
|
--disable-selinux
|
||||||
make
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
|
|
||||||
cd scripts/lvm2create_initrd
|
cd scripts/lvm2create_initrd
|
||||||
make manpage
|
make manpage
|
||||||
sed -e "s/\/lib\/lvm-200\/lvm/\/sbin\/lvm/g;s/\/bin\/busybox/\/opt\/initrd\/bin\/busybox/g;s/tail -1/tail -n -1/g;s/\/dev\/MAKEDEV/\/sbin\/MAKEDEV/g;s/consoleonly//g" lvm2create_initrd > $TMPROOT/sbin/lvm2create_initrd
|
sed -e "s@/lib/lvm-200/lvm@/sbin/lvm@g;s@/bin/busybox@/opt/initrd/bin/busybox@g;s@tail -1@tail -n -1@g;s@/dev/MAKEDEV@/sbin/MAKEDEV@g;s@consoleonly@@g" lvm2create_initrd > $TMPROOT/sbin/lvm2create_initrd
|
||||||
chmod 0755 $TMPROOT/sbin/lvm2create_initrd
|
chmod 0755 $TMPROOT/sbin/lvm2create_initrd
|
||||||
cp lvm2create_initrd.8 $TMPROOT/usr/share/man/man8/
|
cp lvm2create_initrd.8 $TMPROOT/usr/share/man/man8/
|
||||||
chmod 0444 $TMPROOT/usr/share/man/man8/lvm2create_initrd.8
|
chmod 0444 $TMPROOT/usr/share/man/man8/lvm2create_initrd.8
|
||||||
|
mv $TMPROOT/include $TMPROOT/usr
|
||||||
|
rm $TMPROOT/lib/libdevmapper.so
|
||||||
|
if [ ! -d $TMPROOT/usr/${LIBDIR}/pkgconfig ]; then
|
||||||
|
mkdir -p $TMPROOT/usr/${LIBDIR}/pkgconfig
|
||||||
|
fi
|
||||||
|
cat > $TMPROOT/usr/${LIBDIR}/pkgconfig/devmapper.pc <<EOF
|
||||||
|
prefix=/
|
||||||
|
exec_prefix=\${prefix}
|
||||||
|
libdir=\${exec_prefix}/${LIBDIR}
|
||||||
|
includedir=\${prefix}/include
|
||||||
|
|
||||||
|
Name: uuid
|
||||||
|
Description: Universally unique id library
|
||||||
|
Version: 1.02
|
||||||
|
Requires:
|
||||||
|
Cflags: -I\${includedir}
|
||||||
|
Libs: -L\${libdir} -ldevmapper
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
cd $TMPROOT
|
|
||||||
CheckError "change to $TMPROOT failed"
|
CheckError "change to $TMPROOT failed"
|
||||||
mkdir -p usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mv usr/man usr/share
|
if [ -d $TMPROOT/share ]; then
|
||||||
tar -cf - share/man|tar -C usr -xf -
|
tar -C $TMPROOT -cf - share/man|tar -C $TMPROOT/usr -xf -
|
||||||
rm -r share
|
rm -r $TMPROOT/share
|
||||||
mkdir -p etc/sysconfig/LVM/lvmtab.d etc/sysconfig/LVM/lvmconf
|
fi
|
||||||
touch etc/sysconfig/LVM/lvmtab
|
mkdir -p $TMPROOT/etc/lvm/archive \
|
||||||
|
$TMPROOT/etc/lvm/backup \
|
||||||
|
$TMPROOT/etc/lvm/cache
|
||||||
|
touch $TMPROOT/etc/lvm/lvm.conf
|
||||||
|
cd $TMPROOT/${LIBDIR}
|
||||||
|
ln -s libdevmapper.so.* libdevmapper.so
|
||||||
|
cd -
|
||||||
}
|
}
|
||||||
|
@ -71,9 +71,6 @@ SRCPATH=Base/Lib
|
|||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
if [ ! -f /bin/pwd ]; then
|
|
||||||
ln -s /tools/bin/pwd /bin/pwd
|
|
||||||
fi
|
|
||||||
mkdir ../build-pam
|
mkdir ../build-pam
|
||||||
cd ../build-pam
|
cd ../build-pam
|
||||||
}
|
}
|
||||||
@ -84,7 +81,7 @@ mk32() {
|
|||||||
--includedir=/usr/include/security \
|
--includedir=/usr/include/security \
|
||||||
--datadir=/usr/share \
|
--datadir=/usr/share \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
make
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
cd ../Linux-PAM*
|
cd ../Linux-PAM*
|
||||||
rm -r ../build-pam
|
rm -r ../build-pam
|
||||||
@ -93,26 +90,20 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
../Linux-PAM*/configure --prefix=/ \
|
||||||
ADDOPTIONS="--libdir=/lib64"
|
--libdir=/${LIBDIR} \
|
||||||
fi
|
|
||||||
../Linux-PAM*/configure --host=$TARGET \
|
|
||||||
--prefix=/ \
|
|
||||||
$ADDOPTIONS \
|
|
||||||
--includedir=/usr/include/security \
|
--includedir=/usr/include/security \
|
||||||
--datadir=/usr/share \
|
--datadir=/usr/share \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
make
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
if [ -f /bin/pwd ]; then
|
|
||||||
rm /bin/pwd
|
|
||||||
fi
|
|
||||||
if [ -d $TMPROOT/share ]; then
|
if [ -d $TMPROOT/share ]; then
|
||||||
mkdir -p $TMPROOT/usr
|
mkdir -p $TMPROOT/usr
|
||||||
mv $TMPROOT/share/* $TMPROOT/usr/share
|
mv $TMPROOT/share/* $TMPROOT/usr/share
|
||||||
|
rm -r $TMPROOT/share
|
||||||
fi
|
fi
|
||||||
for i in acct auth passwd session; do
|
for i in acct auth passwd session; do
|
||||||
ln -s pam_unix.so $TMPROOT/lib/security/pam_unix_$i.so
|
ln -s pam_unix.so $TMPROOT/lib/security/pam_unix_$i.so
|
||||||
@ -120,7 +111,7 @@ postmk() {
|
|||||||
ln -s pam_unix.so $TMPROOT/lib64/security/pam_unix_$i.so
|
ln -s pam_unix.so $TMPROOT/lib64/security/pam_unix_$i.so
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
GetSVN Viitor_pam $TMPROOT
|
GetGit Viitor_pam $TMPROOT
|
||||||
cd ../Linux-PAM
|
cd ../Linux-PAM
|
||||||
rm -r ../build-pam
|
rm -r ../build-pam
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
GetSVN Viitor_man $TMPROOT
|
GetGit Viitor_man $TMPROOT
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -71,11 +71,6 @@ premk() {
|
|||||||
if [ ! -d $TMPROOT/lib ]; then
|
if [ ! -d $TMPROOT/lib ]; then
|
||||||
mkdir -p $TMPROOT/lib $TMPROOT/usr/lib
|
mkdir -p $TMPROOT/lib $TMPROOT/usr/lib
|
||||||
fi
|
fi
|
||||||
if [ ! -f /usr/sbin/libattr.so ]; then
|
|
||||||
cd /usr/sbin
|
|
||||||
ln -s ../lib/libattr.so.1 libattr.so
|
|
||||||
cd -
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
@ -91,7 +86,7 @@ mk32() {
|
|||||||
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
PKG_SLIB_DIR=$TMPROOT/lib \
|
PKG_SLIB_DIR=$TMPROOT/lib \
|
||||||
PKG_INC_DIR=$TMPROOT/usr/include/xfs \
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
||||||
USE_ARCH=$UARCH install
|
USE_ARCH=$UARCH install
|
||||||
@ -99,68 +94,71 @@ mk32() {
|
|||||||
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
PKG_SLIB_DIR=$TMPROOT/lib \
|
PKG_SLIB_DIR=$TMPROOT/lib \
|
||||||
PKG_INC_DIR=$TMPROOT/usr/include/xfs \
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
||||||
USE_ARCH=$UARCH install-dev
|
USE_ARCH=$UARCH install-dev
|
||||||
rm $TMPROOT/usr/lib/libacl.a
|
rm $TMPROOT/usr/lib/libacl.a
|
||||||
cp libacl/.libs/libacl.{so,a} $TMPROOT/usr/lib
|
cp libacl/.libs/libacl.a $TMPROOT/usr/lib
|
||||||
ln -sf ../usr/lib/libacl.a $TMPROOT/lib/libacl.a
|
ln -sf ../usr/lib/libacl.a $TMPROOT/lib/libacl.a
|
||||||
ln -sf ../usr/lib/libacl.la $TMPROOT/lib/libacl.la
|
ln -sf ../usr/lib/libacl.la $TMPROOT/lib/libacl.la
|
||||||
sed -i -e "s%libdir=.*$%libdir=\'/usr/lib\'%" \
|
sed -i -e "s%libdir=.*$%libdir=\'/usr/lib\'%" \
|
||||||
-e "s%/usr/sbin/libattr.la%/lib/libattr.la%" $TMPROOT/usr/lib/libacl.la
|
-e "s%/usr/sbin/libattr.la%/lib/libattr.la%" $TMPROOT/usr/lib/libacl.la
|
||||||
GenDynLib32 $TMPROOT/usr/lib/libacl.a 1.1.0
|
cp libacl/.libs/libacl.so.1.* $TMPROOT/usr/lib
|
||||||
cd ..
|
LIBNAME=`ls libacl/.libs/libacl.so.1.*`
|
||||||
rm -r acl*
|
LIBNAME=`basename $LIBNAME`
|
||||||
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/acl_*.tar.*
|
ln -s $LIBNAME $TMPROOT/usr/lib/libacl.so
|
||||||
cd acl*
|
ln -s $LIBNAME $TMPROOT/usr/lib/libacl.so.1
|
||||||
|
#cd ..
|
||||||
|
#rm -r acl*
|
||||||
|
#UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/acl_*.tar.*
|
||||||
|
#cd acl*
|
||||||
|
make distclean
|
||||||
|
autoconf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
mkdir -p $TMPROOT/lib64 $TMPROOT/usr/lib64
|
mkdir -p $TMPROOT/lib64 $TMPROOT/usr/lib64
|
||||||
else
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib"
|
|
||||||
fi
|
fi
|
||||||
CC="gcc ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
CC="gcc ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
||||||
CXX="g++ ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
CXX="g++ ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
$ADDOPTIONS \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
make -j $NUMCPU USE_ARCH=$UARCH
|
make -j $NUMCPU USE_ARCH=$UARCH
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
||||||
PKG_INC_DIR=$TMPROOT/usr/include/xfs \
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/acl \
|
||||||
USE_ARCH=$UARCH install
|
USE_ARCH=$UARCH install
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
||||||
PKG_INC_DIR=$TMPROOT/usr/include/xfs \
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/share/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/acl \
|
||||||
USE_ARCH=$UARCH install-dev
|
USE_ARCH=$UARCH install-dev
|
||||||
rm $TMPROOT/usr/$LIBDIR/libacl.a
|
rm $TMPROOT/usr/${LIBDIR}/libacl.a
|
||||||
cp libacl/.libs/libacl.{so,a} $TMPROOT/usr/$LIBDIR
|
cp libacl/.libs/libacl.a $TMPROOT/usr/${LIBDIR}
|
||||||
ln -sf ../usr/$LIBDIR/libacl.a $TMPROOT/$LIBDIR/libacl.a
|
ln -sf ../usr/${LIBDIR}/libacl.a $TMPROOT/${LIBDIR}/libacl.a
|
||||||
ln -sf ../usr/$LIBDIR/libacl.la $TMPROOT/$LIBDIR/libacl.la
|
ln -sf ../usr/${LIBDIR}/libacl.la $TMPROOT/${LIBDIR}/libacl.la
|
||||||
sed -i -e "s%libdir=.*$%libdir=\'/usr/$LIBDIR\'%" \
|
sed -i -e "s%libdir=.*$%libdir=\'/usr/${LIBDIR}\'%" \
|
||||||
-e "s%/usr/sbin/libattr.la%/$LIBDIR/libattr.la%" $TMPROOT/usr/$LIBDIR/libacl.la
|
-e "s%/usr/sbin/libattr.la%/${LIBDIR}/libattr.la%" $TMPROOT/usr/${LIBDIR}/libacl.la
|
||||||
GenDynLib $TMPROOT/usr/$LIBDIR/libacl.a 1.1.0
|
cp libacl/.libs/libacl.so.1.* $TMPROOT/usr/${LIBDIR}
|
||||||
|
LIBNAME=`ls libacl/.libs/libacl.so.1.*`
|
||||||
|
LIBNAME=`basename $LIBNAME`
|
||||||
|
ln -s $LIBNAME $TMPROOT/usr/${LIBDIR}/libacl.so
|
||||||
|
ln -s $LIBNAME $TMPROOT/usr/${LIBDIR}/libacl.so.1
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
cd $TMPROOT/usr/include
|
echo "Nothing to do for postmk()"
|
||||||
ln -s xfs/acl .
|
|
||||||
mkdir sys
|
|
||||||
cd sys
|
|
||||||
ln -s ../xfs/sys/acl.h acl.h
|
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,6 @@ mk32() {
|
|||||||
--target=$TARGET \
|
--target=$TARGET \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
#sed -i -e "s%LIBTOOL.*$%LIBTOOL = /usr/bin/libtool --tag help%" include/builddefs
|
|
||||||
make -j $NUMCPU USE_ARCH=$UARCH
|
make -j $NUMCPU USE_ARCH=$UARCH
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
@ -139,7 +138,6 @@ mk() {
|
|||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
--libdir=/usr/$LIBDIR \
|
--libdir=/usr/$LIBDIR \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
#sed -i -e "s%LIBTOOL.*$%LIBTOOL = /usr/bin/libtool --tag help%" include/builddefs
|
|
||||||
make -j $NUMCPU USE_ARCH=$UARCH
|
make -j $NUMCPU USE_ARCH=$UARCH
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
|
@ -77,6 +77,7 @@ mk() {
|
|||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck VERBOSE=yes
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,4 +88,5 @@ postmk() {
|
|||||||
export NAME
|
export NAME
|
||||||
mv $NAME aclocal
|
mv $NAME aclocal
|
||||||
ln -s aclocal $NAME
|
ln -s aclocal $NAME
|
||||||
|
ln -s aclocal $TMPROOT/usr/bin/aclocal-1.9
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,7 @@ mk() {
|
|||||||
--with-installed-readline
|
--with-installed-readline
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make htmldir=$TMPROOT/usr/share/doc/bash-4.0 \
|
make htmldir=$TMPROOT/usr/share/doc/bash-4.0 \
|
||||||
prefix=$TMPROOT/usr \
|
DESTDIR=$TMPROOT install
|
||||||
bindir=$TMPROOT/bin install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,30 +70,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/Utilities
|
SRCPATH=Base/Utilities
|
||||||
(( MKPKG = $MKPKG | 1 ))
|
|
||||||
(( MKPKG = $MKPKG | 2 ))
|
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-branch_update-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-genscripts_multilib-*.patch*
|
|
||||||
mkdir ../build-binutils
|
mkdir ../build-binutils
|
||||||
cd ../build-binutils
|
cd ../build-binutils
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDCONFIGURE="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
LDFLAGS="-Wl,-rpath-link,/lib64:/lib ${BUILDOPTIONS}" \
|
LDFLAGS="-Wl,-rpath-link,/lib64:/lib ${BUILDOPTIONS}" \
|
||||||
../binutils*/configure --prefix=/usr \
|
../binutils*/configure --prefix=/usr \
|
||||||
$ADDCONFIGURE \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-64-bit-bfd
|
--enable-64-bit-bfd
|
||||||
make -j $NUMCPU configure-host
|
make -j $NUMCPU configure-host
|
||||||
make -j $NUMCPU tooldir=/usr
|
make -j $NUMCPU tooldir=/usr
|
||||||
MakeCheck check
|
MakeCheck -j $NUMCPU check
|
||||||
make -j $NUMCPU tooldir=/usr DESTDIR=$TMPROOT install
|
make -j $NUMCPU tooldir=/usr DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,14 +82,10 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}"
|
CC="gcc ${BUILDOPTIONS}"
|
||||||
./configure $ADDOPTIONS \
|
./configure --libdir=\${prefix}/${LIBDIR} \
|
||||||
--prefix=/usr &&
|
--prefix=/usr &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
MakeCheck -j $NUMCPU check &&
|
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,25 +108,17 @@ mk() {
|
|||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/bin $TMPROOT/usr/share/man/man1 $TMPROOT/lib
|
mkdir -p $TMPROOT/bin $TMPROOT/usr/share/man/man1 $TMPROOT/lib
|
||||||
WDIR=`pwd`
|
|
||||||
cp bzip2-shared $TMPROOT/bin/bzip2
|
cp bzip2-shared $TMPROOT/bin/bzip2
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
mkdir $TMPROOT/lib64
|
mkdir $TMPROOT/lib64
|
||||||
cp -a libbz2.so* libbz2.a $TMPROOT/lib64
|
|
||||||
ln -sf ../../lib64/libbz2.so.1.0 $TMPROOT/usr/lib64/libbz2.so
|
|
||||||
else
|
|
||||||
cp -a libbz2.so* libbz2.a $TMPROOT/lib
|
|
||||||
ln -sf ../../lib/libbz2.so.1.0 $TMPROOT/usr/lib/libbz2.so
|
|
||||||
fi
|
fi
|
||||||
cd $TMPROOT/usr/bin
|
cp -a libbz2.so* libbz2.a $TMPROOT/${LIBDIR}
|
||||||
rm bunzip2 bzcat bzip2
|
ln -sf ../../${LIBDIR}/libbz2.so.1.0 $TMPROOT/usr/${LIBDIR}/libbz2.so
|
||||||
mv bzip2recover bzless bzmore $TMPROOT/bin
|
rm $TMPROOT/usr/bin/{bunzip2,bzcat,bzip2}
|
||||||
cd $TMPROOT/bin
|
mv $TMPROOT/usr/bin/{bzip2recover,bzless,bzmore} $TMPROOT/bin
|
||||||
ln -sf bzip2 bunzip2
|
ln -sf bzip2 $TMPROOT/bin/bunzip2
|
||||||
ln -sf bzip2 bzcat
|
ln -sf bzip2 $TMPROOT/bin/bzcat
|
||||||
cd $TMPROOT/usr/share/man/man1
|
ln -s bzip2.1 $TMPROOT/usr/share/man/man1/bunzip2.1
|
||||||
ln -s bzip2.1 bunzip2.1
|
ln -s bzip2.1 $TMPROOT/usr/share/man/man1/bzcat.1
|
||||||
ln -s bzip2.1 bzcat.1
|
ln -s bzip2.1 $TMPROOT/usr/share/man/man1/bzip2recover.1
|
||||||
ln -s bzip2.1 bzip2recover.1
|
|
||||||
cd $WDIR
|
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ premk() {
|
|||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
GetSVN Viitor_cdboot $TMPROOT
|
GetGit Viitor_cdboot $TMPROOT
|
||||||
}
|
}
|
||||||
|
|
||||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
|
125
BaseBuild/Basesys/cloog-ppl
Normal file
125
BaseBuild/Basesys/cloog-ppl
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/BaseBuild/toolchain/cloog-ppl $
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: cloog-ppl
|
||||||
|
#Quelle der Source Archive: http://cloog.org
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Polyhedra support Funktionen.
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author: kueller $
|
||||||
|
#Datum der letzten Änderung: $Date: 2011-02-25 12:22:50 +0100 (Fr, 25. Feb 2011) $
|
||||||
|
#Version der Datei: $Rev: 5996 $
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
echo "Nothing to do for premk()"
|
||||||
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--host=${TARGET32} \
|
||||||
|
--enable-shared \
|
||||||
|
--with-gmp \
|
||||||
|
--with-ppl
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
make distclean
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/${LIBDIR} ${BUILDOPTIONS}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/${LIBDIR} \
|
||||||
|
--enable-shared \
|
||||||
|
--with-gmp \
|
||||||
|
--with-ppl
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
echo "Nothing to do for postmk()"
|
||||||
|
}
|
@ -89,7 +89,7 @@ premk() {
|
|||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
GetSVN Viitor_config $TMPROOT
|
GetGit Viitor_config $TMPROOT
|
||||||
}
|
}
|
||||||
|
|
||||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
|
@ -82,6 +82,15 @@ mk() {
|
|||||||
--enable-no-install-program=kill,uptime \
|
--enable-no-install-program=kill,uptime \
|
||||||
--enable-install-program=hostname
|
--enable-install-program=hostname
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
if [ "$CHECK" == "true" ]; then
|
||||||
|
echo "dummy1:x:1000:" >> /etc/group
|
||||||
|
echo "dummy2:x:1001:dummy" >> /etc/group
|
||||||
|
echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd
|
||||||
|
MakeCheck NON_ROOT_USERNAME=dummy check-root
|
||||||
|
chown -Rv dummy config.log {gnulib-tests,lib,src}/.deps
|
||||||
|
src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"
|
||||||
|
sed -i '/dummy/d' /etc/passwd /etc/group
|
||||||
|
fi
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,11 +71,7 @@
|
|||||||
SRCPATH=Base/Utilities
|
SRCPATH=Base/Utilities
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
sed -e "s/char \*strdup ();/\/\/char *strdup();/" userspec.c \
|
echo "Nothing to do for premk()"
|
||||||
>/tmp/userspec.c
|
|
||||||
mv /tmp/userspec.c userspec.c
|
|
||||||
sed -e "78 d" rmt.c >/tmp/rmt.c
|
|
||||||
mv /tmp/rmt.c rmt.c
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -88,12 +84,7 @@ mk() {
|
|||||||
--sbindir=/sbin \
|
--sbindir=/sbin \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU refix=$TMPROOT/usr bindir=$TMPROOT/usr/bin \
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
sbindir=$TMPROOT/sbin mandir=$TMPROOT/usr/share/man install
|
|
||||||
if [ ! -d $TMPROOT/usr/share/man/man1 ]; then
|
|
||||||
mkdir $TMPROOT/usr/share/man/man1
|
|
||||||
fi
|
|
||||||
cp *.1 $TMPROOT/usr/share/man/man1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -77,17 +77,17 @@ SRCPATH=Base/System
|
|||||||
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
sed -i "1i\#include <syslog.h>" dbus/dbus-sysdeps-util-unix.c &&
|
# sed -i "1i\#include <syslog.h>" dbus/dbus-sysdeps-util-unix.c &&
|
||||||
mkdir ../Build-dbus
|
mkdir ../Build-dbus
|
||||||
cd ../Build-dbus
|
cd ../Build-dbus
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc ${BUILDOPTIONS32}" USE_ARCH=$UARCH \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
LDFLAGS="-L/usr/X11R7/lib" \
|
USE_ARCH=32 \
|
||||||
../dbus*/configure --prefix=/usr \
|
../dbus*/configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
--libdir=/lib \
|
--libdir=/lib \
|
||||||
--sysconfdir=/etc/sysconfig \
|
|
||||||
--libexecdir=/usr/lib/dbus-1.0 \
|
--libexecdir=/usr/lib/dbus-1.0 \
|
||||||
--localstatedir=/var &&
|
--localstatedir=/var &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
@ -100,25 +100,26 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
CC="gcc $BUILDOPTIONS" \
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
USE_ARCH=$UARCH \
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" USE_ARCH=$UARCH \
|
|
||||||
../dbus*/configure --prefix=/usr \
|
../dbus*/configure --prefix=/usr \
|
||||||
--libdir=/$LIBDIR \
|
--libdir=/$LIBDIR \
|
||||||
--sysconfdir=/etc/sysconfig \
|
--sysconfdir=/etc \
|
||||||
--libexecdir=/usr/$LIBDIR/dbus-1.0 \
|
--libexecdir=/usr/$LIBDIR/dbus-1.0 \
|
||||||
--localstatedir=/var &&
|
--localstatedir=/var &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU install &&
|
make -j $NUMCPU install &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
install -v -m755 -d $TMPROOT/usr/share/doc/dbus-1.4.6
|
||||||
|
install -v -m644 doc/{TODO,*,{dtd,xml,xsl,txt,c}} \
|
||||||
|
/usr/share/doc/dbus-1.4.6
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
cd ../dbus*
|
cd ../dbus*
|
||||||
rm -r ../Build-dbus
|
rm -r ../Build-dbus
|
||||||
ClearHostSysNameing $TMPROOT
|
ClearHostSysNameing $TMPROOT
|
||||||
GetSVN Viitor_dbus $TMPROOT
|
GetGit Viitor_dbus $TMPROOT
|
||||||
cd $TMPROOT/etc/sysconfig/dbus-1
|
cd $TMPROOT/etc/sysconfig/dbus-1
|
||||||
sed -i "/<standard_session_servicedirs \/>/a\ <servicedir>/usr/share/dbus-1/services</servicedir>" session.conf
|
sed -i "/<standard_session_servicedirs \/>/a\ <servicedir>/usr/share/dbus-1/services</servicedir>" session.conf
|
||||||
sed -i "/<standard_system_servicedirs\/>/a\ <servicedir>/usr/share/dbus-1/services</servicedir>" system.conf
|
sed -i "/<standard_system_servicedirs\/>/a\ <servicedir>/usr/share/dbus-1/services</servicedir>" system.conf
|
||||||
@ -126,16 +127,16 @@ postmk() {
|
|||||||
mkdir -p $TMPROOT/usr/lib
|
mkdir -p $TMPROOT/usr/lib
|
||||||
fi
|
fi
|
||||||
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib
|
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib
|
||||||
ln -s /lib/libdbus-1.so.3.5.0 $TMPROOT/usr/lib/libdbus-1.so
|
ln -s /lib/libdbus-1.so.3.5.4 $TMPROOT/usr/lib/libdbus-1.so
|
||||||
ln -s /lib/libdbus-1.so.3.5.0 $TMPROOT/usr/lib/libdbus-1.so.3
|
ln -s /lib/libdbus-1.so.3.5.4 $TMPROOT/usr/lib/libdbus-1.so.3
|
||||||
ln -s /lib/libdbus-1.so.3.5.0 $TMPROOT/usr/lib/libdbus-1.so.3.5.0
|
ln -s /lib/libdbus-1.so.3.5.4 $TMPROOT/usr/lib/libdbus-1.so.3.5.4
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
if [ ! -d $TMPROOT/usr/lib64 ]; then
|
if [ ! -d $TMPROOT/usr/lib64 ]; then
|
||||||
mkdir -p $TMPROOT/usr/lib64
|
mkdir -p $TMPROOT/usr/lib64
|
||||||
fi
|
fi
|
||||||
mv $TMPROOT/lib64/pkgconfig $TMPROOT/usr/lib64
|
mv $TMPROOT/lib64/pkgconfig $TMPROOT/usr/lib64
|
||||||
ln -s /lib64/libdbus-1.so.3.5.0 $TMPROOT/usr/lib64/libdbus-1.so
|
ln -s /lib64/libdbus-1.so.3.5.4 $TMPROOT/usr/lib64/libdbus-1.so
|
||||||
ln -s /lib64/libdbus-1.so.3.5.0 $TMPROOT/usr/lib64/libdbus-1.so.3
|
ln -s /lib64/libdbus-1.so.3.5.4 $TMPROOT/usr/lib64/libdbus-1.so.3
|
||||||
ln -s /lib64/libdbus-1.so.3.5.0 $TMPROOT/usr/lib64/libdbus-1.so.3.5.0
|
ln -s /lib64/libdbus-1.so.3.5.4 $TMPROOT/usr/lib64/libdbus-1.so.3.5.4
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -1,110 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
||||||
#dieses Framework wird im CVS Repository
|
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
|
||||||
#
|
|
||||||
#Lage dieser Datei im Archiv: $HeadURL$
|
|
||||||
#
|
|
||||||
#(c) 2003 Harald Kueller, Germany
|
|
||||||
#This program is free software; you can redistribute it and/or
|
|
||||||
#modify ist 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.
|
|
||||||
#
|
|
||||||
#This program is distributed in the hope that it will be useful,
|
|
||||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
#See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
#You should have received a copy of the GNU General Public License
|
|
||||||
#along with this program; if not write to the Free Software Foundation,
|
|
||||||
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
#
|
|
||||||
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
|
||||||
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
|
||||||
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
|
||||||
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
|
||||||
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
|
||||||
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
|
||||||
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
|
||||||
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
|
||||||
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
|
||||||
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
|
||||||
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
|
||||||
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
|
||||||
#erkannt:
|
|
||||||
#
|
|
||||||
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
|
||||||
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
|
||||||
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
|
||||||
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
|
||||||
# Stellt, und das packet in jedemfall (neu) installiert.
|
|
||||||
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
|
||||||
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
|
||||||
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
|
||||||
# (z.B. aus dem CVS generierte Packete).
|
|
||||||
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
|
||||||
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
|
||||||
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
|
||||||
# so einem Fall in der postmk() Funktion erstellt werden.
|
|
||||||
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
|
||||||
# die installation mittelst installpkg probleme machen.
|
|
||||||
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
|
||||||
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
|
||||||
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
|
||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
|
||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
|
||||||
# kümmern
|
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes: device-mapper
|
|
||||||
#Quelle der Source Archive: ftp://sources.redhat.com/pub/dm/
|
|
||||||
#Kurzbeschreibung:
|
|
||||||
#Zwischen Device schicht des Kernels für das VOlume Management.
|
|
||||||
#Software zur Ansteuerung dieser Device-mapping function
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#Letzte Änderung von: $Author$
|
|
||||||
#Datum der letzten Änderung: $Date$
|
|
||||||
#Version der Datei: $Revision$
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
SRCPATH=Base/System
|
|
||||||
|
|
||||||
premk() {
|
|
||||||
echo "Nothing to do for premk()"
|
|
||||||
}
|
|
||||||
|
|
||||||
mk32() {
|
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
|
||||||
CXX="g++ ${BUILDOPTIONS32}" \
|
|
||||||
USE_ARCH=$UARCH \
|
|
||||||
../device-mapper*/configure
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
|
||||||
mkdir $TMPROOT/lib
|
|
||||||
cp -d /lib/libdevmapper.so* $TMPROOT/lib/
|
|
||||||
cd ../device-mapper*
|
|
||||||
make distclean
|
|
||||||
}
|
|
||||||
|
|
||||||
mk() {
|
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
|
||||||
USE_ARCH=$UARCH \
|
|
||||||
../device-mapper*/configure $ADDOPTIONS
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
|
||||||
mkdir $TMPROOT/$LIBDIR
|
|
||||||
cp -d /$LIBDIR/libdevmapper.so* $TMPROOT/$LIBDIR
|
|
||||||
}
|
|
||||||
|
|
||||||
postmk() {
|
|
||||||
mkdir $TMPROOT/sbin
|
|
||||||
cp -d /sbin/dmsetup $TMPROOT/sbin
|
|
||||||
}
|
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/SysBuild/xserv/appres $
|
#Lage dieser Datei im Archiv: $Source: $
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -58,18 +58,18 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes: appres
|
#Module zur Erstellung des Packetes: portmap
|
||||||
#Quelle der Source Archive: www.x.org
|
#Quelle der Source Archive: www.freshmeat.net
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#rpc daemon
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author: kueller $
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 15:58:25 +0200 (Fr, 02 Mai 2008) $
|
#Datum der letzten Änderung: $Date: 2008-05-02 15:13:24 +0200 (Fr, 02. Mai 2008) $
|
||||||
#Version der Datei: $Rev$
|
#Version der Datei: $Revision: 4220 $
|
||||||
#
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=XServ/App
|
SRCPATH=Base/Net
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
echo "Nothing to do for premk()"
|
||||||
@ -77,14 +77,13 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
./configure --prefix=/usr \
|
||||||
./configure --host=$TARGET \
|
--sbindir=/sbin \
|
||||||
--localstatedir=/var \
|
--sysconfdir=/etc \
|
||||||
--infodir=/usr/share/info \
|
--dbdir=/var/${LIBDIR}/dhcpcd \
|
||||||
--mandir=/usr/share/man \
|
--libexecdir=/usr/${LIBDIR}/dhcpcd
|
||||||
--prefix=/usr/X11R7
|
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
@ -77,9 +77,8 @@ mk() {
|
|||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
sed -i 's@\(^#define DEFAULT_EDITOR_PROGRAM \).*@\1"vi"@' config.h
|
sed -i 's@\(^#define DEFAULT_EDITOR_PROGRAM \).*@\1"vi"@' config.h
|
||||||
touch man/*.1
|
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/SysBuild/xserv/printproto $
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/BaseBuild/Basesys/acl $
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -55,55 +55,81 @@
|
|||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
#
|
||||||
# kümmern
|
#Module zur Erstellung des Packetes: dmapi
|
||||||
|
#Quelle der Source Archive: ftp://oss.sgi.com/projects/xfs/cmd_tars/
|
||||||
#Module zur Erstellung des Packetes: printproto
|
|
||||||
#Quelle der Source Archive: www.x.org
|
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#xfs additional system
|
||||||
#
|
#
|
||||||
#
|
#Letzte Änderung von: $Author: kueller $
|
||||||
#Letzte Änderung von: $Author$
|
#Datum der letzten Änderung: $Date: 2010-03-05 22:50:07 +0100 (Fr, 05. Mär 2010) $
|
||||||
#Datum der letzten Änderung: $Date: 2009-04-29 12:25:28 +0200 (Mi, 29 Apr 2009) $
|
#Version der Datei: $Revision: 5450 $
|
||||||
#Version der Datei: $Rev$
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
SRCPATH=XServ/Proto
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
if [ ! -d $TMPROOT/lib ]; then
|
||||||
|
mkdir -p $TMPROOT/lib $TMPROOT/usr/lib
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc $BUILDOPTIONS32" \
|
CC="gcc ${BUILDOPTIONS32} -fPIC -I/usr/include" \
|
||||||
CXX="g++ $BUILDOPTIONS32" \
|
CXX="g++ ${BUILDOPTIONS32} -fPIC -I/usr/include" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
--localstatedir=/var \
|
--prefix=/ \
|
||||||
--infodir=/usr/share/info \
|
--libdir=/usr/lib \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man
|
||||||
--prefix=/usr/X11R7
|
make -j $NUMCPU USE_ARCH=$UARCH
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
make clean
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
|
PKG_SLIB_DIR=$TMPROOT/lib \
|
||||||
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/dmapi \
|
||||||
|
USE_ARCH=$UARCH install
|
||||||
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
|
PKG_SLIB_DIR=$TMPROOT/lib \
|
||||||
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/dmapi \
|
||||||
|
USE_ARCH=$UARCH install-dev
|
||||||
|
make distclean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDOPTIONS="--libdir=/usr/X11R7/lib64"
|
mkdir -p $TMPROOT/lib64 $TMPROOT/usr/lib64
|
||||||
fi
|
fi
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ ${BUILDOPTIONS} -fPIC -I/usr/include" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
--localstatedir=/var \
|
--prefix=/ \
|
||||||
--infodir=/usr/share/info \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man
|
||||||
$ADDOPTIONS \
|
make -j $NUMCPU USE_ARCH=$UARCH
|
||||||
--prefix=/usr/X11R7
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
make -j $NUMCPU
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
|
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
||||||
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/dmapi \
|
||||||
|
USE_ARCH=$UARCH install
|
||||||
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
|
PKG_SLIB_DIR=$TMPROOT/$LIBDIR \
|
||||||
|
PKG_INC_DIR=$TMPROOT/usr/include \
|
||||||
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
|
PKG_DOC_DIR=$TMPROOT/usr/share/doc/dmapi \
|
||||||
|
USE_ARCH=$UARCH install-dev
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
@ -70,45 +70,41 @@ SRCPATH=Base/System
|
|||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share/info
|
mkdir -p $TMPROOT/usr/share/info
|
||||||
cd $TMPROOT/usr
|
ln -s share/info $TMPROOT/usr/info
|
||||||
ln -s share/info info
|
mkdir build
|
||||||
cd -
|
cd build
|
||||||
mkdir ../build-e2fsprogs
|
|
||||||
cd ../build-e2fsprogs
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
LDFLAGS="-luuid -lblkid" \
|
LDFLAGS="-luuid -lblkid" \
|
||||||
../e2fsprogs*/configure --prefix=/usr \
|
../configure --prefix=/usr \
|
||||||
--with-root-prefix="" \
|
--with-root-prefix="" \
|
||||||
--enable-elf-shlibs \
|
--enable-elf-shlibs \
|
||||||
--disable-libblkid \
|
--disable-libblkid \
|
||||||
--disable-libuuid
|
--disable-libuuid \
|
||||||
make -j $NUMCPU
|
--disable-fsck \
|
||||||
make -j $NUMCPU install
|
--disable-uuidd
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU libs
|
||||||
make -j $NUMCPU install-libs
|
make -j $NUMCPU install-libs
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install-libs
|
make -j $NUMCPU DESTDIR=$TMPROOT install-libs
|
||||||
if [ ! -d $TMPROOT/usr/lib ]; then
|
if [ ! -d $TMPROOT/usr/lib ]; then
|
||||||
mkdir -p $TMPROOT/usr/lib
|
mkdir -p $TMPROOT/usr/lib
|
||||||
fi
|
fi
|
||||||
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib
|
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib
|
||||||
cd ../e2fsprogs*
|
cd ..
|
||||||
rm -r ../build-e2fsprogs
|
rm -r build
|
||||||
mkdir ../build-e2fsprogs
|
mkdir build
|
||||||
cd ../build-e2fsprogs
|
cd build
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
cd ../e2fsprogs*
|
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
sed -i '/libdir=.*\/lib/s@/lib@/lib64@g' configure
|
sed -i '/libdir.*=.*\/lib/s@/lib@/lib64@g' ../configure
|
||||||
fi
|
fi
|
||||||
cd -
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
LDFLAGS="-luuid -lblkid" \
|
LDFLAGS="-luuid -lblkid" \
|
||||||
../e2fsprogs*/configure --prefix=/usr \
|
../configure --prefix=/usr \
|
||||||
--libdir=/$LIBDIR \
|
--libdir=/$LIBDIR \
|
||||||
--with-root-prefix="" \
|
--with-root-prefix="" \
|
||||||
--enable-elf-shlibs \
|
--enable-elf-shlibs \
|
||||||
@ -118,9 +114,6 @@ mk() {
|
|||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install-libs
|
make -j $NUMCPU DESTDIR=$TMPROOT install-libs
|
||||||
install-info $TMPROOT/usr/share/info/libext2fs.info \
|
|
||||||
$TMPROOT/usr/share/info/dir
|
|
||||||
rm $TMPROOT/usr/info
|
|
||||||
if [ ! -d $TMPROOT/usr/$LIBDIR ]; then
|
if [ ! -d $TMPROOT/usr/$LIBDIR ]; then
|
||||||
mkdir -p $TMPROOT/usr/$LIBDIR
|
mkdir -p $TMPROOT/usr/$LIBDIR
|
||||||
fi
|
fi
|
||||||
@ -130,5 +123,4 @@ mk() {
|
|||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
||||||
rm -r $MAKEDIR/build-e2fsprogs
|
|
||||||
}
|
}
|
||||||
|
@ -87,6 +87,4 @@ postmk() {
|
|||||||
cd $TMPROOT
|
cd $TMPROOT
|
||||||
mv usr/bin/{ed,red} bin
|
mv usr/bin/{ed,red} bin
|
||||||
rm -r usr/bin
|
rm -r usr/bin
|
||||||
mkdir -p $TMPROOT/usr/share
|
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
|
||||||
}
|
}
|
||||||
|
@ -74,62 +74,71 @@ SRCPATH=Base/Lib
|
|||||||
(( MKPKG = $MKPKG | 128 ))
|
(( MKPKG = $MKPKG | 128 ))
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-localedef_segfault*
|
unset LINKER
|
||||||
mkdir ../build-glibc
|
mkdir -v ../build-eglibc
|
||||||
cd ../build-glibc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
|
LINKER=$(readelf -l $(file /tools/lib/libc-* | cut -f1 -d:) | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
|
||||||
|
mv scripts/test-installation.pl{,.orig}
|
||||||
|
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \
|
||||||
|
scripts/test-installation.pl
|
||||||
|
cd ../build-eglibc
|
||||||
ARCH=`echo $TARGET32|cut -d"-" -f 1`
|
ARCH=`echo $TARGET32|cut -d"-" -f 1`
|
||||||
CC="gcc -m32" \
|
CC="gcc -m32" \
|
||||||
CXX="g++ -m32" \
|
CXX="g++ -m32" \
|
||||||
CFLAGS="-march=$ARCH -mtune=generic -g -O2" \
|
CFLAGS="-march=$ARCH -mtune=generic -g -O2" \
|
||||||
../glibc*/configure --prefix=/usr \
|
../eglibc*/configure --prefix=/usr \
|
||||||
--host=${TARGET32} \
|
--host=${TARGET32} \
|
||||||
--disable-profile \
|
--disable-profile \
|
||||||
--enable-add-ons \
|
--enable-add-ons \
|
||||||
--enable-kernel=2.6.0 \
|
--enable-kernel=2.6.0 \
|
||||||
--libexecdir=/usr/lib/glibc
|
--libexecdir=/usr/lib/eglibc
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
sed -i '/cross-compiling/s@ifeq@ifneq@g' ../glibc-2.9/localedata/Makefile
|
sed -i '/cross-compiling/s@ifeq@ifneq@g' ../eglibc-*/localedata/Makefile
|
||||||
MakeCheck -k check >glibc-check-log.32 2>&1; grep Error glibc-check-log.32
|
cp -v ../eglibc-*/iconvdata/gconv-modules iconvdata
|
||||||
|
MakeCheck -k check |tee /tmp/genpkg/eglibc-check-log.32 2>&1
|
||||||
touch /etc/ld.so.conf
|
touch /etc/ld.so.conf
|
||||||
make -j $NUMCPU install_root=$TMPROOT install
|
make -j $NUMCPU install_root=$TMPROOT install
|
||||||
cd ../glibc*
|
cd ../eglibc*
|
||||||
rm -r ../build-glibc/
|
rm -r ../build-eglibc/
|
||||||
mkdir ../build-glibc
|
mv scripts/test-installation.pl.orig scripts/test-installation.pl
|
||||||
cd ../build-glibc
|
mkdir ../build-eglibc
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
LINKER=$(readelf -l $(file /tools/${LIBDIR}/libc-* | cut -f1 -d:) | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
|
||||||
|
sed -i "s|libs -o|libs -L/usr/${LIBDIR} -Wl,-dynamic-linker=${LINKER} -o|" \
|
||||||
|
scripts/test-installation.pl
|
||||||
|
cd ../build-eglibc
|
||||||
if [ $MK64BIT == "true" ]; then
|
if [ $MK64BIT == "true" ]; then
|
||||||
echo "slibdir=/lib64" >> configparms
|
echo "slibdir=/lib64" >> configparms
|
||||||
ADDCONFIGURE="--libdir=/usr/lib64 --libexecdir=/usr/lib64/glibc"
|
|
||||||
if echo $ARCH|grep -q sparc; then
|
if echo $ARCH|grep -q sparc; then
|
||||||
echo "Special doings for sparc ?"
|
echo "Special doings for sparc ?"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
ADDCONFIGURE="--libexecdir=/usr/lib/glibc"
|
|
||||||
BUILDOPTIONS=${BUILDOPTIONS}" -march=i486"
|
BUILDOPTIONS=${BUILDOPTIONS}" -march=i486"
|
||||||
fi
|
fi
|
||||||
if [ ! ${MK64BIT} == "true" ]; then
|
|
||||||
echo "CFLAGS += -mtune=generic -g -O2" >configparms
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
../glibc*/configure --prefix=/usr \
|
CFLAGS="-mtune=generic -g -O2" \
|
||||||
|
../eglibc*/configure --prefix=/usr \
|
||||||
$ADDCONFIGURE \
|
$ADDCONFIGURE \
|
||||||
--disable-profile \
|
--disable-profile \
|
||||||
--enable-add-ons \
|
--enable-add-ons \
|
||||||
--enable-kernel=2.6.0
|
--enable-kernel=2.6.0 \
|
||||||
|
--libexecdir=/usr/${LIBDIR}/eglibc \
|
||||||
|
--libdir=/usr/${LIBDIR}
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
MakeCheck -k check >glibc-check-log 2>&1; grep Error glibc-check-log
|
cp -v ../eglibc-*/iconvdata/gconv-modules iconvdata
|
||||||
|
MakeCheck -k check |tee /tmp/genpkg/eglibc-check-log 2>&1
|
||||||
make -j $NUMCPU install_root=$TMPROOT install
|
make -j $NUMCPU install_root=$TMPROOT install
|
||||||
make -j $NUMCPU install_root=$TMPROOT localedata/install-locales
|
make -j $NUMCPU install_root=$TMPROOT localedata/install-locales
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
cd ../glibc*
|
cd ../eglibc*
|
||||||
rm -r ../build-glibc
|
rm -r ../build-eglibc
|
||||||
|
mkdir -p $TMPROOT/var/db/nscd
|
||||||
|
mkdir -p $TMPROOT/var/run/nscd
|
||||||
}
|
}
|
@ -75,7 +75,7 @@ SRCPATH=Base/Lib
|
|||||||
#Hier kann z.B. das Makefile gepatcht werden (SED lässt grüssen
|
#Hier kann z.B. das Makefile gepatcht werden (SED lässt grüssen
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir $TMPROOT/usr/include -p
|
mkdir -p $TMPROOT/usr/include
|
||||||
if [ -d /usr/man ]; then
|
if [ -d /usr/man ]; then
|
||||||
mv /usr/man /usr/man.store
|
mv /usr/man /usr/man.store
|
||||||
fi
|
fi
|
||||||
@ -98,16 +98,13 @@ mk32() {
|
|||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS=--libdir=/usr/lib64
|
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
$ADDOPTIONS \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--includedir=/usr/include &&
|
--includedir=/usr/include &&
|
||||||
|
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
|
@ -70,9 +70,7 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
if [ ! -d $TMPROOT/usr/sbin ]; then
|
echo "Nothing to do for premk()"
|
||||||
mkdir -p $TMPROOT/usr/sbin
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -86,9 +84,9 @@ mk() {
|
|||||||
--with-username=root \
|
--with-username=root \
|
||||||
--with-groupname=root \
|
--with-groupname=root \
|
||||||
--without-sendmail \
|
--without-sendmail \
|
||||||
--with-cflags="$CFLAGS"
|
--with-cflags="$BUILDOPTIONS"
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
yes "n"|make -j $NUMCPU DESTDIR=$TMPROOT install
|
yes "n"|make DESTDIR=$TMPROOT install
|
||||||
for i in 1 3 5; do
|
for i in 1 3 5; do
|
||||||
if [ ! -d $TMPROOT/usr/share/man/man$i ]; then
|
if [ ! -d $TMPROOT/usr/share/man/man$i ]; then
|
||||||
mkdir -p $TMPROOT/usr/share/man/man$i
|
mkdir -p $TMPROOT/usr/share/man/man$i
|
||||||
@ -101,7 +99,7 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_cron $TMPROOT
|
GetGit Viitor_cron $TMPROOT
|
||||||
cd $TMPROOT/usr/bin
|
cd $TMPROOT/usr/bin
|
||||||
ln -s fcrontab crontab
|
ln -s fcrontab crontab
|
||||||
cd $TMPROOT/usr/sbin
|
cd $TMPROOT/usr/sbin
|
||||||
|
@ -93,12 +93,9 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
../file*/configure --prefix=/usr \
|
../file*/configure --prefix=/usr \
|
||||||
$ADDOPTIONS \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--datadir=/usr/share/misc
|
--datadir=/usr/share/misc
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
@ -78,11 +78,11 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --host=$TARGET \
|
./configure --libexecdir=/usr/$LIBDIR/locate \
|
||||||
--libexecdir=/usr/$LIBDIR/locate \
|
|
||||||
--localstatedir=/var/$LIBDIR/locate \
|
--localstatedir=/var/$LIBDIR/locate \
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr \
|
make -j $NUMCPU prefix=$TMPROOT/usr \
|
||||||
libexecdir=$TMPROOT/usr/$LIBDIR/locate \
|
libexecdir=$TMPROOT/usr/$LIBDIR/locate \
|
||||||
|
@ -77,8 +77,8 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make -j $NUMCPU
|
make -k -j $NUMCPU
|
||||||
make DESTDIR=$TMPROOT install
|
make -k DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -72,15 +72,15 @@ SRCPATH=Base/Development
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mkdir -p $TMPROOT/usr/man/man1
|
mkdir -p $TMPROOT/usr/man/man1
|
||||||
mkdir -p $TMPROOT/usr/lib
|
|
||||||
mkdir ../build-flex
|
mkdir ../build-flex
|
||||||
cd ../build-flex
|
cd ../build-flex
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
|
mkdir -p $TMPROOT/usr/lib
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
../flex*/configure --prefix=/usr
|
../flex*/configure --prefix=/usr
|
||||||
make -j $NUMCPU libfl.a
|
make -j $NUMCPU libfl.a libfl_pic.a
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install-libLIBRARIES
|
make -j $NUMCPU prefix=$TMPROOT/usr install-libLIBRARIES
|
||||||
cd ../flex*
|
cd ../flex*
|
||||||
rm -r ../build-flex
|
rm -r ../build-flex
|
||||||
@ -89,16 +89,12 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
mkdir -p $TMPROOT/usr/${LIBDIR}
|
||||||
$ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
mkdir -p $TMPROOT/usr/lib64
|
|
||||||
INSTOPT="libdir=$TMPROOT/usr/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
../flex*/configure $ADDOPTIONS \
|
../flex*/configure --libdir=/usr/${LIBDIR} \
|
||||||
--prefix=/usr &&
|
--prefix=/usr &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr $INSTOPT install
|
make -j $NUMCPU prefix=$TMPROOT/usr libdir=$TMPROOT/usr/${LIBDIR} install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -76,13 +76,8 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libexecdir=/usr/lib64"
|
|
||||||
else
|
|
||||||
ADDOPTIONS="--libexecdir=/usr/lib"
|
|
||||||
fi
|
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
$ADDOPTIONS \
|
--libexecdir=/usr/${LIBDIR} \
|
||||||
--prefix=/usr &&
|
--prefix=/usr &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
@ -98,5 +93,7 @@ postmk() {
|
|||||||
ln -sf ../../bin/gawk $TMPROOT/usr/bin/iawk
|
ln -sf ../../bin/gawk $TMPROOT/usr/bin/iawk
|
||||||
ln -sf ../../bin/gawk $TMPROOT/usr/bin/pgawk
|
ln -sf ../../bin/gawk $TMPROOT/usr/bin/pgawk
|
||||||
ln -sf ../../bin/gawk $TMPROOT/usr/bin/pawk
|
ln -sf ../../bin/gawk $TMPROOT/usr/bin/pawk
|
||||||
|
ln -sf ../../bin/gawk $TMPROOT/usr/bin/gawk-3.1.8
|
||||||
|
ln $TMPROOT/usr/bin/pgawk $TMPROOT/usr/bin/pgawk-3.1.8
|
||||||
rm -r $TMPROOT/usr/man
|
rm -r $TMPROOT/usr/man
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: gcc
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: ftp.gnu.org
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#Gnu C, C++, Fortran, Java uvm. Compiler suite
|
#Gnu C, C++, Fortran, Java uvm. Compiler suite
|
||||||
#
|
#
|
||||||
@ -73,7 +73,6 @@ SRCPATH=Base/Development
|
|||||||
(( MKPKG = $MKPKG | 128 ))
|
(( MKPKG = $MKPKG | 128 ))
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-branch_update-*.patch*
|
|
||||||
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
||||||
mkdir ../build-gcc
|
mkdir ../build-gcc
|
||||||
cd ../build-gcc
|
cd ../build-gcc
|
||||||
@ -81,16 +80,15 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDCONFIGURE="--libdir=/usr/lib64 --libexecdir=/usr/lib64"
|
|
||||||
RPATH="/lib64:/lib"
|
RPATH="/lib64:/lib"
|
||||||
else
|
else
|
||||||
ADDCONFIGURE="--libexecdir=/usr/lib"
|
|
||||||
RPATH="/lib"
|
RPATH="/lib"
|
||||||
fi
|
fi
|
||||||
CC="gcc -Wl,-rpath-link,$RPATH -isystem /usr/include ${BUILDOPTIONS}" \
|
CC="gcc -Wl,-rpath-link,${RPATH} -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
CXX="g++ -Wl,-rpath-link,$RPATH -isystem /usr/include ${BUILDOPTIONS}" \
|
CXX="g++ -Wl,-rpath-link,${RPATH} -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
../gcc*/configure --prefix=/usr \
|
../gcc*/configure --prefix=/usr \
|
||||||
$ADDCONFIGURE \
|
--libdir=/usr/${LIBDIR} \
|
||||||
|
--libexecdir=/usr/${LIBDIR} \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-threads=posix \
|
--enable-threads=posix \
|
||||||
--enable-__cxa_atexit \
|
--enable-__cxa_atexit \
|
||||||
@ -99,6 +97,10 @@ mk() {
|
|||||||
--enable-clocale=gnu \
|
--enable-clocale=gnu \
|
||||||
--disable-libstdcxx-pch
|
--disable-libstdcxx-pch
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU -k check
|
||||||
|
if [ "$CHECK" == "true" ]; then
|
||||||
|
../gcc*/contrib/test_summary
|
||||||
|
fi
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,4 +112,5 @@ postmk() {
|
|||||||
ln -sv gcc $TMPROOT/usr/bin/cc
|
ln -sv gcc $TMPROOT/usr/bin/cc
|
||||||
cd ../gcc*
|
cd ../gcc*
|
||||||
rm -r ../build-gcc
|
rm -r ../build-gcc
|
||||||
|
cp $TMPROOT/usr/lib/libgcc_s.so.1 $TMPROOT/lib
|
||||||
}
|
}
|
||||||
|
@ -87,13 +87,11 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
../gettext*/configure --host=$TARGET \
|
../gettext*/configure --host=$TARGET \
|
||||||
$ADDOPTIONS \
|
--libdir=/usr/${LIBDIR} \
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
make install
|
make install
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
@ -75,16 +75,19 @@ SRCPATH=Base/Lib
|
|||||||
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
|
mv config{fsf,}.guess
|
||||||
|
mv config{fsf,}.sub
|
||||||
mkdir ../build-gmp
|
mkdir ../build-gmp
|
||||||
cd ../build-gmp
|
cd ../build-gmp
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
|
CPPFLAGS=-fexceptions \
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
CXX="g++ -isystem /usr/include ${BUILDOPTIONS32}" \
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
||||||
../gmp*/configure --host=$TARGET32 \
|
ABI=32 \
|
||||||
--prefix=/usr \
|
../gmp*/configure --prefix=/usr \
|
||||||
--enable-cxx \
|
--enable-cxx \
|
||||||
--enable-mpbsd
|
--enable-mpbsd
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
@ -98,14 +101,11 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
CPPFLAGS=-fexceptions \
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
CXX="g++ -isystem /usr/include ${BUILDOPTIONS}" \
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
LDFLAGS="-Wl,-rpath-link,/$LIBDIR ${BUILDOPTIONS}" \
|
LDFLAGS="-Wl,-rpath-link,/$LIBDIR ${BUILDOPTIONS}" \
|
||||||
../gmp*/configure --host=$TARGET \
|
../gmp*/configure --libdir=/usr/${LIBDIR} \
|
||||||
$ADDOPTIONS \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--enable-cxx \
|
--enable-cxx \
|
||||||
--enable-mpbsd
|
--enable-mpbsd
|
||||||
@ -129,7 +129,7 @@ postmk() {
|
|||||||
rm -r ../build-gmp
|
rm -r ../build-gmp
|
||||||
if [ $MK64BIT == "true" ]; then
|
if [ $MK64BIT == "true" ]; then
|
||||||
mv -v $TMPROOT/usr/include/gmp{,-64}.h
|
mv -v $TMPROOT/usr/include/gmp{,-64}.h
|
||||||
cat > /usr/include/gmp.h << "EOF"
|
cat > $TMPROOT/usr/include/gmp.h << "EOF"
|
||||||
/* gmp.h - Stub Header */
|
/* gmp.h - Stub Header */
|
||||||
#ifndef __STUB__GMP_H__
|
#ifndef __STUB__GMP_H__
|
||||||
#define __STUB__GMP_H__
|
#define __STUB__GMP_H__
|
||||||
|
@ -73,7 +73,7 @@ SRCPATH=Base/Lib
|
|||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 4 ))
|
(( MKPKG = $MKPKG | 4 ))
|
||||||
|
|
||||||
VERSION=0.4.3.3
|
VERSION=0.4.5.2
|
||||||
if [ -f $LFSSOURCE/$SRCPATH/gpplib-[0-9]*.tar.bz2 ]; then
|
if [ -f $LFSSOURCE/$SRCPATH/gpplib-[0-9]*.tar.bz2 ]; then
|
||||||
rm $LFSSOURCE/$SRCPATH/gpplib-[0-9]*.tar.bz2
|
rm $LFSSOURCE/$SRCPATH/gpplib-[0-9]*.tar.bz2
|
||||||
fi
|
fi
|
||||||
|
@ -77,14 +77,14 @@ premk() {
|
|||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--bindir=/bin &&
|
--bindir=/bin \
|
||||||
|
--without-included-regex &&
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
||||||
ln -sf grep $TMPROOT/bin/egrep
|
|
||||||
ln -sf grep $TMPROOT/bin/fgrep
|
|
||||||
}
|
}
|
||||||
|
@ -74,14 +74,11 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
PAGE=A4 \
|
PAGE=A4 \
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
./configure $ADDOPTIONS \
|
./configure --prefix=/usr \
|
||||||
--prefix=/usr
|
--libdir=/usr/${LIBDIR}
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
make -j $NUMCPU prefix=$TMPROOT/usr install
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,6 @@ SRCPATH=Base/Utilities
|
|||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/bin $TMPROOT/bin $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/bin $TMPROOT/bin $TMPROOT/usr/share
|
||||||
sed -i "s/futimens/gl_&/" $(grep -lr futimens *)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -79,6 +78,7 @@ mk() {
|
|||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--bindir=/bin
|
--bindir=/bin
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck check
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,6 +88,10 @@ postmk() {
|
|||||||
mv /tmp/$i $TMPROOT/bin/$i
|
mv /tmp/$i $TMPROOT/bin/$i
|
||||||
chmod 755 $TMPROOT/bin/$i
|
chmod 755 $TMPROOT/bin/$i
|
||||||
done
|
done
|
||||||
|
if [ ! -d $TMPROOT/usr/bin ]; then
|
||||||
|
mkdir -p $TMPROOT/usr/bin
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} $TMPROOT/usr/bin
|
||||||
ln -s gzip $TMPROOT/bin/compress
|
ln -s gzip $TMPROOT/bin/compress
|
||||||
if [ -d $TMPROOT/usr/man ]; then
|
if [ -d $TMPROOT/usr/man ]; then
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
||||||
|
@ -84,15 +84,6 @@ mk() {
|
|||||||
cp -rp etc/hotplug* $TMPROOT/etc
|
cp -rp etc/hotplug* $TMPROOT/etc
|
||||||
cp -rp etc/rc.d/init.d/hotplug $TMPROOT/etc/init.d
|
cp -rp etc/rc.d/init.d/hotplug $TMPROOT/etc/init.d
|
||||||
cp sbin/hotplug $TMPROOT/sbin
|
cp sbin/hotplug $TMPROOT/sbin
|
||||||
if [ -d /var/install/sysvinit* ]; then
|
|
||||||
mkdir $TMPROOT/etc/init.d/rc{0,1,2,3,4,5,6}.d
|
|
||||||
cd $TMPROOT/etc/init.d
|
|
||||||
for i in 1 2 3 4 5; do
|
|
||||||
cd rc$i.d
|
|
||||||
ln -s ../hotplug S05hotplug
|
|
||||||
cd ..
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -90,8 +90,7 @@ premk() {
|
|||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --host=$TARGET \
|
./configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--libexecdir=/usr/sbin \
|
--libexecdir=/usr/sbin \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
@ -102,6 +101,7 @@ mk() {
|
|||||||
--disable-ifconfig \
|
--disable-ifconfig \
|
||||||
--disable-ping \
|
--disable-ping \
|
||||||
--disable-ping6 \
|
--disable-ping6 \
|
||||||
|
--disable-hostname \
|
||||||
--with-pam
|
--with-pam
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
@ -114,9 +114,12 @@ postmk() {
|
|||||||
mkdir $TMPROOT/bin
|
mkdir $TMPROOT/bin
|
||||||
fi
|
fi
|
||||||
mv $TMPROOT/usr/bin/ping $TMPROOT/bin
|
mv $TMPROOT/usr/bin/ping $TMPROOT/bin
|
||||||
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/lfs-utils*.tar.bz2
|
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/iana-etc*.tar.bz2
|
||||||
cd $MAKEDIR/lfs-utils*
|
cd $MAKEDIR/iana-etc*
|
||||||
|
make
|
||||||
mkdir $TMPROOT/etc
|
mkdir $TMPROOT/etc
|
||||||
cp etc/{services,protocols} $TMPROOT/etc
|
cp {services,protocols} $TMPROOT/etc
|
||||||
ClearHostSysNameing $TMPROOT
|
ClearHostSysNameing $TMPROOT
|
||||||
|
cd $MAKEDIR/inetutils*
|
||||||
|
rm -r $MAKEDIR/iana-etc*
|
||||||
}
|
}
|
||||||
|
@ -82,14 +82,13 @@ premk() {
|
|||||||
mk() {
|
mk() {
|
||||||
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}" \
|
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}" \
|
||||||
DESTDIR=/ \
|
DESTDIR=/ \
|
||||||
LIBDIR=/usr/$LIBDIR \
|
LIBDIR=/usr/${LIBDIR} \
|
||||||
VARLIB=/var/$LIBDIR \
|
VARLIB=/var/${LIBDIR} \
|
||||||
SBINDIR=/sbin \
|
|
||||||
DOCDIR=/usr/share/doc/iproute2 \
|
DOCDIR=/usr/share/doc/iproute2 \
|
||||||
MANDIR=/usr/share/man
|
MANDIR=/usr/share/man
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT \
|
make -j $NUMCPU DESTDIR=$TMPROOT \
|
||||||
LIBDIR=/usr/$LIBDIR \
|
LIBDIR=/usr/${LIBDIR} \
|
||||||
VARLIB=/var/$LIBDIR \
|
VARLIB=/var/${LIBDIR} \
|
||||||
SBINDIR=/sbin \
|
SBINDIR=/sbin \
|
||||||
DOCDIR=/usr/share/doc/iproute2 \
|
DOCDIR=/usr/share/doc/iproute2 \
|
||||||
MANDIR=/usr/share/man install
|
MANDIR=/usr/share/man install
|
||||||
@ -98,5 +97,7 @@ mk() {
|
|||||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
#in $TMPROOT noch einiges korrigieren
|
#in $TMPROOT noch einiges korrigieren
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_iproute $TMPROOT
|
if [ -d /var/install/subversion* ]; then
|
||||||
|
GetGit Viitor_iproute $TMPROOT
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
@ -74,15 +74,16 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}"
|
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}" \
|
||||||
|
IPV4_TARGETS="tracepath ping clockdiff" \
|
||||||
|
IPV6_TARGETS="tracepath6 traceroute6"
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/bin
|
mkdir -p $TMPROOT/bin
|
||||||
mkdir -p $TMPROOT/usr/bin
|
mkdir -p $TMPROOT/usr/bin
|
||||||
mkdir -p $TMPROOT/usr/share/man/man8
|
mkdir -p $TMPROOT/usr/share/man/man8
|
||||||
install -v m755 ping{,6} $TMPROOT/bin
|
install -v m755 ping $TMPROOT/bin
|
||||||
install -v m755 arping $TMPROOT/usr/bin
|
|
||||||
install -v m755 clockdiff $TMPROOT/usr/bin
|
install -v m755 clockdiff $TMPROOT/usr/bin
|
||||||
install -v m755 rdisc $TMPROOT/usr/bin
|
install -v m755 rdisc $TMPROOT/usr/bin
|
||||||
install -v m755 tracepath $TMPROOT/usr/bin
|
install -v m755 tracepath $TMPROOT/usr/bin
|
||||||
|
@ -70,29 +70,18 @@ SRCPATH=Base/System
|
|||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
if ! grep root /etc/passwd; then
|
|
||||||
cp /etc/passwd /tmp/passwd
|
|
||||||
echo "root::0:0:Administrator:/root:/bin/bash" >/etc/passwd
|
|
||||||
cat /tmp/passwd >>/etc/passwd
|
|
||||||
rm /tmp/passwd
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--datadir=/lib64/kbd"
|
|
||||||
else
|
|
||||||
ADDOPTIONS="--datadir=/lib/kbd"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure $ADDOPTIONS \
|
./configure --datadir=/${LIBDIR}/kbd \
|
||||||
--prefix=/usr &&
|
--prefix=/usr &&
|
||||||
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}"
|
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}"
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mv $TMPROOT/share $TMPROOT/usr/share
|
mv $TMPROOT/share $TMPROOT/usr/
|
||||||
rm $TMPROOT/$LIBDIR/kbd/keymaps/i386/qwerty/defkeymap.map.gz
|
rm $TMPROOT/$LIBDIR/kbd/keymaps/i386/qwerty/defkeymap.map.gz
|
||||||
gzip -d -c $TMPROOT/$LIBDIR/kbd/keymaps/i386/qwertz/de-latin1.map.gz >$TMPROOT/$LIBDIR/kbd/keymaps/defkeymap.kmap
|
gzip -d -c $TMPROOT/$LIBDIR/kbd/keymaps/i386/qwertz/de-latin1.map.gz >$TMPROOT/$LIBDIR/kbd/keymaps/defkeymap.kmap
|
||||||
mkdir -p $TMPROOT/bin
|
mkdir -p $TMPROOT/bin
|
||||||
|
@ -81,7 +81,8 @@ mk() {
|
|||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
--sysconfdir=/etc &&
|
--sysconfdir=/etc &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr bindir=$TMPROOT/bin sysconfdir=/etc install
|
#make -j $NUMCPU prefix=$TMPROOT/usr bindir=$TMPROOT/bin sysconfdir=/etc install
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -58,38 +58,59 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes: acpitool
|
#Module zur Erstellung des Packetes: libaal
|
||||||
#Quelle der Source Archive: https://download.compuextreme.de/V962RC4/Changelog
|
#Quelle der Source Archive: ftp://ftp.kernel.org/pub/linux/utils/fs/reiser4/libaal
|
||||||
#ACHTUNG: Beschreibung nicht in der gleichen Zeile beginnen!
|
#ACHTUNG: Beschreibung nicht in der gleichen Zeile beginnen!
|
||||||
#Neue Zeile anfangen. sonste funktioniert die metadaten erzeugung
|
#Neue Zeile anfangen. sonste funktioniert die metadaten erzeugung
|
||||||
#nicht!
|
#nicht!
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#Ein kleiner, bequemer Kommandozeilen ACPI Client mit einer Menge Features
|
# Support Library fuer das reiser4fs
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author: $
|
#Letzte Änderung von: $Author: $
|
||||||
#Datum der letzten Änderung: $Date: $
|
#Datum der letzten Änderung: $Date: $
|
||||||
#Version der Datei: $Revision: $
|
#Version der Datei: $Revision: $
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/System
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
echo "Nothing to do for premk()"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
CC="gcc $BUILDOPTIONS32" \
|
||||||
|
CXX="g++ $BUILDOPTIONS32" \
|
||||||
|
USE_ARCH=32 \
|
||||||
|
./configure --prefix=/ \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--includedir=/usr/include
|
||||||
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
make distclean
|
||||||
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
./configure --target=$TARGET \
|
USE_ARCH=$UARCH \
|
||||||
$ADDOPTIONS \
|
LDFLAGS="-L/$LIBDIR" \
|
||||||
--prefix=/usr
|
./configure --libdir=\${prefix}/${LIBDIR} \
|
||||||
|
--prefix=/ \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--includedir=/usr/include
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
echo "Nothing to do for postmk()"
|
if [ ! -d $TMPROOT/usr/lib ]; then
|
||||||
|
mkdir $TMPROOT/usr/lib
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib/
|
||||||
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
|
if [ ! -d $TMPROOT/usr/lib64 ]; then
|
||||||
|
mkdir $TMPROOT/usr/lib64
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/lib64/pkgconfig $TMPROOT/usr/lib64
|
||||||
|
fi
|
||||||
}
|
}
|
@ -88,17 +88,18 @@ mk32() {
|
|||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
make distclean
|
make distclean
|
||||||
|
if [ ! -d $TMPROOT/usr/lib ]; then
|
||||||
|
mkdir $TMPROOT/usr/lib
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib/
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
LDFLAGS="-L/$LIBDIR" \
|
LDFLAGS="-L/$LIBDIR" \
|
||||||
./configure $ADDOPTIONS \
|
./configure --libdir=\${prefix}/${LIBDIR} \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
--sharedstatedir=/usr/share \
|
--sharedstatedir=/usr/share \
|
||||||
--includedir=/usr/include \
|
--includedir=/usr/include \
|
||||||
@ -108,14 +109,8 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
if [ ! -d $TMPROOT/usr/lib ]; then
|
if [ ! -d $TMPROOT/usr/${LIBDIR} ]; then
|
||||||
mkdir $TMPROOT/usr/lib
|
mkdir -p $TMPROOT/usr/${LIBDIR}
|
||||||
fi
|
|
||||||
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/lib/
|
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
if [ ! -d $TMPROOT/usr/lib64 ]; then
|
|
||||||
mkdir $TMPROOT/usr/lib64
|
|
||||||
fi
|
|
||||||
mv $TMPROOT/lib64/pkgconfig $TMPROOT/usr/lib64
|
|
||||||
fi
|
fi
|
||||||
|
mv $TMPROOT/lib/pkgconfig $TMPROOT/usr/${LIBDIR}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,6 @@ SRCPATH=Base/System
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir ../build-libtool
|
mkdir ../build-libtool
|
||||||
cd ../build-libtool
|
cd ../build-libtool
|
||||||
ln -sf /tools/bin/grep /bin/grep
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
@ -81,6 +80,7 @@ mk32() {
|
|||||||
../libtool*/configure --prefix=/usr \
|
../libtool*/configure --prefix=/usr \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU LDEMULATION=elf_i386 check
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
sed -i "s/\/tools\/bin\/grep/\/bin\/grep/" $TMPROOT/usr/bin/libtool
|
sed -i "s/\/tools\/bin\/grep/\/bin\/grep/" $TMPROOT/usr/bin/libtool
|
||||||
mv -v $TMPROOT/usr/bin/libtool{,-32}
|
mv -v $TMPROOT/usr/bin/libtool{,-32}
|
||||||
@ -92,14 +92,12 @@ mk32() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
echo "lt_cv_sys_dlsearch_path='/lib64 /usr/lib64 /usr/local/lib64 /opt/lib64'" > config.cache
|
echo "lt_cv_sys_dlsearch_path='/lib64 /usr/lib64 /usr/local/lib64 /opt/lib64'" > config.cache
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}"\
|
CC="gcc ${BUILDOPTIONS}"\
|
||||||
../libtool*/configure $ADDOPTIONS \
|
../libtool*/configure --libdir=/usr/${LIBDIR} \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
sed -i "s/\/tools\/bin\/grep/\/bin\/grep/" $TMPROOT/usr/bin/libtool
|
sed -i "s/\/tools\/bin\/grep/\/bin\/grep/" $TMPROOT/usr/bin/libtool
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
|
@ -90,21 +90,18 @@ mk32() {
|
|||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
mv -v $TMPROOT/usr/bin/xml2-config{,-32}
|
mv -v $TMPROOT/usr/bin/xml2-config{,-32}
|
||||||
|
mv $TMPROOT/usr/bin/xmlcatalog{,.32}
|
||||||
make distclean
|
make distclean
|
||||||
}
|
}
|
||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
mv $TMPROOT/usr/bin/xmlcatalog{,.32}
|
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --target=$TARGET \
|
./configure --target=$TARGET \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
$ADDOPTIONS &&
|
--libdir=/usr/${LIBDIR} &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
@ -120,4 +117,7 @@ postmk() {
|
|||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
||||||
cd $TMPROOT/usr/include
|
cd $TMPROOT/usr/include
|
||||||
ln -s libxml2/libxml libxml
|
ln -s libxml2/libxml libxml
|
||||||
|
if [ -f $TMPROOT/usr/bin/xmlcatalog.32 ]; then
|
||||||
|
mv -v $TMPROOT/usr/bin/xmlcatalog.32 $TMPROOT/usr/bin/xmlcatalog
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
@ -79,11 +79,11 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
|
|
||||||
make CC="gcc ${BUILDOPTIONS}" -j $NUMCPU
|
make CC="gcc ${BUILDOPTIONS}" -j $NUMCPU all
|
||||||
make -j $NUMCPU ROOT=$TMPROOT install
|
make -j $NUMCPU ROOT=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_lilo $TMPROOT
|
GetGit Viitor_lilo $TMPROOT
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
||||||
}
|
}
|
||||||
|
@ -83,11 +83,10 @@ premk() {
|
|||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
cd $MAKEDIR/linux
|
|
||||||
chown -R 0:0 .
|
chown -R 0:0 .
|
||||||
make mrproper
|
make -j $NUMCPU distclean
|
||||||
cd ..
|
cd ..
|
||||||
tar -cf - linux|tar -xC $TMPROOT/usr/src -vf -
|
tar -cf - linux*|tar -xC $TMPROOT/usr/src -vf -
|
||||||
}
|
}
|
||||||
|
|
||||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
|
@ -79,6 +79,7 @@ mk() {
|
|||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,12 +69,12 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share/man
|
mkdir -p $TMPROOT/usr/share/man
|
||||||
mkdir $TMPROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
|
mkdir $TMPROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make MANDIR=$TMPROOT/usr/share/man install
|
make MANDIR=$TMPROOT/usr/share/man install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -71,12 +71,12 @@ SRCPATH=Base/System
|
|||||||
SRCDIR="manpages-de*"
|
SRCDIR="manpages-de*"
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share/man
|
mkdir -p $TMPROOT/usr/share/man
|
||||||
mkdir $TMPROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
|
mkdir $TMPROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make MANDIR=$TMPROOT/usr/share/man install
|
make MANDIR=$TMPROOT/usr/share/man install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
#
|
#
|
||||||
#Module zur Erstellung des Packetes: make
|
#Module zur Erstellung des Packetes: mktemp
|
||||||
#Quelle der Source Archive: ftp://ftp.gnu.org/gnu/make
|
#Quelle der Source Archive: ftp://ftp.gnu.org/gnu/make
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#Erstellt tmp file namen. wird von diversen Scripts (debian) verwendet
|
#Erstellt tmp file namen. wird von diversen Scripts (debian) verwendet
|
||||||
|
@ -72,17 +72,22 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
|
if [ "$CHECK" == "true" ]; then
|
||||||
|
sed -i "s/\(make\)\( all\)/\1 DOCBOOKTOMAN=true\2/" tests/runtests &&
|
||||||
|
./tests/runtests
|
||||||
|
else
|
||||||
echo "Nothing to do for premk()"
|
echo "Nothing to do for premk()"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/ \
|
./configure --prefix=/usr \
|
||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
--sbindir=/sbin \
|
--sbindir=/sbin \
|
||||||
--enable-zlib
|
--enable-zlib-dynamic
|
||||||
make -j $NUMCPU DOCBOOKTOMAN=""
|
make -j $NUMCPU DOCBOOKTOMAN=true
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT INSTALL=install install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
119
BaseBuild/Basesys/mpc
Normal file
119
BaseBuild/Basesys/mpc
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/BaseBuild/toolchain/mpc $
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: mpc
|
||||||
|
#Quelle der Source Archive: http://www.multiprecision.org/
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Library zur Berechnung von Komplexen Zahlen mit hoher präzition und
|
||||||
|
#korrekter rundung
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author: kueller $
|
||||||
|
#Datum der letzten Änderung: $Date: 2011-02-25 12:22:50 +0100 (Fr, 25. Feb 2011) $
|
||||||
|
#Version der Datei: $Rev: 5996 $
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
echo "Nothing to do for premk()"
|
||||||
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--host=${TARGET32}
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
|
||||||
|
make distclean
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/${LIBDIR} ${BUILDOPTIONS}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/${LIBDIR}
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
echo "Nothing to do for postmk()"
|
||||||
|
}
|
@ -96,11 +96,9 @@ mk32() {
|
|||||||
mk() {
|
mk() {
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
CXX="g++ -isystem /usr/include ${BUILDOPTIONS}" \
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
LDFLAGS="-Wl,-rpath-link,/$LIBDIR ${BUILDOPTIONS}" \
|
LDFLAGS="-Wl,-rpath-link,/${LIBDIR} ${BUILDOPTIONS}" \
|
||||||
../mpfr*/configure --host=$TARGET \
|
../mpfr*/configure --prefix=/usr \
|
||||||
--build=$HOSTSYS \
|
--libdir=/usr/${LIBDIR}\
|
||||||
--prefix=/usr \
|
|
||||||
--libdir=/usr/$LIBDIR \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
|
||||||
CheckError "Configurescript failed !" 1
|
CheckError "Configurescript failed !" 1
|
||||||
|
@ -81,31 +81,53 @@ touch $LFSSOURCE/$SRCPATH/multiarch_wrapper-$VERSION.tar.bz2
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/bin
|
mkdir -p $TMPROOT/usr/bin
|
||||||
cat > /tmp/multiarch_wrapper.c << "EOF"
|
cat > /tmp/multiarch_wrapper.c << "EOF"
|
||||||
#include <unistd.h>
|
#define _GNU_SOURCE
|
||||||
#include <stdlib.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#ifndef USE_ARCH
|
#include <errno.h>
|
||||||
#define USE_ARCH "64"
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef DEF_SUFFIX
|
||||||
|
# define DEF_SUFFIX "64"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *filename;
|
char *filename;
|
||||||
char *use_arch;
|
char *suffix;
|
||||||
|
|
||||||
if(!(use_arch = getenv("USE_ARCH")))
|
if(!(suffix = getenv("USE_ARCH")))
|
||||||
use_arch = USE_ARCH;
|
if(!(suffix = getenv("BUILDENV")))
|
||||||
|
suffix = DEF_SUFFIX;
|
||||||
|
|
||||||
filename = (char *) malloc(strlen(argv[0]) + strlen(use_arch) + 2);
|
if (asprintf(&filename, "%s-%s", argv[0], suffix) < 0) {
|
||||||
strcpy(filename, argv[0]);
|
|
||||||
strcat(filename, "-");
|
|
||||||
strcat(filename, use_arch);
|
|
||||||
|
|
||||||
execvp(filename, argv);
|
|
||||||
perror(argv[0]);
|
perror(argv[0]);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int status = EXIT_FAILURE;
|
||||||
|
pid_t pid = fork();
|
||||||
|
|
||||||
|
if (pid == 0) {
|
||||||
|
execvp(filename, argv);
|
||||||
|
perror(filename);
|
||||||
|
} else if (pid < 0) {
|
||||||
|
perror(argv[0]);
|
||||||
|
} else {
|
||||||
|
if (waitpid(pid, &status, 0) != pid) {
|
||||||
|
status = EXIT_FAILURE;
|
||||||
|
perror(argv[0]);
|
||||||
|
} else {
|
||||||
|
status = WEXITSTATUS(status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
free(filename);
|
free(filename);
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -90,8 +90,9 @@ mk32() {
|
|||||||
--libdir=/lib \
|
--libdir=/lib \
|
||||||
--with-shared \
|
--with-shared \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
--enable-widec
|
--enable-widec \
|
||||||
make
|
--with-manpage-format=normal
|
||||||
|
make -j $NUMCPU
|
||||||
make install
|
make install
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
mv -v /usr/bin/ncursesw5-config{,-32}
|
mv -v /usr/bin/ncursesw5-config{,-32}
|
||||||
@ -103,19 +104,15 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=/lib64"
|
|
||||||
else
|
|
||||||
ADDOPTIONS="--libdir=/lib"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
||||||
CXX="g++ ${BUILDOPTIONS} -fPIC" \
|
CXX="g++ ${BUILDOPTIONS} -fPIC" \
|
||||||
../ncurses*/configure --prefix=/usr \
|
../ncurses*/configure --prefix=/usr \
|
||||||
$ADDOPTIONS \
|
--libdir=/${LIBDIR} \
|
||||||
--with-shared \
|
--with-shared \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
--enable-widec
|
--enable-widec \
|
||||||
make
|
--with-manpage-format=normal
|
||||||
|
make -j $NUMCPU
|
||||||
make install
|
make install
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
@ -148,7 +145,6 @@ postmk() {
|
|||||||
ln -sfv libncursesw.a /usr/lib/libcursesw.a
|
ln -sfv libncursesw.a /usr/lib/libcursesw.a
|
||||||
ln -sfv libncurses.a /usr/lib/libcurses.a
|
ln -sfv libncurses.a /usr/lib/libcurses.a
|
||||||
ln -sfv libncurses++w.a /usr/lib/libncurses++.a
|
ln -sfv libncurses++w.a /usr/lib/libncurses++.a
|
||||||
#ln -sfv ncursesw5-config-32 /usr/bin/ncurses5-config-32
|
|
||||||
ln -sfv ../../usr/share/terminfo /usr/lib/terminfo
|
ln -sfv ../../usr/share/terminfo /usr/lib/terminfo
|
||||||
#korrekt the files in $TMPROOT for 32 bit
|
#korrekt the files in $TMPROOT for 32 bit
|
||||||
mv -v $TMPROOT/lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a $TMPROOT/usr/lib
|
mv -v $TMPROOT/lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a $TMPROOT/usr/lib
|
||||||
@ -166,7 +162,6 @@ postmk() {
|
|||||||
ln -sfv libncursesw.a $TMPROOT/usr/lib/libcursesw.a
|
ln -sfv libncursesw.a $TMPROOT/usr/lib/libcursesw.a
|
||||||
ln -sfv libncurses.a $TMPROOT/usr/lib/libcurses.a
|
ln -sfv libncurses.a $TMPROOT/usr/lib/libcurses.a
|
||||||
ln -sfv libncurses++w.a $TMPROOT/usr/lib/libncurses++.a
|
ln -sfv libncurses++w.a $TMPROOT/usr/lib/libncurses++.a
|
||||||
#ln -sfv ncursesw5-config-32 $TMPROOT/usr/bin/ncurses5-config-32
|
|
||||||
ln -sfv ../../usr/share/terminfo $TMPROOT/usr/lib/terminfo
|
ln -sfv ../../usr/share/terminfo $TMPROOT/usr/lib/terminfo
|
||||||
if [ $MK64BIT == "true" ]; then
|
if [ $MK64BIT == "true" ]; then
|
||||||
#Korrekt the files in Build System for 64 Bit
|
#Korrekt the files in Build System for 64 Bit
|
||||||
|
@ -88,6 +88,7 @@ mk() {
|
|||||||
yes ""|make config
|
yes ""|make config
|
||||||
make
|
make
|
||||||
make BASEDIR=$TMPROOT update
|
make BASEDIR=$TMPROOT update
|
||||||
|
rm $TMPROOT/bin/hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -76,7 +76,7 @@ mk() {
|
|||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr &&
|
./configure --prefix=/usr &&
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -73,12 +73,10 @@ SRCPATH=Base/Development
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mkdir -p $TMPROOT/usr/bin
|
mkdir -p $TMPROOT/usr/bin
|
||||||
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
sed -i -e '/^BUILD_ZLIB/s/True/False/' \
|
||||||
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
-e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
|
||||||
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
-e '/^LIB/s,\./zlib-src,/usr/lib,' \
|
||||||
sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
|
cpan/Compress-Raw-Zlib/config.in
|
||||||
-e '/^INCLUDE\|^LIB/ s|\./zlib-src|/usr/include|' \
|
|
||||||
ext/Compress/Raw/Zlib/config.in
|
|
||||||
if [ ! -f /etc/hosts ]; then
|
if [ ! -f /etc/hosts ]; then
|
||||||
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
||||||
fi
|
fi
|
||||||
@ -94,19 +92,18 @@ mk32() {
|
|||||||
-Dusethreads \
|
-Dusethreads \
|
||||||
-Duseshrplib
|
-Duseshrplib
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
mv $TMPROOT/usr/bin/perl{,-32}
|
mv $TMPROOT/usr/bin/perl{,-32}
|
||||||
mv $TMPROOT/usr/bin/perl5.10.0{,-32}
|
mv $TMPROOT/usr/bin/perl5.12.2{,-32}
|
||||||
rm -r $MAKEDIR/perl-*
|
rm -r $MAKEDIR/perl-*
|
||||||
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/perl-*.tar*
|
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/perl-*.tar*
|
||||||
cd $MAKEDIR/perl*
|
cd $MAKEDIR/perl*
|
||||||
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
sed -i -e '/^BUILD_ZLIB/s/True/False/' \
|
||||||
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
-e '/^INCLUDE/s,\./zlib-src,/usr/include,' \
|
||||||
sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
|
-e '/^LIB/s,\./zlib-src,/usr/lib,' \
|
||||||
-e '/^INCLUDE\|^LIB/ s|\./zlib-src|/usr/include|' \
|
cpan/Compress-Raw-Zlib/config.in
|
||||||
ext/Compress/Raw/Zlib/config.in
|
|
||||||
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-Configure_multilib-?.patch.*
|
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-Configure_multilib-?.patch.*
|
||||||
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-libc-*.patch*
|
|
||||||
sed -i "/libc/s@/lib@/lib64@" hints/linux.sh
|
sed -i "/libc/s@/lib@/lib64@" hints/linux.sh
|
||||||
echo 'installstyle="lib64/perl5"' >>hints/linux.sh
|
echo 'installstyle="lib64/perl5"' >>hints/linux.sh
|
||||||
}
|
}
|
||||||
@ -118,20 +115,21 @@ mk() {
|
|||||||
-Dman3dir=/usr/share/man/man3 \
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
-Dpager="/bin/less -isR" \
|
-Dpager="/bin/less -isR" \
|
||||||
-Dlibpath="/usr/local/$LIBDIR /$LIBDIR /usr/$LIBDIR" \
|
-Dlibpath="/usr/local/$LIBDIR /$LIBDIR /usr/$LIBDIR" \
|
||||||
-Dcc="gcc -m$UARCH" \
|
-Dcc="gcc -m${UARCH}" \
|
||||||
-Dusethreads \
|
-Dusethreads \
|
||||||
-Duseshrplib
|
-Duseshrplib
|
||||||
make
|
make -j $NUMCPU
|
||||||
MakeCheck test
|
MakeCheck -j $NUMCPU test
|
||||||
|
make install
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
if [ ${MK64BIT} == "true" ]; then
|
||||||
mv $TMPROOT/usr/bin/perl{,-64}
|
mv $TMPROOT/usr/bin/perl{,-64}
|
||||||
mv $TMPROOT/usr/bin/perl5.10.0{,-64}
|
mv $TMPROOT/usr/bin/perl5.12.2{,-64}
|
||||||
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl
|
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl
|
||||||
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl5.10.0
|
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl5.12.2
|
||||||
else
|
else
|
||||||
echo "Nothing to do for postmk() "
|
echo "Nothing to do for postmk() "
|
||||||
fi
|
fi
|
||||||
|
@ -88,16 +88,10 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
# Hier die ./configure --build=$HOSTSYS --target=$HOSTSYS-Optionen eintragen.
|
USE_ARCH=$UARCH \
|
||||||
# Den \ nicht vergessen !
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
../pkgconfig*/configure --build=$TARGET \
|
../pkgconfig*/configure --prefix=/usr \
|
||||||
--target=$TARGET \
|
--with-pc-path=/usr/share/pkgconfig
|
||||||
--prefix=/usr
|
|
||||||
|
|
||||||
CheckError "Configurescript failed !" 1
|
|
||||||
|
|
||||||
# Make-Optionen eintragen
|
|
||||||
USE_ARCH=$UARCH CC="gcc ${BUILDOPTIONS}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
|
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
CheckError "Makeprocess failed !" 1
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
@ -109,8 +103,13 @@ mk() {
|
|||||||
postmk() {
|
postmk() {
|
||||||
cd ../pkgconfig*
|
cd ../pkgconfig*
|
||||||
rm -r ../Build-pkgconfig
|
rm -r ../Build-pkgconfig
|
||||||
GetSVN Viitor_pkgconfig $TMPROOT
|
if [ -d /var/install/subversion* ]; then
|
||||||
|
GetGit Viitor_pkgconfig $TMPROOT
|
||||||
|
fi
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share/man
|
mv $TMPROOT/usr/man $TMPROOT/usr/share/man
|
||||||
ln -s pkg-config $TMPROOT/usr/bin/pkgconfig
|
ln -s pkg-config $TMPROOT/usr/bin/pkgconfig
|
||||||
|
if [ ! -d /var/install/pkgconfig* ]; then
|
||||||
|
echo "export PKG_CONFIG_PATH=\"/usr/lib/pkgconfig\"" >>/root/.bash_profile
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
@ -85,5 +85,5 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_rpc $TMPROOT
|
GetGit Viitor_rpc $TMPROOT
|
||||||
}
|
}
|
||||||
|
149
BaseBuild/Basesys/ppl
Normal file
149
BaseBuild/Basesys/ppl
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/BaseBuild/toolchain/ppl $
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: ppl
|
||||||
|
#Quelle der Source Archive: http://www.cs.unipr.it/ppl
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Parma Polyhedra Library
|
||||||
|
#Numerische Abstractionen speziell für die analyse und abstraktion
|
||||||
|
#von komplexen Systemen
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author: kueller $
|
||||||
|
#Datum der letzten Änderung: $Date: 2011-02-25 12:22:50 +0100 (Fr, 25. Feb 2011) $
|
||||||
|
#Version der Datei: $Rev: 5996 $
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
sed -i "s/__GMP_BITS_PER_MP_LIMB/GMP_LIMB_BITS/g" configure
|
||||||
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
CPPFLAGS=-fexceptions \
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--host=${TARGET32} \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-optimization
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
mv -v $TMPROOT/usr/bin/ppl-config{,-32}
|
||||||
|
mv -v $TMPROOT/usr/include/ppl{,-32}.hh
|
||||||
|
make distclean
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
CPPFLAGS=-fexceptions \
|
||||||
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS}" \
|
||||||
|
LDFLAGS="-Wl,-rpath-link,/${LIBDIR} ${BUILDOPTIONS}" \
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/${LIBDIR} \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-optimization
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
MakeCheck -j $NUMCPU check
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
|
mv -v $TMPROOT/usr/bin/ppl-config{,-64}
|
||||||
|
ln -svf multiarch_wrapper $TMPROOT/usr/bin/ppl-config
|
||||||
|
mv -v $TMPROOT/usr/include/ppl{,-64}.hh
|
||||||
|
cat > $TMPROOT/usr/include/ppl.hh << "EOF"
|
||||||
|
/* ppl.hh - Stub Header */
|
||||||
|
#ifndef __STUB__PPL_HH__
|
||||||
|
#define __STUB__PPL_HH__
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || \
|
||||||
|
defined(__sparc64__) || \
|
||||||
|
defined(__arch64__) || \
|
||||||
|
defined(__powerpc64__) || \
|
||||||
|
defined (__s390x__)
|
||||||
|
# include "ppl-64.h"
|
||||||
|
#else
|
||||||
|
# include "ppl-32.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __STUB__PPL_HH__ */
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
}
|
@ -70,15 +70,18 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
sed -e "s/CFLAGS = -O2/CFLAGS = $BUILDOPTIONS/" Makefile >Makefile2
|
echo "Nothing to do for premk()"
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make -j $NUMCPU LDLIBS=-lncurses
|
CC="gcc $BUILDOPTIONS" \
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr install
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
|
USE_ARCH=$UARCH \
|
||||||
|
./configure --prefix=/usr
|
||||||
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
echo "Nothing to do for postmk()"
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
|
||||||
}
|
}
|
@ -69,8 +69,7 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
sed -e "s/-O3/$CFLAGS/" Makefile >Makefile2
|
sed -i -r '/^-include/s/\*(.*)/proc\1 ps\1/' Makefile
|
||||||
mv Makefile2 Makefile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
@ -80,15 +79,14 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="lib64=lib64"
|
|
||||||
fi
|
|
||||||
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}" m64=""
|
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}" m64=""
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install $ADDOPTIONS
|
make -j $NUMCPU DESTDIR=$TMPROOT install lib64=${LIBDIR}
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_procps $TMPROOT
|
if [ -f /usr/bin/svn ]; then
|
||||||
|
GetGit Viitor_procps $TMPROOT
|
||||||
|
fi
|
||||||
cd $TMPROOT
|
cd $TMPROOT
|
||||||
cd bin
|
cd bin
|
||||||
ln kill skill
|
ln kill skill
|
||||||
|
@ -77,7 +77,6 @@ SRCPATH=Base/Lib
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir ../build-readline
|
mkdir ../build-readline
|
||||||
cd ../build-readline
|
cd ../build-readline
|
||||||
sed -i 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncursesw:' support/shobj-conf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
@ -86,11 +85,11 @@ mk32() {
|
|||||||
CXX="g++ ${BUILDOPTIONS32} -fPIC" \
|
CXX="g++ ${BUILDOPTIONS32} -fPIC" \
|
||||||
../readline*/configure --prefix=/usr \
|
../readline*/configure --prefix=/usr \
|
||||||
--libdir=/lib
|
--libdir=/lib
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU SHLIB_LIBS=-lncurses
|
||||||
make -j $NUMCPU install
|
make install
|
||||||
make -j $NUMCPU install-doc
|
make install-doc
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install-doc
|
make DESTDIR=$TMPROOT install-doc
|
||||||
mv -v /lib/lib{readline,history}.a /usr/lib
|
mv -v /lib/lib{readline,history}.a /usr/lib
|
||||||
rm -v /lib/lib{readline,history}.so
|
rm -v /lib/lib{readline,history}.so
|
||||||
ln -svf ../../lib/libreadline.so.6 /usr/lib/libreadline.so
|
ln -svf ../../lib/libreadline.so.6 /usr/lib/libreadline.so
|
||||||
@ -108,13 +107,13 @@ mk32() {
|
|||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
||||||
CXX="g++ ${BUILDOPTIONS} -fPIC" \
|
CXX="g++ ${BUILDOPTIONS} -fPIC" \
|
||||||
../readline*/configure --libdir=/$LIBDIR \
|
../readline*/configure --libdir=/${LIBDIR} \
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU SHLIB_LIBS=-lncurses &&
|
||||||
make -j $NUMCPU install &&
|
make install &&
|
||||||
make -j $NUMCPU install-doc &&
|
make install-doc &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install &&
|
make DESTDIR=$TMPROOT install &&
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install-doc
|
make DESTDIR=$TMPROOT install-doc
|
||||||
mv -v /$LIBDIR/lib{readline,history}.a /usr/$LIBDIR
|
mv -v /$LIBDIR/lib{readline,history}.a /usr/$LIBDIR
|
||||||
rm -v /$LIBDIR/lib{readline,history}.so
|
rm -v /$LIBDIR/lib{readline,history}.so
|
||||||
ln -svf ../../$LIBDIR/libreadline.so.6 /usr/$LIBDIR/libreadline.so
|
ln -svf ../../$LIBDIR/libreadline.so.6 /usr/$LIBDIR/libreadline.so
|
||||||
|
88
BaseBuild/Basesys/reiser4progs
Normal file
88
BaseBuild/Basesys/reiser4progs
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: reiserfsprogs
|
||||||
|
#Quelle der Source Archive: http://www.kernel.org/pub/linux/utils/fs/reiserfs/
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Tools zur Verwaltung und Erzeugung des reiserfs Filesystems
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author$
|
||||||
|
#Datum der letzten Änderung: $Date$
|
||||||
|
#Version der Datei: $Revision$
|
||||||
|
#
|
||||||
|
|
||||||
|
SRCPATH=Base/System
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
echo "Nothing to do for pemk()"
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
|
./configure --host=$TARGET \
|
||||||
|
--prefix=/ \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--includedir=/usr/include
|
||||||
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
mv $TMPROOT/share/* $TMPROOT/usr/share
|
||||||
|
rm -r $TMPROOT/share
|
||||||
|
}
|
@ -72,15 +72,17 @@ premk() {
|
|||||||
mkdir -p $TMPROOT/usr/share/man/man8 \
|
mkdir -p $TMPROOT/usr/share/man/man8 \
|
||||||
$TMPROOT/usr/share/man/man5 \
|
$TMPROOT/usr/share/man/man5 \
|
||||||
$TMPROOT/usr/sbin
|
$TMPROOT/usr/sbin
|
||||||
# InstallOldKernelh 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
make -j $NUMCPU CC="gcc ${BUILDOPTIONS}"
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
make -j $NUMCPU BINDIR=$TMPROOT/usr/sbin \
|
./configure --prefix=/usr \
|
||||||
MANDIR=$TMPROOT/usr/share/man install
|
--sbindir=/sbin \
|
||||||
|
--libdir=/usr/${LIBDIR}
|
||||||
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_sysklogd $TMPROOT
|
GetGit Viitor_sysklogd $TMPROOT
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/SysBuild/xserv/bitmap $
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/BaseBuild/Basesys/patch $
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -55,35 +55,29 @@
|
|||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
#
|
||||||
# kümmern
|
#Module zur Erstellung des Packetes: patch
|
||||||
|
#Quelle der Source Archive: ftp://ftp.gnu.org/gnu/patch
|
||||||
#Module zur Erstellung des Packetes: bitmap
|
|
||||||
#Quelle der Source Archive: www.x.org
|
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#Das Patch tool aus dem gnu project. Dient zum Updaten von Sourcepacketen.
|
||||||
#
|
#
|
||||||
#
|
#Letzte Änderung von: $Author: kueller $
|
||||||
#Letzte Änderung von: $Author$
|
#Datum der letzten Änderung: $Date: 2011-03-03 16:56:49 +0100 (Do, 03. Mär 2011) $
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 15:58:25 +0200 (Fr, 02 Mai 2008) $
|
#Version der Datei: $Revision: 6021 $
|
||||||
#Version der Datei: $Rev$
|
|
||||||
#
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=XServ/App
|
SRCPATH=Base/Development
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
echo "Nothing to do for premk()"
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
./configure --prefix=/usr \
|
||||||
./configure --host=$TARGET \
|
--disable-pic-port \
|
||||||
--localstatedir=/var \
|
--disable-pic16-port &&
|
||||||
--infodir=/usr/share/info \
|
make -j $NUMCPU &&
|
||||||
--mandir=/usr/share/man \
|
|
||||||
--prefix=/usr/X11R7
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
@ -75,12 +75,13 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --host=$TARGET \
|
./configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
--enable-html
|
--enable-html
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
make -j $NUMCPU html
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
|
make -j $NUMCPU -C doc DESTDIR=$TMPROOT install-html
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -69,8 +69,8 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
touch /usr/bin/passwd /var/run/utmp /var/log/{btmp,lastlog,wtmp}
|
# touch /usr/bin/passwd /var/run/utmp /var/log/{btmp,lastlog,wtmp}
|
||||||
chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}
|
# chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}
|
||||||
mkdir ../build-shadow
|
mkdir ../build-shadow
|
||||||
cd ../build-shadow
|
cd ../build-shadow
|
||||||
}
|
}
|
||||||
@ -78,13 +78,12 @@ premk() {
|
|||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
CXX="g++ ${BUILDOPTIONS32}" \
|
CXX="g++ ${BUILDOPTIONS32}" \
|
||||||
../shadow*/configure --prefix=/usr \
|
../shadow*/configure --sysconfdir=/etc \
|
||||||
--libdir=/lib \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--enable-shared \
|
|
||||||
--with-libpam \
|
--with-libpam \
|
||||||
--without-audit \
|
--without-audit \
|
||||||
--without-selinux \
|
--without-selinux \
|
||||||
|
--prefix=/usr \
|
||||||
|
--enable-shared \
|
||||||
--with-libcrack
|
--with-libcrack
|
||||||
sed -i 's/groups$(EXEEXT) //' src/Makefile
|
sed -i 's/groups$(EXEEXT) //' src/Makefile
|
||||||
find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \;
|
find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \;
|
||||||
@ -100,22 +99,21 @@ mk32() {
|
|||||||
rm -r ../build-shadow
|
rm -r ../build-shadow
|
||||||
mkdir ../build-shadow
|
mkdir ../build-shadow
|
||||||
cd ../build-shadow
|
cd ../build-shadow
|
||||||
GenDynLib32 $TMPROOT/lib/libshadow.a 4.1.2.2
|
GenDynLib32 $TMPROOT/lib/libshadow.a 4.1.4.2
|
||||||
GenDynLib32 $TMPROOT/lib/libmisc.a 4.1.2.2
|
GenDynLib32 $TMPROOT/lib/libmisc.a 4.1.4.2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
||||||
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
||||||
../shadow*/configure --host=$TARGET \
|
../shadow*/configure --sysconfdir=/etc \
|
||||||
--prefix=/usr \
|
|
||||||
--libdir=/$LIBDIR \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--enable-shared \
|
|
||||||
--with-libpam \
|
--with-libpam \
|
||||||
--without-audit \
|
--without-audit \
|
||||||
--without-selinux \
|
--without-selinux \
|
||||||
|
--libdir=/$LIBDIR \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--enable-shared \
|
||||||
--with-libcrack
|
--with-libcrack
|
||||||
sed -i 's/groups$(EXEEXT) //' src/Makefile
|
sed -i 's/groups$(EXEEXT) //' src/Makefile
|
||||||
find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \;
|
find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \;
|
||||||
@ -131,21 +129,33 @@ mk() {
|
|||||||
fi
|
fi
|
||||||
cp lib/.libs/libshadow.a $TMPROOT/$LIBDIR
|
cp lib/.libs/libshadow.a $TMPROOT/$LIBDIR
|
||||||
cp libmisc/libmisc.a $TMPROOT/$LIBDIR
|
cp libmisc/libmisc.a $TMPROOT/$LIBDIR
|
||||||
GenDynLib $TMPROOT/$LIBDIR/libshadow.a 4.1.2.2
|
GenDynLib $TMPROOT/$LIBDIR/libshadow.a 4.1.4.2
|
||||||
GenDynLib $TMPROOT/$LIBDIR/libmisc.a 4.1.2.2
|
GenDynLib $TMPROOT/$LIBDIR/libmisc.a 4.1.4.2
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/{etc,bin,var,usr} $TMPROOT/usr/lib $TMPROOT/var/{log,run}
|
mkdir -p $TMPROOT/{etc,bin,var,usr} $TMPROOT/usr/lib $TMPROOT/var/{log,run}
|
||||||
cd ../shadow*
|
cd ../shadow*
|
||||||
cp etc/{limits,login.access} $TMPROOT/etc
|
cp etc/{limits,login.access} $TMPROOT/etc
|
||||||
sed -i -e "s%/var/spool/mail%/var/mail%" \
|
sed -i -e 's%/var/spool/mail%/var/mail%' \
|
||||||
-e "s%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%" $TMPROOT/etc/login.defs
|
-e 's@#\(ENCRYPT_METHOD \).*@\1MD5@' $TMPROOT/etc/login.defs
|
||||||
FUNCTIONS="LASTLOG_ENAB MAIL_CHECK_ENAB PORTTIME_CHECKS_ENAB CONSOLE MOTD_FILE
|
FUNCTIONS="FAILLOG_ENAB \
|
||||||
NOLOGINS_FILE PASS_MIN_LEN SU_WHEEL_ONLY MD5_CRYPT_ENAB CONSOLE_GROUPS
|
LASTLOG_ENAB \
|
||||||
ENVIRON_FILE ULIMIT ENV_TZ ENV_HZ ENV_SUPATH ENV_PATH QMAIL_DIR MAIL_DIR
|
MAIL_CHECK_ENAB \
|
||||||
MAIL_FILE CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE OBSCURE_CHECKS_ENAB
|
OBSCURE_CHECKS_ENAB \
|
||||||
CRACKLIB_DICTPATH PASS_CHANGE_TRIES PASS_ALWAYS"
|
PORTTIME_CHECKS_ENAB \
|
||||||
|
QUOTAS_ENAB \
|
||||||
|
MOTD_FILE \
|
||||||
|
FTMP_FILE \
|
||||||
|
NOLOGINS_FILE \
|
||||||
|
ENV_HZ \
|
||||||
|
PASS_MIN_LEN \
|
||||||
|
SU_WHEEL_ONLY \
|
||||||
|
CRACKLIB_DICTPATH \
|
||||||
|
PASS_CHANGE_TRIES \
|
||||||
|
PASS_ALWAYS_WARN \
|
||||||
|
CHFN_AUTH \
|
||||||
|
ENVIRON_FILE "
|
||||||
for function in $FUNCTIONS; do
|
for function in $FUNCTIONS; do
|
||||||
sed -i -e "s/^$function/# &/" $TMPROOT/etc/login.defs
|
sed -i -e "s/^$function/# &/" $TMPROOT/etc/login.defs
|
||||||
done
|
done
|
||||||
|
@ -90,5 +90,5 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_sysvinit $TMPROOT
|
GetGit Viitor_sysvinit $TMPROOT
|
||||||
}
|
}
|
||||||
|
@ -73,10 +73,11 @@ SRCPATH=Base/Utilities
|
|||||||
#(( MKPKG = $MKPKG | 16 ))
|
#(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothin to do for premk"
|
echo "Nothing to do for premk()"
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
|
FORCE_UNSAFE_CONFIGURE=1 \
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
@ -86,5 +87,5 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_tar $TMPROOT
|
GetGit Viitor_tar $TMPROOT
|
||||||
}
|
}
|
||||||
|
@ -86,12 +86,9 @@ mk() {
|
|||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
if [ -d $TMPROOT/usr/bin ]; then
|
if [ -d $TMPROOT/usr/bin ]; then
|
||||||
cd $TMPROOT/usr/bin
|
mkdir -p $TMPROOT/bin
|
||||||
mkdir ../../bin
|
mv $TMPROOT/usr/bin/tcsh $TMPROOT/bin
|
||||||
mv tcsh ../../bin/
|
ln -s tcsh $TMPROOT/bin/csh
|
||||||
cd ..
|
rm -r $TMPROOT/usr/bin
|
||||||
rm -r bin
|
|
||||||
cd ../bin
|
|
||||||
ln -s tcsh csh
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,10 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
for k in $TMPROOT/usr/share/info /usr/share/info; do
|
pushd $TMPROOT/usr/share/info
|
||||||
cd $k
|
|
||||||
rm dir
|
rm dir
|
||||||
for f in *; do
|
for f in *; do
|
||||||
install-info $f dir 2>/dev/null
|
install-info $f dir 2>/dev/null
|
||||||
done
|
done
|
||||||
done
|
popd
|
||||||
}
|
}
|
||||||
|
@ -78,10 +78,14 @@ premk() {
|
|||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
CXX="g++ ${BUILDOPTIONS32}" \
|
CXX="g++ ${BUILDOPTIONS32}" \
|
||||||
|
USE_ARCH=32 \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--exec-prefix= \
|
--exec-prefix="" \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-libdir-name=lib
|
--libexecdir=/lib/udev \
|
||||||
|
--libdir=/lib \
|
||||||
|
--disable-extras \
|
||||||
|
--disable-introspection
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
make clean
|
make clean
|
||||||
@ -91,11 +95,15 @@ mk() {
|
|||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--exec_prefix= \
|
--exec_prefix="" \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-libdir-name=$LIBDIR
|
--libexecdir=/lib/udev \
|
||||||
|
--libdir=/${LIBDIR} \
|
||||||
|
--disable-extras \
|
||||||
|
--disable-introspection
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
|
install -dv $TMPROOT/lib/firmware
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
@ -118,7 +126,7 @@ postmk() {
|
|||||||
ln -s ../lib/udev/$i $TMPROOT/sbin/$i
|
ln -s ../lib/udev/$i $TMPROOT/sbin/$i
|
||||||
done
|
done
|
||||||
ln -s ../lib/udev/vol_id $TMPROOT/sbin/volume_id
|
ln -s ../lib/udev/vol_id $TMPROOT/sbin/volume_id
|
||||||
GetSVN Viitor_udev $TMPROOT
|
GetGit Viitor_udev $TMPROOT
|
||||||
if [ ! -d $TMPROOT/dev ]; then
|
if [ ! -d $TMPROOT/dev ]; then
|
||||||
mkdir $TMPROOT/dev
|
mkdir $TMPROOT/dev
|
||||||
fi
|
fi
|
||||||
|
@ -75,12 +75,9 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
|
||||||
fi
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
./configure $ADDOPTIONS \
|
./configure --libdir=\${prefix}/${LIBDIR} \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
--libexecdir=/$LIBDIR/upstart \
|
--libexecdir=/$LIBDIR/upstart \
|
||||||
--includedir=/usr/include \
|
--includedir=/usr/include \
|
||||||
@ -116,8 +113,6 @@ mk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_upstart $TMPROOT
|
GetGit Viitor_upstart $TMPROOT
|
||||||
mkdir $TMPROOT/etc/sysconfig
|
|
||||||
mv $TMPROOT/etc/dbus-1 $TMPROOT/etc/sysconfig
|
|
||||||
sed -i "s/on startup/on stopped mountfs/" $TMPROOT/etc/init/rc-sysinit.conf
|
sed -i "s/on startup/on stopped mountfs/" $TMPROOT/etc/init/rc-sysinit.conf
|
||||||
}
|
}
|
||||||
|
@ -69,11 +69,13 @@
|
|||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
sed -i 's%etc/adjtime%var/lib/hwclock/adjtime%' hwclock/hwclock.c
|
sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
|
||||||
|
hwclock/hwclock.c
|
||||||
|
mkdir -pv $TMPROOT/var/lib/hwclock
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc ${BUILDOPTIONS32} -L/lib64 -L/usr/lib64" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
./configure --enable-partx \
|
./configure --enable-partx \
|
||||||
--disable-wall \
|
--disable-wall \
|
||||||
--enable-write
|
--enable-write
|
||||||
@ -83,38 +85,22 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
./configure --libdir=/${LIBDIR} \
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS} -L/lib64 -L/usr/lib64" \
|
|
||||||
./configure $ADDOPTIONS \
|
|
||||||
--enable-partx \
|
--enable-partx \
|
||||||
--disable-wall \
|
--disable-wall \
|
||||||
--enable-write
|
--enable-write
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
cd sys-utils
|
#cd sys-utils
|
||||||
make rdev
|
#make rdev
|
||||||
cp rdev $TMPROOT/usr/sbin
|
#cp rdev $TMPROOT/usr/sbin
|
||||||
cd -
|
#cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/var/lib/hwclock
|
|
||||||
if [ ! -d $TMPROOT/bin ]; then
|
if [ ! -d $TMPROOT/bin ]; then
|
||||||
mkdir -p $TMPROOT/bin
|
mkdir -p $TMPROOT/bin
|
||||||
fi
|
fi
|
||||||
mv $TMPROOT/usr/bin/logger $TMPROOT/bin
|
mv $TMPROOT/usr/bin/logger $TMPROOT/bin
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
if [ ! -d $TMPROOT/lib64 ]; then
|
|
||||||
mkdir $TMPROOT/lib64
|
|
||||||
fi
|
|
||||||
mv $TMPROOT/usr/lib64/libblkid.so* $TMPROOT/lib64
|
|
||||||
mv $TMPROOT/usr/lib64/libuuid.so* $TMPROOT/lib64
|
|
||||||
cd $TMPROOT/usr/lib64
|
|
||||||
ln -s ../../lib64/libblkid.so.1.* libblkid.so.1
|
|
||||||
ln -s ../../lib64/libblkid.so.1.* libblkid.so
|
|
||||||
ln -s ../../lib64/libuuid.so.1.* libuuid.so.1
|
|
||||||
ln -s ../../lib64/libuuid.so.1.* libuuid.so
|
|
||||||
fi
|
|
||||||
}
|
}
|
@ -77,7 +77,6 @@ SRCPATH=Base/Utilities
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
||||||
echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -86,7 +85,8 @@ mk() {
|
|||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--enable-multibyte
|
--enable-multibyte
|
||||||
make -j $NUMCPU &&
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU prefix=$TMPROOT/usr localstatedir=$TMPROOT/var/lib/vim install
|
MakeCheck test
|
||||||
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
@ -95,7 +95,7 @@ postmk() {
|
|||||||
cd $TMPROOT
|
cd $TMPROOT
|
||||||
mkdir -p var/lib/vim
|
mkdir -p var/lib/vim
|
||||||
if [ -f /usr/bin/svn ]; then
|
if [ -f /usr/bin/svn ]; then
|
||||||
GetSVN Viitor_vim $TMPROOT
|
GetGit Viitor_vim $TMPROOT
|
||||||
fi
|
fi
|
||||||
cd $TMPROOT/usr/man/man1
|
cd $TMPROOT/usr/man/man1
|
||||||
for i in *; do
|
for i in *; do
|
||||||
|
@ -75,14 +75,12 @@ premk() {
|
|||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
./configure --host=$TARGET \
|
./configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--disable-iberty
|
--disable-iberty
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
echo "Nothing to do for postmk()"
|
||||||
mv $TMPROOT/usr/man $TMPROOT/usr/share
|
|
||||||
}
|
}
|
||||||
|
@ -77,16 +77,14 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
autoconf
|
|
||||||
CC="gcc ${BUILDOPTIONS32}" \
|
CC="gcc ${BUILDOPTIONS32}" \
|
||||||
CXX="g++ ${BUILDOPTIONS32}" \
|
CXX="g++ ${BUILDOPTIONS32}" \
|
||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --host=$TARGET32 \
|
./configure --host=$TARGET32 \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--enable-share-uuid=yes
|
--enable-lib64=yes
|
||||||
#sed -i -e "s%LIBTOOL.*$%LIBTOOL = /usr/bin/libtool --tag help%" include/builddefs
|
make -j $NUMCPU &&
|
||||||
make -j $NUMCPU USE_ARCH=$UARCH &&
|
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
PKG_LIB_DIR=$TMPROOT/usr/lib \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
@ -103,12 +101,25 @@ mk32() {
|
|||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/doc/xfsprogs \
|
||||||
USE_ARCH=$UARCH install-dev
|
USE_ARCH=$UARCH install-dev
|
||||||
|
if [ ! -d $TMPROOT/lib ]; then
|
||||||
|
mkdir $TMPROOT/lib
|
||||||
|
fi
|
||||||
|
cp libhandle/.libs/libhandle.so.1.* $TMPROOT/lib
|
||||||
|
LIBNAME=`ls libhandle/.libs/libhandle.so.1.*`
|
||||||
|
LIBNAME=`basename $LIBNAME`
|
||||||
|
ln -s $LIBNAME $TMPROOT/lib/libhandle.so.1
|
||||||
|
ln -s $LIBNAME $TMPROOT/lib/libhandle.so
|
||||||
|
rm $TMPROOT/usr/lib/libhandle.so*
|
||||||
rm $TMPROOT/usr/lib/libhandle.a
|
rm $TMPROOT/usr/lib/libhandle.a
|
||||||
cp libhandle/.libs/libhandle.a $TMPROOT/usr/lib
|
cp libhandle/.libs/libhandle.a $TMPROOT/lib
|
||||||
rm $TMPROOT/usr/lib/libhandle.la
|
rm $TMPROOT/usr/lib/libhandle.la
|
||||||
sed -e "s%^libdir.*$%libdir=\'/usr/lib\'%" \
|
sed -e "s%^libdir.*$%libdir=\'/lib\'%" \
|
||||||
libhandle/.libs/libhandle.la >$TMPROOT/usr/lib/libhandle.la
|
libhandle/.libs/libhandle.la >$TMPROOT/lib/libhandle.la
|
||||||
cp /libexec/{libdisk.a,libxcmd.a,libxfs.a,libxlog.a} $TMPROOT/usr/lib/
|
for i in xcmd xlog xfs; do
|
||||||
|
cd lib$i/.libs
|
||||||
|
tar -cf - lib$i.so*|tar -C $TMPROOT/usr/lib -xvf -
|
||||||
|
cd -
|
||||||
|
done
|
||||||
cd ..
|
cd ..
|
||||||
rm -r xfsprogs*
|
rm -r xfsprogs*
|
||||||
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/xfsprogs-*.tar.*
|
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/xfsprogs-*.tar.*
|
||||||
@ -117,9 +128,7 @@ mk32() {
|
|||||||
|
|
||||||
#Hier wird der Make Prozess der Sourcen definiert
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
autoconf
|
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDOPTIONS="--libdir=/usr/lib64"
|
|
||||||
mkdir -p $TMPROOT/usr/lib64 $TMPROOT/lib64
|
mkdir -p $TMPROOT/usr/lib64 $TMPROOT/lib64
|
||||||
fi
|
fi
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
@ -127,9 +136,10 @@ mk() {
|
|||||||
USE_ARCH=$UARCH \
|
USE_ARCH=$UARCH \
|
||||||
./configure --host=$TARGET \
|
./configure --host=$TARGET \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
$ADDOPTIONS \
|
--mandir=/usr/share/man \
|
||||||
--mandir=/usr/share/man
|
--libdir=/usr/${LIBDIR} \
|
||||||
make USE_ARCH=$UARCH
|
--enable-lib64=yes
|
||||||
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
make -j $NUMCPU PKG_BIN_DIR=$TMPROOT/usr/bin \
|
||||||
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
PKG_LIB_DIR=$TMPROOT/usr/$LIBDIR \
|
||||||
PKG_SBIN_DIR=$TMPROOT/sbin \
|
PKG_SBIN_DIR=$TMPROOT/sbin \
|
||||||
@ -146,26 +156,31 @@ mk() {
|
|||||||
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
PKG_MAN_DIR=$TMPROOT/usr/share/man \
|
||||||
PKG_DOC_DIR=$TMPROOT/usr/doc/xfsprogs \
|
PKG_DOC_DIR=$TMPROOT/usr/doc/xfsprogs \
|
||||||
USE_ARCH=$UARCH install-dev
|
USE_ARCH=$UARCH install-dev
|
||||||
rm $TMPROOT/usr/$LIBDIR/libhandle.a
|
if [ ! -d $TMPROOT/${LIBDIR} ]; then
|
||||||
cp libhandle/.libs/libhandle.a $TMPROOT/usr/$LIBDIR
|
mkdir $TMPROOT/${LIBDIR}
|
||||||
|
fi
|
||||||
|
cp libhandle/.libs/libhandle.so.1.* $TMPROOT/${LIBDIR}
|
||||||
|
LIBNAME=`ls libhandle/.libs/libhandle.so.1.*`
|
||||||
|
LIBNAME=`basename $LIBNAME`
|
||||||
|
ln -s $LIBNAME $TMPROOT/${LIBDIR}/libhandle.so.1
|
||||||
|
ln -s $LIBNAME $TMPROOT/${LIBDIR}/libhandle.so
|
||||||
|
rm $TMPROOT/usr/${LIBDIR}/libhandle.so*
|
||||||
|
rm $TMPROOT/usr/${LIBDIR}/libhandle.a
|
||||||
|
cp libhandle/.libs/libhandle.a $TMPROOT/${LIBDIR}
|
||||||
rm $TMPROOT/usr/lib/libhandle.la
|
rm $TMPROOT/usr/lib/libhandle.la
|
||||||
sed -e "s%^libdir.*$%libdir=\'/usr/$LIBDIR\'%" \
|
sed -e "s%^libdir.*$%libdir=\'/$LIBDIR\'%" \
|
||||||
libhandle/.libs/libhandle.la >$TMPROOT/usr/$LIBDIR/libhandle.la
|
libhandle/.libs/libhandle.la >$TMPROOT/usr/$LIBDIR/libhandle.la
|
||||||
cp /libexec/{libdisk.a,libxcmd.a,libxfs.a,libxlog.a} $TMPROOT/usr/$LIBDIR/
|
for i in xcmd xlog xfs; do
|
||||||
|
cd lib$i/.libs
|
||||||
|
tar -cf - lib$i.so*|tar -C $TMPROOT/usr/${LIBDIR} -xvf -
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
cd include
|
||||||
|
tar -cf - .|tar -C $TMPROOT/usr/include/xfs -xf -
|
||||||
}
|
}
|
||||||
|
|
||||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
#in $TMPROOT noch einiges korrigieren
|
#in $TMPROOT noch einiges korrigieren
|
||||||
postmk() {
|
postmk() {
|
||||||
# rm $TMPROOT/usr/lib/libhandle.a
|
echo "Nothing to do for postmk()"
|
||||||
# cp libhandle/.libs/libhandle.a $TMPROOT/usr/lib
|
|
||||||
rm $TMPROOT/usr/lib/libhandle.la
|
|
||||||
sed -e "s%^libdir.*$%libdir=\'/usr/lib\'%" \
|
|
||||||
libhandle/.libs/libhandle.la >$TMPROOT/usr/lib/libhandle.la
|
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
|
||||||
rm $TMPROOT/usr/lib64/libhandle.la
|
|
||||||
sed -e "s%^ibdir.*$%libdir=\'/usr/lib64\'%" \
|
|
||||||
libhandle/.libs/libhandle.la >$TMPROOT/usr/lib64/libhandle.la
|
|
||||||
fi
|
|
||||||
cp /libexec/{libdisk.a,libxcmd.a,libxfs.a,libxlog.a} $TMPROOT/usr/lib/
|
|
||||||
}
|
}
|
||||||
|
@ -78,14 +78,13 @@ premk() {
|
|||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
CXX="g++ ${BUILDOPTIONS}" \
|
||||||
./configure --host=$BUILDSYS \
|
./configure --prefix=/usr
|
||||||
--prefix=/usr
|
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
|
||||||
< Makefile >Makefile.install sed -e "s/^prefix.*= /prefix = \$(DESTDIR)/g"
|
sed -i "s/^prefix.*= /prefix = \$(DESTDIR)/g" Makefile
|
||||||
make -j $NUMCPU -f Makefile.install DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_xinetd $TMPROOT
|
GetGit Viitor_xinetd $TMPROOT
|
||||||
}
|
}
|
||||||
|
@ -91,6 +91,10 @@ mk32() {
|
|||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
mv $TMPROOT/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} $TMPROOT/bin
|
mv $TMPROOT/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} $TMPROOT/bin
|
||||||
|
if [ ! -d $TMPROOT/usr/lib ]; then
|
||||||
|
mkdir $TMPROOT/usr/lib
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/lib/liblzma.a $TMPROOT/usr/lib
|
||||||
cd ../xz*
|
cd ../xz*
|
||||||
rm -r ../build-xz
|
rm -r ../build-xz
|
||||||
mkdir ../build-xz
|
mkdir ../build-xz
|
||||||
@ -98,18 +102,16 @@ mk32() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ $MK64BIT == "true" ]; then
|
CC="gcc ${BUILDOPTIONS} -fPIC" \
|
||||||
ADDOPTIONS="--libdir=/lib64"
|
../xz*/configure --libdir=/${LIBDIR} \
|
||||||
else
|
|
||||||
ADDOPTIONS="--libdir=/lib"
|
|
||||||
fi
|
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
|
||||||
../xz*/configure $ADDOPTIONS \
|
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
mv $TMPROOT/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} $TMPROOT/bin
|
mv $TMPROOT/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} $TMPROOT/bin
|
||||||
|
if [ ! -d $TMPROOT/usr/${LIBDIR} ]; then
|
||||||
|
mkdir $TMPROOT/usr/${LIBDIR}
|
||||||
|
fi
|
||||||
|
mv $TMPROOT/${LIBDIR}/liblzma.a $TMPROOT/usr/${LIBDIR}
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
@ -84,8 +84,7 @@ mk() {
|
|||||||
# Hier die ./configure --build=$HOSTSYS --target=$HOSTSYS-Optionen eintragen.
|
# Hier die ./configure --build=$HOSTSYS --target=$HOSTSYS-Optionen eintragen.
|
||||||
# Den \ nicht vergessen !
|
# Den \ nicht vergessen !
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CC="gcc ${BUILDOPTIONS}" \
|
||||||
./configure --host=$TARGET \
|
./configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--mandir=/usr/man
|
--mandir=/usr/man
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ premk() {
|
|||||||
mk32() {
|
mk32() {
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
CXX="g++ -isystem /usr/include ${BUILDOPTIONS32}" \
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS32}" \
|
||||||
LDFLAGS="Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
LDFLAGS="-Wl,-rpath-link,/lib ${BUILDOPTIONS32}" \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--shared
|
--shared
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
@ -119,6 +119,7 @@ mk() {
|
|||||||
fi
|
fi
|
||||||
CC="gcc -isystem /usr/include ${BUILDOPTIONS} -fPIC" \
|
CC="gcc -isystem /usr/include ${BUILDOPTIONS} -fPIC" \
|
||||||
CXX="g++ -isystem /usr/include ${BUILDOPTIONS} -fPIC" \
|
CXX="g++ -isystem /usr/include ${BUILDOPTIONS} -fPIC" \
|
||||||
|
LDDFLAGS="-Wl,-rpath-link,/${LIBDIR} ${BUILDOPTIONS}" \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
$ADDOPTIONS \
|
$ADDOPTIONS \
|
||||||
--shared
|
--shared
|
||||||
|
@ -58,32 +58,29 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: binutils
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: http://sources.redhat.com/binutils
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date$
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision$
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/Utilities
|
SRCPATH=Base/Utilities
|
||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-posix*.patch*
|
echo "Nothing to do for premk()"
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-branch_update-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-genscripts_multilib-*.patch*
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
AR=ar \
|
AR=ar \
|
||||||
AS=as \
|
AS=as \
|
||||||
../binutils*/configure --host=$HOSTSYS \
|
./configure --host=$HOSTSYS \
|
||||||
--target=$TARGET \
|
--target=$TARGET \
|
||||||
--prefix=/cross-tools \
|
--prefix=/cross-tools \
|
||||||
--with-sysroot=${LFS} \
|
--with-sysroot=${LFS} \
|
||||||
@ -92,6 +89,7 @@ mk() {
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-64-bit-bfd
|
--enable-64-bit-bfd
|
||||||
make -j $NUMCPU configure-host
|
make -j $NUMCPU configure-host
|
||||||
|
sed -i "s/\(^MAKEINFO = \).*$/\1\/usr\/bin\/makeinfo/" Makefile
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
cp -v ../binutils*/include/libiberty.h /tools/include
|
cp -v ../binutils*/include/libiberty.h /tools/include
|
||||||
|
106
BaseBuild/crosschain/cloog-ppl
Normal file
106
BaseBuild/crosschain/cloog-ppl
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: cloog-ppl
|
||||||
|
#Quelle der Source Archive: http://cloog.org
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Polyhedra support Funktionen.
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author$
|
||||||
|
#Datum der letzten Änderung: $Date$
|
||||||
|
#Version der Datei: $Rev$
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
cp -v configure{,.orig}
|
||||||
|
sed -e "/LD_LIBRARY_PATH=/d" \
|
||||||
|
configure.orig >configure
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
|
./configure --prefix=/cross-tools \
|
||||||
|
--enable-shared \
|
||||||
|
--with-bits=gmp \
|
||||||
|
--with-gmp=/cross-tools \
|
||||||
|
--with-ppl=/cross-tools
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
echo "Nothing to do for postmk()"
|
||||||
|
}
|
@ -3,7 +3,10 @@
|
|||||||
16 crosschain/ncurses
|
16 crosschain/ncurses
|
||||||
16 crosschain/gmp
|
16 crosschain/gmp
|
||||||
16 crosschain/mpfr
|
16 crosschain/mpfr
|
||||||
|
16 crosschain/mpc
|
||||||
|
16 crosschain/ppl
|
||||||
|
16 crosschain/cloog-ppl
|
||||||
16 crosschain/binutils
|
16 crosschain/binutils
|
||||||
17 crosschain/gcc
|
17 crosschain/gcc
|
||||||
16 crosschain/glibc
|
16 crosschain/eglibc
|
||||||
16 crosschain/gcc
|
16 crosschain/gcc
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/crosschain/glibc $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -58,21 +58,20 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: eglibc
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: ftp.gnu.org
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#Basis glibc cross compiling environment
|
||||||
#
|
#
|
||||||
#
|
#Letzte Änderung von: $Author$
|
||||||
#Letzte Änderung von: $Author: kueller $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Datum der letzten Änderung: $Date: 2009-05-20 13:53:37 +0000 (Mi, 20 Mai 2009) $
|
#Version der Datei: $Rev$
|
||||||
#Version der Datei: $Revision: 4731 $
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/Lib
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
||||||
@ -88,6 +87,7 @@ mk32() {
|
|||||||
libc_cv_forced_unwind=yes
|
libc_cv_forced_unwind=yes
|
||||||
libc_cv_c_cleanup=yes
|
libc_cv_c_cleanup=yes
|
||||||
libc_cv_gnu89_inline=yes
|
libc_cv_gnu89_inline=yes
|
||||||
|
libc_cv_ssp=no
|
||||||
EOF
|
EOF
|
||||||
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
||||||
AR="${TARGET}-ar" \
|
AR="${TARGET}-ar" \
|
||||||
@ -105,6 +105,8 @@ EOF
|
|||||||
--with-headers=/tools/include \
|
--with-headers=/tools/include \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
sed -i "s/\(^MAKEINFO =.*$\)/\1 --force/" config.make
|
||||||
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
cd ../eglibc*
|
cd ../eglibc*
|
||||||
rm -r ../build-eglibc/
|
rm -r ../build-eglibc/
|
||||||
@ -117,6 +119,7 @@ mk() {
|
|||||||
libc_cv_forced_unwind=yes
|
libc_cv_forced_unwind=yes
|
||||||
libc_cv_c_cleanup=yes
|
libc_cv_c_cleanup=yes
|
||||||
libc_cv_gnu89_inline=yes
|
libc_cv_gnu89_inline=yes
|
||||||
|
libc_cv_ssp=no
|
||||||
EOF
|
EOF
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
echo "slibdir=/tools/lib64" >>configparms
|
echo "slibdir=/tools/lib64" >>configparms
|
||||||
@ -138,6 +141,8 @@ EOF
|
|||||||
--with-headers=/tools/include \
|
--with-headers=/tools/include \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
sed -i "s/\(^MAKEINFO =.*$\)/\1 --force/" config.make
|
||||||
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://odin.dmz.lan/Viitor/V962/ViitorMake/BaseBuild/Basesys/file $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -61,9 +61,9 @@
|
|||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#file Befehl. file dient zur Identifikation des filetypes einer Datei.
|
#file Befehl. file dient zur Identifikation des filetypes einer Datei.
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author: kueller $
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 15:13:24 +0200 (Fr, 02 Mai 2008) $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision: 4220 $
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/System
|
SRCPATH=Base/System
|
||||||
|
@ -58,21 +58,20 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: gcc
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: ftp.gnu.org
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date$
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision$
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/Development
|
SRCPATH=Base/Development
|
||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
if [ ${MK64BIT} == "true" ]; then
|
||||||
@ -81,16 +80,13 @@ premk() {
|
|||||||
LIBDIR=lib
|
LIBDIR=lib
|
||||||
fi
|
fi
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-branch_update-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-specs-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-posix-*.patch*
|
|
||||||
if [ "$ARCH" == "sparc64" ]; then
|
if [ "$ARCH" == "sparc64" ]; then
|
||||||
OUTFILE="gcc/config/sparc/linux.h gcc/config/sparc/linux64.h"
|
OUTFILE="gcc/config/sparc/linux.h gcc/config/sparc/linux64.h"
|
||||||
else
|
else
|
||||||
OUTFILE="gcc/config/linux.h"
|
OUTFILE="gcc/config/linux.h"
|
||||||
fi
|
fi
|
||||||
for i in $OUTFILE; do
|
for i in $OUTFILE; do
|
||||||
echo -en '\n#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/" \n\n' >>$i
|
echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/" \n\n' >>$i
|
||||||
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >>$i
|
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >>$i
|
||||||
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >>$i
|
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >>$i
|
||||||
done
|
done
|
||||||
@ -122,6 +118,8 @@ mk() {
|
|||||||
--disable-shared \
|
--disable-shared \
|
||||||
--with-mpfr=/cross-tools \
|
--with-mpfr=/cross-tools \
|
||||||
--with-gmp=/cross-tools \
|
--with-gmp=/cross-tools \
|
||||||
|
--with-ppl=/cross-tools \
|
||||||
|
--with-cloog=/cross-tools \
|
||||||
--without-headers \
|
--without-headers \
|
||||||
--with-newlib \
|
--with-newlib \
|
||||||
--disable-decimal-float \
|
--disable-decimal-float \
|
||||||
@ -130,8 +128,8 @@ mk() {
|
|||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-threads \
|
--disable-threads \
|
||||||
--enable-languages=c
|
--enable-languages=c
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU all-gcc all-target-libgcc
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install-gcc install-target-libgcc
|
||||||
else
|
else
|
||||||
AR=ar \
|
AR=ar \
|
||||||
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
@ -148,6 +146,8 @@ mk() {
|
|||||||
--with-mpfr=/cross-tools \
|
--with-mpfr=/cross-tools \
|
||||||
--with-gmp=/cross-tools \
|
--with-gmp=/cross-tools \
|
||||||
--enable-c99 \
|
--enable-c99 \
|
||||||
|
--with-ppl=/cross-tools \
|
||||||
|
--with-cloog=/cross-tools \
|
||||||
--enable-long-long \
|
--enable-long-long \
|
||||||
--enable-threads=posix
|
--enable-threads=posix
|
||||||
make -j $NUMCPU AS_FOR_TARGET="${TARGET}-as" \
|
make -j $NUMCPU AS_FOR_TARGET="${TARGET}-as" \
|
||||||
|
@ -1,150 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
||||||
#dieses Framework wird im CVS Repository
|
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
|
||||||
#
|
|
||||||
#Lage dieser Datei im Archiv: $HeadURL$
|
|
||||||
#
|
|
||||||
#(c) 2003 Harald Kueller, Germany
|
|
||||||
#This program is free software; you can redistribute it and/or
|
|
||||||
#modify ist 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.
|
|
||||||
#
|
|
||||||
#This program is distributed in the hope that it will be useful,
|
|
||||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
#See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
#You should have received a copy of the GNU General Public License
|
|
||||||
#along with this program; if not write to the Free Software Foundation,
|
|
||||||
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
#
|
|
||||||
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
|
||||||
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
|
||||||
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
|
||||||
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
|
||||||
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
|
||||||
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
|
||||||
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
|
||||||
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
|
||||||
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
|
||||||
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
|
||||||
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
|
||||||
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
|
||||||
#erkannt:
|
|
||||||
#
|
|
||||||
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
|
||||||
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
|
||||||
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
|
||||||
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
|
||||||
# Stellt, und das packet in jedemfall (neu) installiert.
|
|
||||||
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
|
||||||
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
|
||||||
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
|
||||||
# (z.B. aus dem CVS generierte Packete).
|
|
||||||
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
|
||||||
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
|
||||||
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
|
||||||
# so einem Fall in der postmk() Funktion erstellt werden.
|
|
||||||
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
|
||||||
# die installation mittelst installpkg probleme machen.
|
|
||||||
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
|
||||||
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
|
||||||
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
|
||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
|
||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
|
||||||
# kümmern
|
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
|
||||||
#Quelle der Source Archive:
|
|
||||||
#Kurzbeschreibung:
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#Letzte Änderung von: $Author$
|
|
||||||
#Datum der letzten Änderung: $Date$
|
|
||||||
#Version der Datei: $Revision$
|
|
||||||
#
|
|
||||||
|
|
||||||
SRCPATH=Base/Lib
|
|
||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
|
||||||
|
|
||||||
premk() {
|
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
|
||||||
ARCH32=`echo $TARGET32|cut -d"-" -f 1`
|
|
||||||
mkdir ../build-glibc
|
|
||||||
cd ../build-glibc
|
|
||||||
}
|
|
||||||
|
|
||||||
mk32() {
|
|
||||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
|
||||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
|
||||||
echo "libc_cv_gnu99_inline=yes" >> config.cache
|
|
||||||
BUILD_CC="gcc" \
|
|
||||||
CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
|
||||||
AR="${TARGET}-ar" \
|
|
||||||
RANLIB="${TARGET}-ranlib" \
|
|
||||||
CFLAGS="-march=$ARCH32 -mtune=generic -g -O2" \
|
|
||||||
../glibc*/configure --prefix=/tools \
|
|
||||||
--host=$TARGET32 \
|
|
||||||
--build=$TARGET \
|
|
||||||
--disable-profile \
|
|
||||||
--enable-add-ons \
|
|
||||||
--with-tls \
|
|
||||||
--enable-kernel=2.6.0 \
|
|
||||||
--with-__thread \
|
|
||||||
--with-binutils=/cross-tools/bin \
|
|
||||||
--with-headers=/tools/include \
|
|
||||||
--cache-file=config.cache
|
|
||||||
sed -i "s/\(^MAKEINFO = makeinfo\)/\1 --force/" config.make
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU install
|
|
||||||
make install
|
|
||||||
cd ../glibc*
|
|
||||||
rm -r ../build-glibc/
|
|
||||||
mkdir ../build-glibc
|
|
||||||
cd ../build-glibc
|
|
||||||
}
|
|
||||||
|
|
||||||
mk() {
|
|
||||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
|
||||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
|
||||||
echo "libc_cv_gnu99_inline=yes" >> config.cache
|
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
|
||||||
if echo $ARCH|grep -q sparc; then
|
|
||||||
echo "libc_cv_sparc64_tls=yes" >>config.cache
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
BUILDOPTIONS=$BUILDOPTIONS" -march=i486"
|
|
||||||
fi
|
|
||||||
echo "slibdir=/tools/$LIBDIR" >> configparms
|
|
||||||
BUILD_CC="gcc" \
|
|
||||||
CC="${TARGET}-gcc ${BUILDOPTIONS}" \
|
|
||||||
AR="${TARGET}-ar" \
|
|
||||||
RANLIB="${TARGET}-ranlib" \
|
|
||||||
../glibc*/configure --prefix=/tools \
|
|
||||||
--host=$TARGET \
|
|
||||||
--build=$HOSTSYS \
|
|
||||||
--libdir=/tools/$LIBDIR \
|
|
||||||
--disable-profile \
|
|
||||||
--enable-add-ons \
|
|
||||||
--with-tls \
|
|
||||||
--enable-kernel=2.6.0 \
|
|
||||||
--with-__thread \
|
|
||||||
--with-binutils=/cross-tools/bin \
|
|
||||||
--with-headers=/tools/include \
|
|
||||||
--cache-file=config.cache
|
|
||||||
sed -i "s/\(^MAKEINFO = makeinfo\)/\1 --force/" config.make
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU install
|
|
||||||
make install
|
|
||||||
}
|
|
||||||
|
|
||||||
postmk() {
|
|
||||||
cd ../glibc*
|
|
||||||
rm -r ../build-glibc
|
|
||||||
}
|
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/Basesys/gmp $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -62,9 +62,9 @@
|
|||||||
#Gnu Math Library. Library mit hochgenauen und vor allem
|
#Gnu Math Library. Library mit hochgenauen und vor allem
|
||||||
#performanten mathematischen Funktionen
|
#performanten mathematischen Funktionen
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author: kueller $
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 13:13:24 +0000 (Fr, 02 Mai 2008) $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision: 4220 $
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
|
|
||||||
#Pfad zum Basis-Sourcetree :
|
#Pfad zum Basis-Sourcetree :
|
||||||
@ -82,12 +82,9 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CPPFLAGS=-fexceptions \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
./configure --prefix=/cross-tools \
|
||||||
./configure --host=$TARGET \
|
--enable-cxx
|
||||||
--prefix=/cross-tools \
|
|
||||||
--enable-cxx \
|
|
||||||
--enable-mpbsd
|
|
||||||
|
|
||||||
CheckError "Configurescript failed !" 1
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
@ -58,14 +58,14 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: linux-headers
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: ftp.kernel.org
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#
|
#Header des linux Kernels
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date$
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision$
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/SysBuild/security/narc $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -56,20 +56,22 @@
|
|||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
#
|
#
|
||||||
#Module zur Erstellung des Packetes: narc
|
#Module zur Erstellung des Packetes: mpc
|
||||||
#Quelle der Source Archive: www.freshmeat.net
|
#Quelle der Source Archive: http://www.multiprecision.org/
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#Scriptframework zur Erstellung von sicheren Regeln für iptables, basierend
|
#Library zur Berechnung von Komplexen Zahlen mit hoher präzition und
|
||||||
#auf einem einfach aufgebauten Konfigurationsfile.
|
#korrekter rundung
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date: 2009-07-20 20:10:57 +0200 (Mo, 20 Jul 2009) $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Rev$
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
#
|
|
||||||
|
|
||||||
#Pfad zum Basis-Sourcetree :
|
#Pfad zum Basis-Sourcetree :
|
||||||
SRCPATH=Security/Net
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
#SRCDIR=<PFAD>
|
#SRCDIR=<PFAD>
|
||||||
@ -80,19 +82,22 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
mkdir -p $TMPROOT/etc/{init.d,narc}
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
mkdir -p $TMPROOT/usr/sbin
|
./configure --prefix=/cross-tools \
|
||||||
cp narc.conf $TMPROOT/etc/narc/
|
--with-gmp=/cross-tools \
|
||||||
cp narc-custom.conf $TMPROOT/etc/narc
|
--with-mpfr=/cross-tools
|
||||||
cp narc-forward.conf $TMPROOT/etc/narc
|
|
||||||
cp narc $TMPROOT/usr/sbin/
|
|
||||||
cp iptables $TMPROOT/etc/init.d/
|
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
CheckError "Makeprocess failed !" 1
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
GetSVN Viitor_narc $TMPROOT
|
echo "Nothing to do for postmk()"
|
||||||
}
|
}
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/Basesys/gmp $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -61,9 +61,9 @@
|
|||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
#Library zur hochperformanten floating Point Berechnung mit korrekter Rundung
|
#Library zur hochperformanten floating Point Berechnung mit korrekter Rundung
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author: kueller $
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 13:13:24 +0000 (Fr, 02 Mai 2008) $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Version der Datei: $Revision: 4220 $
|
#Version der Datei: $Rev$
|
||||||
#
|
#
|
||||||
|
|
||||||
#Pfad zum Basis-Sourcetree :
|
#Pfad zum Basis-Sourcetree :
|
||||||
@ -82,10 +82,7 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
./configure --prefix=/cross-tools \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
|
||||||
./configure --host=$TARGET \
|
|
||||||
--prefix=/cross-tools \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--with-gmp=/cross-tools
|
--with-gmp=/cross-tools
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/toolchain/ncurses $
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -58,14 +58,14 @@
|
|||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
||||||
# kümmern
|
# kümmern
|
||||||
|
|
||||||
#Module zur Erstellung des Packetes:
|
#Module zur Erstellung des Packetes: ncurses
|
||||||
#Quelle der Source Archive:
|
#Quelle der Source Archive: http://www.gnu.org/software/ncurses
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#Terminal Stuerung
|
||||||
#
|
#
|
||||||
#
|
#Letzte Änderung von: $Author$
|
||||||
#Letzte Änderung von: $Author: kueller $
|
#Datum der letzten Änderung: $Date$
|
||||||
#Datum der letzten Änderung: $Date: 2008-05-02 11:00:40 +0000 (Fr, 02 Mai 2008) $
|
#Version der Datei: $Rev$
|
||||||
#Version der Datei: $Revision: 4218 $
|
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=Base/Lib
|
SRCPATH=Base/Lib
|
||||||
@ -79,9 +79,8 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc $BUILDOPTIONS" \
|
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
|
||||||
./configure --prefix=/cross-tools \
|
./configure --prefix=/cross-tools \
|
||||||
|
--without-debug \
|
||||||
--without-shared
|
--without-shared
|
||||||
make -j $NUMCPU -C include
|
make -j $NUMCPU -C include
|
||||||
make -j $NUMCPU -C progs tic
|
make -j $NUMCPU -C progs tic
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user