#!/bin/bash ##NEED:gperf ##DEP:glib2 ##DEP:libusb NAME=udev TAR=rdiff-backup #LETOP: >=143 heeft sys/signalfd.h nodig, maar deze zit pas in een nieuwe glibc (2.9?) en vanaf kernel 2.6.27.x! #nieuwwere versies hebben ook blkid 2.20 nodig, deze zit weer in nieuwere utillinux (fix ik andere keer) VER=142 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xjf $NAME-$VER.tar.bz2 || exit 1 cd $NAME-$VER || exit 1 ./configure --disable-extras --disable-introspection --prefix=/usr --exec-prefix= --sysconfdir=/etc || exit 1 make || exit 1 make DESTDIR=$PKGTMP EXTRAS=extras/* install || exit 1 mkdir -p $PKGTMP/etc/rc.d || exit 1 cp $CWD/rc.udev $PKGTMP/etc/rc.d || exit 1 chmod +x $PKGTMP/etc/rc.d/rc.udev || exit 1 mkdir -p $PKGTMP/etc/udev/scripts cp $CWD/make_extra_nodes.sh $PKGTMP/etc/udev/scripts || exit 1 chmod +x $PKGTMP/etc/udev/scripts/make_extra_nodes.sh || exit 1 chmod +x $PKGTMP/sbin || exit 1 mkdir -p $PKGTMP/etc/postinst.d || exit 1 cp $CWD/post.udevd $PKGTMP/etc/postinst.d || exit 1 chmod +x $PKGTMP/etc/postinst.d/* || exit 1 #we DONT want persistent network rules. #syn3 does this in a different way, for redundacy reasons and the fact that new hardware should start with eth0 again when a syn3 installation is moved. rm $PKGTMP/lib/udev/rules.d/75-persistent-net-generator.rules || exit 1 cd "$PKGTMP" || exit 1 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch