Bug 102036

Summary: DNSMasq
Product: Ports & Packages Reporter: Andreas Steinel <lnxbil>
Component: Individual Port(s)Assignee: Rong-En Fan <rafan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andreas Steinel 2006-08-14 22:50:21 UTC
dnsmasq installs in '/usr/local' but rc-runscript is installed in '/etc'. I try to figure out where the file will be copied or created in the Makefile but I don't find the point.

pkg_info -L dnsmasq-2.33 gives:
--- snip ---
Information for dnsmasq-2.33:

Files:
/usr/local/man/man8/dnsmasq.8.gz
/usr/local/sbin/dnsmasq
/usr/local/etc/dnsmasq.conf.example
/usr/local/share/examples/dnsmasq/dnslist/dhcp.css
/usr/local/share/examples/dnsmasq/dnslist/dnslist.pl
/usr/local/share/examples/dnsmasq/dnslist/dnslist.tt2
/usr/local/share/examples/dnsmasq/dynamic-dnsmasq/dynamic-dnsmasq.pl
/usr/local/share/doc/dnsmasq/CHANGELOG
/usr/local/share/doc/dnsmasq/FAQ
/usr/local/share/doc/dnsmasq/UPGRADING_to_2.0
/usr/local/share/doc/dnsmasq/doc.html
/usr/local/share/doc/dnsmasq/setup.html
//etc/rc.d/dnsmasq

--- snap ---

How-To-Repeat: Install it :-p
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-14 23:38:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 babak 2006-08-16 21:47:41 UTC
Hi Andreas,

Thank you for pointing out the issue. Please use following patch to solve
this issue:

--- dnsmasq.patch begins here ---
diff -ruN dnsmasq.orig/Makefile dnsmasq/Makefile
--- dnsmasq.orig/Makefile	Thu Aug 10 11:18:24 2006
+++ dnsmasq/Makefile	Thu Aug 17 00:09:37 2006
@@ -40,11 +40,7 @@
 CFLAGS+=	-DHAVE_DBUS
 .endif
 
-.if ${OSVERSION} < 500037
 USE_RC_SUBR=	dnsmasq.sh
-.else
-USE_RCORDER=	dnsmasq.sh
-.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
--- dnsmasq.patch ends here ---

Thank you,
Babak Farrokhi
Comment 3 Rong-En Fan freebsd_committer freebsd_triage 2006-08-17 18:28:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

Eat.
Comment 4 babak 2006-08-19 19:13:16 UTC
Hi,

Complete update patch is submmited as ports/102284.

- Babak Farrokhi
Comment 5 Rong-En Fan freebsd_committer freebsd_triage 2006-08-19 23:57:13 UTC
State Changed
From-To: feedback->closed

Complete update patch is submitted as ports/102284.