# SliTaz package receipt. PACKED_SIZE="56.0K" UNPACKED_SIZE="72.0K" PACKAGE="gpxe" VERSION="0.9.3" CATEGORY="network" SHORT_DESC="Forward PXE to Slitaz Web Boot" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" WEB_SITE="http://boot.slitaz.org/" DEPENDS="base-tiny udhcpd-config busybox-net" CONFIG_FILES="/etc/rcS.conf /etc/udhcpd.conf /etc/inetd.conf" # Rules to configure and make the package. compile_rules() { while read pkg file ; do if [ ! -s $pkg*/fs$file ]; then tazpkg get $pkg tazpkg extract $pkg*.tazpkg fi mkdir -p $DESTDIR$(dirname $file) mv $pkg*/fs$file $DESTDIR$(dirname $file) || return 1 done << EOT gpxe-pxe /usr/share/boot/gpxe.pxe EOT } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/. $fs } post_install() { [ -n "$URLS" ] && \ echo "$URLS" | dos2unix | sed 's/$/,/' | cat - /dev/null | \ dd of=$1/usr/share/boot/gpxe.pxe bs=1 seek=5 count=256 2> /dev/null grep -q inetd $1/etc/rcS.conf || sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf grep -q udhcpd $1/etc/rcS.conf || sed -i 's/^RUN_DAEMONS="/&udhcpd /' $1/etc/rcS.conf sed -i '/#tftp/d' $1/etc/inetd.conf grep -q tftpd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <> $1/etc/udhcpd.conf < ${URLS:-$(dd if=$1/usr/share/boot/gpxe.pxe bs=1 skip=5 count=256 2>/dev/null | \ strings | sed s'/,/\n/g')} EOT }