#!/bin/sh PKGNAM=dnsmasq VERSION=2.45 BUILD=${BUILD:-1_slamd64_12.0} . /etc/pkghelpers pkghelpers_env rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf dnsmasq-$VERSION tar xjvf $CWD/dnsmasq-$VERSION.tar.bz2 cd dnsmasq-$VERSION pkghelpers_permissions zcat $CWD/dnsmasq.leasedir.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 make -j5 all-i18n PREFIX=/usr MANDIR=/usr/man || exit 1 make install-i18n PREFIX=/usr DESTDIR=$PKG MANDIR=/usr/man || exit 1 chmod 755 $PKG/usr/sbin/dnsmasq mkdir -p $PKG/etc/dnsmasq.d mkdir -p $PKG/var/state/dnsmasq mkdir $PKG/etc cat dnsmasq.conf.example > $PKG/etc/dnsmasq.conf.new mkdir $PKG/etc/rc.d zcat $CWD/rc.dnsmasq.gz > $PKG/etc/rc.d/rc.dnsmasq.new mkdir -p $PKG/usr/doc/dnsmasq-$VERSION cp -a \ CHANGELOG COPYING FAQ doc.html setup.html \ $PKG/usr/doc/dnsmasq-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG pkghelpers_fixup pkghelpers_makepkg