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.24
Revision: 1
Maintainer: Max Horn
Depends: daemonic
Source: http://www.thekelleys.org.uk/dnsmasq/%n-%v.tar.gz
Source-MD5: d269531be1f130ab642c71c593138d31
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript: PREFIX=%p make
InstallScript: <<
PREFIX=%i make install
<<
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.20/src/config.h dnsmasq-2.20-patched/src/config.h
--- dnsmasq-2.20/src/config.h 2005-01-16 18:25:56.000000000 +0100
+++ dnsmasq-2.20-patched/src/config.h 2005-02-14 17:34:09.000000000 +0100
@@ -31,16 +31,16 @@
#else
# define RESOLVFILE "/etc/resolv.conf"
#endif
-#define RUNFILE "/var/run/dnsmasq.pid"
+#define RUNFILE "@PREFIX@/var/run/dnsmasq.pid"
#if defined(__FreeBSD__) || defined (__OpenBSD__)
-# define LEASEFILE "/var/db/dnsmasq.leases"
+# define LEASEFILE "@PREFIX@/var/db/dnsmasq.leases"
#else
-# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
+# define LEASEFILE "@PREFIX@/var/lib/misc/dnsmasq.leases"
#endif
#if defined(__FreeBSD__)
# define CONFFILE "/usr/local/etc/dnsmasq.conf"
#else
-# define CONFFILE "/etc/dnsmasq.conf"
+# define CONFFILE "@PREFIX@/etc/dnsmasq.conf"
#endif
#define DEFLEASE 3600 /* default lease time, 1 hour */
#define CHUSER "nobody"

dnsmasq _unstable_ 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.24
Revision: 1
Maintainer: Max Horn
Depends: daemonic
Source: http://www.thekelleys.org.uk/dnsmasq/%n-%v.tar.gz
Source-MD5: d269531be1f130ab642c71c593138d31
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript: PREFIX=%p make
InstallScript: <<
PREFIX=%i make install
<<
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 _unstable_ port .patch

diff -ru dnsmasq-2.20/src/config.h dnsmasq-2.20-patched/src/config.h
--- dnsmasq-2.20/src/config.h 2005-01-16 18:25:56.000000000 +0100
+++ dnsmasq-2.20-patched/src/config.h 2005-02-14 17:34:09.000000000 +0100
@@ -31,16 +31,16 @@
#else
# define RESOLVFILE "/etc/resolv.conf"
#endif
-#define RUNFILE "/var/run/dnsmasq.pid"
+#define RUNFILE "@PREFIX@/var/run/dnsmasq.pid"
#if defined(__FreeBSD__) || defined (__OpenBSD__)
-# define LEASEFILE "/var/db/dnsmasq.leases"
+# define LEASEFILE "@PREFIX@/var/db/dnsmasq.leases"
#else
-# define LEASEFILE "/var/lib/misc/dnsmasq.leases"
+# define LEASEFILE "@PREFIX@/var/lib/misc/dnsmasq.leases"
#endif
#if defined(__FreeBSD__)
# define CONFFILE "/usr/local/etc/dnsmasq.conf"
#else
-# define CONFFILE "/etc/dnsmasq.conf"
+# define CONFFILE "@PREFIX@/etc/dnsmasq.conf"
#endif
#define DEFLEASE 3600 /* default lease time, 1 hour */
#define CHUSER "nobody"