dnsmasq stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: dnsmasq
Version: 2.57
Revision: 1
Maintainer: Max Horn
BuildDepends: fink (>= 0.24.12)
Depends: daemonic
Source: http://www.thekelleys.org.uk/dnsmasq/%n-%v.tar.gz
Source-MD5: d10faeb409717eae94718d7716ca63a4
PatchFile: %n.patch
PatchFile-MD5: 1be538af00a4ad841cdd12caaf6dee71
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: make PREFIX=%p
InstallScript: <<
make install PREFIX=%p DESTDIR=%d
<<
DaemonicFile: <<

DNS forwarder and DHCP server
DNS forwarder and DHCP server
Starting DNS forwarder and DHCP server
Stopping DNS forwarder and DHCP server
Restarting DNS forwarder and DHCP server

%p/sbin/dnsmasq
%p/var/run/dnsmasq.pid


<<
DaemonicName: dnsmasq
DocFiles: CHANGELOG COPYING FAQ doc.html setup.html dnsmasq.conf.example
Description: Lightweight DNS forwarder and DHCP server
Homepage: http://thekelleys.org.uk/dnsmasq/doc.html
License: GPL

dnsmasq stable port .patch

diff -ru dnsmasq-2.57/src/config.h dnsmasq-2.57-patched/src/config.h
--- dnsmasq-2.57/src/config.h 2011-02-18 11:18:39.000000000 +0100
+++ dnsmasq-2.57-patched/src/config.h 2011-03-02 15:34:01.000000000 +0100
@@ -39,25 +39,15 @@
#else
# define RESOLVFILE "/etc/resolv.conf"
#endif
-#define RUNFILE "/var/run/dnsmasq.pid"
+#define RUNFILE "@PREFIX@/var/run/dnsmasq.pid"

-#ifndef LEASEFILE
-# if defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
-# define LEASEFILE "/var/db/dnsmasq.leases"
-# elif defined(__sun__) || defined (__sun)
-# define LEASEFILE "/var/cache/dnsmasq.leases"
-# elif defined(__ANDROID__)
-# define LEASEFILE "/data/misc/dhcp/dnsmasq.leases"
-# else
-# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
-# endif
-#endif
+#define LEASEFILE "@PREFIX@/var/db/dnsmasq.leases"

#ifndef CONFFILE
# if defined(__FreeBSD__)
# define CONFFILE "/usr/local/etc/dnsmasq.conf"
# else
-# define CONFFILE "/etc/dnsmasq.conf"
+# define CONFFILE "@PREFIX@/etc/dnsmasq.conf"
# endif
#endif

dnsmasq _unstable_ port .patch