the guide tells you to, under code listing 5.2: # emerge dnsmasq # nano /etc/conf.d/dnsmasq Add "-i eth0" to DNSMASQ_OPTS # rc-update add dnsmasq default # /etc/init.d/dnsmasq start the only problem is, /etc/conf.d/dnsmasq does not exist. i am using dnsmasq-2.19
It's because the ebuild now uses newconfd. Look for this error when you emerge dnsmasq with portage-2.0.51-r8: install: cannot create regular file `/var/tmp/portage/dnsmasq-2.19/image//etc/conf.d/': Is a directory *Solution* Upgrade >=portage-2.0.51-r10 or copy the file manually from the files/ directory
sorry, but portage -r10 still doesn't install the file. perhaps this is an ebuild bug, but i thought you docs kids should be aware
*back to the wranglers* *changed title of bug from "gentoo home router guide has an error with DNS" to "dnsmasq ebuild error" *added docs team to CC list
I tried again from a clean slate and /etc/conf.d/dnsmasq is installed as expected. # equery files dnsmasq [ Searching for packages matching dnsmasq... ] net-dns/dnsmasq-2.19 * Contents of net-dns/dnsmasq-2.19: /etc /etc/conf.d /etc/conf.d/dnsmasq /etc/dnsmasq.conf /etc/init.d /etc/init.d/dnsmasq /usr /usr/sbin /usr/sbin/dnsmasq /usr/share /usr/share/doc /usr/share/doc/dnsmasq-2.19 /usr/share/doc/dnsmasq-2.19/CHANGELOG.gz /usr/share/doc/dnsmasq-2.19/FAQ.gz /usr/share/doc/dnsmasq-2.19/html /usr/share/doc/dnsmasq-2.19/html/doc.html /usr/share/doc/dnsmasq-2.19/html/setup.html /usr/share/man /usr/share/man/man8 /usr/share/man/man8/dnsmasq.8.gz
sory for the slew of posts, but the offending line in the ebuild seems to be 42, as it calls for a file which does not exist. since the dnsmasq seems to use /etc/dnsmasq.conf for config, is the /etc/conf.d file even necessary? the unpacked source: smithj dnsmasq-2.19 # ls -la total 184 drwxr-xr-x 5 500 users 4096 Dec 13 11:46 . drwx------ 29 root root 4096 Jan 12 11:50 .. -rw-r--r-- 1 500 users 56589 Dec 13 06:56 CHANGELOG -rw-r--r-- 1 500 users 18007 Dec 11 12:02 COPYING -rw-r--r-- 1 500 users 16473 Dec 11 13:40 FAQ -rw-r--r-- 1 500 users 385 Dec 11 12:02 Makefile -rw-r--r-- 1 500 users 2999 Dec 11 12:02 UPGRADING_to_2.0 drwxr-xr-x 4 500 users 42 Dec 11 12:02 contrib -rw-r--r-- 1 500 users 3812 Dec 11 12:03 dnsmasq-rh.spec -rw-r--r-- 1 500 users 3364 Dec 11 12:03 dnsmasq-suse.spec -rw-r--r-- 1 500 users 26416 Dec 11 12:02 dnsmasq.8 -rw-r--r-- 1 500 users 11654 Dec 11 12:02 dnsmasq.conf.example -rw-r--r-- 1 500 users 5147 Dec 11 12:02 doc.html drwxr-xr-x 2 500 users 96 Dec 11 12:02 rpm -rw-r--r-- 1 500 users 12022 Dec 11 12:02 setup.html drwxr-xr-x 2 500 users 4096 Jan 12 11:46 src the ebuild states: 41 insinto /etc/conf.d 42 newins ${FILESDIR}/dnsmasq.confd dnsmasq but i do not see the dnsmasq.confd that the ebuild calls for. i have no idea how mr Neys got it to work; it doesn't seem possible
dnsmasq-2.19.ebuild has line 39: newconfd ${FILESDIR}/dnsmasq.confd dnsmasq Please sync your tree and check you're not using a version from your overlay. It looks like you're using a renamed ebuild from a previous version. FYI, the file is copied from /usr/portage/net-dns/dnsmasq/files/dnsmasq.confd
ok, that worked. sorry for the hassle. the docs team might consider editing the router handbook to include the info that portage...-r8 won't emerge this package correctly