tce-load -wi compiletc cd /tmp wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.79.tar.gz tar zxf dnsmasq-2.79.tar.gz cd dnsmasq-2.79 # dnsmasq does not use audoconf / .configure # for x86 # make CFLAGS='Wall -W -march=i486 -mtune=i686 -Os -pipe' LDFLAGS='-Wl,-O1' # for x86_64 make CFLAGS='-Wall -W -mtune=generic -Os -pipe' LDFLAGS='-Wl,-O1' # install to DESTDIR DESTDIR=`mktemp -d` chmod 755 ${DESTDIR} make DESTDIR=${DESTDIR} install # manually strip binaries strip --strip-all ${DESTDIR}/usr/local/sbin/* # add copyright files mkdir -p ${DESTDIR}/usr/local/share/doc/dnsmasq cp -p COPYING COPYING-v3 ${DESTDIR}/usr/local/share/doc/dnsmasq # then, split man doc to dnsmasq-doc DOC_DESTDIR=`mktemp -d` chmod 755 ${DOC_DESTDIR} cd ${DESTDIR} tar cpf - usr/local/share/man | ( cd ${DOC_DESTDIR} && tar xvpf - ) rm -rf usr/local/share/man # set permission sudo chown -R root:root ${DESTDIR} sudo chown -R root:root ${DOC_DESTDIR} # TCZ packaging tce-load -wi squashfs-tools submitqc # TCZ packaging -- dnsmasq.tcz cd /tmp mksquashfs ${DESTDIR} dnsmasq.tcz md5sum dnsmasq.tcz > dnsmasq.tcz.md5.txt find ${DESTDIR} -type f | sed -e "s#^${DESTDIR}##" > dnsmasq.tcz.list # no dnsmasq.tcz.dep is required vi dnsmasq.tcz.info (edit .info file) # do validation submitqc -c --libs dnsmasq.tcz # TCZ packaging -- dnsmasq-doc.tcz cd /tmp mksquashfs ${DOC_DESTDIR} dnsmasq-doc.tcz md5sum dnsmasq-doc.tcz > dnsmasq-doc.tcz.md5.txt find ${DOC_DESTDIR} -type f | sed -e "s#^${DOC_DESTDIR}##" > dnsmasq-doc.tcz.list # no dnsmasq-doc.tcz.dep is required vi dnsmasq-doc.tcz.info (edit .info file) # do validation submitqc -c --libs dnsmasq-doc.tcz # cleanup sudo rm -rf ${DESTDIR} ${DOC_DESTDIR} rm -rf dnsmasq-2.79