Hi,
I created a compile script for xdm.
Perry
#!/bin/sh
# Check if mksquashfs is installed.
if [ ! -f /usr/local/bin/mksquashfs ]
then
echo "error: command mksquashfs is not installed."
fi
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
#
# Compile and install wxgtk.
#
touch /tmp/mark-xdm
sleep 5
tar -xzvf xdm-1.1.10.tar.gz
cd xdm-1.1.10
find -type f|xargs touch
./configure --with-pam --prefix=/usr/local --with-xft=/usr/local
make
# Strip binaries.
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null
make install
ldconfig
sleep 5
find /usr/local -newer /tmp/mark-xdm -not -type d > /tmp/new-xdm.lst
cd ..
# Create the package.
for package in xdm
do
echo $package
# Here we create the packages.
tar -T /tmp/new-$package.lst -czvf /tmp/nerdbox-$package.tar.gz
mkdir -p /tmp/pkg/$package
cd /tmp/pkg/$package
tar -xf /tmp/nerdbox-$package.tar.gz
cd /tmp/pkg
mksquashfs $package nerdbox-$package.tcz
# Create checksum file.
md5sum nerdbox-$package.tcz > nerdbox-$package.tcz.md5.txt
# Create info file.
echo $package > nerdbox-$package.tcz.info
done
#
## Create depencies files.
echo "" > nerdbox-xdm.tcz.dep