diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-09 02:33:06 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-09 02:33:06 (GMT) |
commit | 1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e (patch) | |
tree | f336ee91ce16c6591fff50340562e07e15aa1a55 /abs/mv-core/dnsmasq/PKGBUILD | |
parent | 75b1bceb21faab32d8f519d6f7f7062a226f9047 (diff) | |
download | linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.zip linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.gz linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.bz2 |
MythVantage specific pkgs
Diffstat (limited to 'abs/mv-core/dnsmasq/PKGBUILD')
-rw-r--r-- | abs/mv-core/dnsmasq/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/abs/mv-core/dnsmasq/PKGBUILD b/abs/mv-core/dnsmasq/PKGBUILD new file mode 100644 index 0000000..339b95a --- /dev/null +++ b/abs/mv-core/dnsmasq/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=dnsmasq +pkgver=2.42 +pkgrel=15 +pkgdesc="A lightweight DNS/DHCP server ideal for small/home networks using NAT" +arch=(i686 x86_64) +source=(http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.gz \ + dnsmasq.rc.d $pkgname-capability-config.patch dnsmasq.conf pxelinux.0 pxelinux.default ) +license=('GPL2') +url="http://www.thekelleys.org.uk/dnsmasq/doc.html" +depends=('glibc' 'bash') +backup=(etc/dnsmasq.conf) +install=$pkgname.install + +build() { + cd $startdir/src/$pkgname-$pkgver || return 1 + # patch to add a note about capability module in the config file + patch -Np0 -i ../$pkgname-capability-config.patch || return 1 + + # build + cd $startdir/src/$pkgname-$pkgver || return 1 + make || return 1 + + # install + mkdir -p $startdir/pkg/etc/rc.d || return 1 + make PREFIX=/usr DESTDIR=$startdir/pkg install || return 1 + install -D -m 0755 \ + $startdir/src/dnsmasq.rc.d $startdir/pkg/etc/rc.d/dnsmasq || return 1 + install -D -m 0644 \ + dnsmasq.conf.example $startdir/pkg/etc/dnsmasq.conf.example || return 1 + install -D -m 0644 $startdir/src/dnsmasq.conf $startdir/pkg/etc/dnsmasq.conf + + mkdir -p $startdir/pkg/data/srv/tftp/pxelinux.cfg + install -m 755 $startdir/src/pxelinux.default $startdir/pkg/data/srv/tftp/pxelinux.cfg/default + install -m 755 $startdir/src/pxelinux.0 $startdir/pkg/data/srv/tftp/pxelinux.0 + + + # make the required directories for DHCP server default directories + mkdir -p $startdir/pkg/var/db || return 1 + mkdir -p $startdir/pkg/var/lib/misc || return 1 +} +# vim: ts=2 sw=2 et ft=sh |