maybe chmod 0644 './conf.d/crypto-loop'
maybe chmod 0644 './conf.d/device-mapper'
maybe chmod 0644 './conf.d/dmesg'
+maybe chmod 0644 './conf.d/dnsextd'
maybe chmod 0644 './conf.d/fsck'
maybe chmod 0644 './conf.d/git-daemon'
maybe chmod 0644 './conf.d/gpm'
maybe chmod 0644 './conf.d/killprocs'
maybe chmod 0644 './conf.d/localmount'
maybe chmod 0644 './conf.d/lvm'
+maybe chmod 0644 './conf.d/mDNSResponderPosix'
maybe chmod 0644 './conf.d/mdadm'
maybe chmod 0644 './conf.d/mdraid'
maybe chmod 0644 './conf.d/modules'
maybe chmod 0755 './init.d/dhcpcd'
maybe chmod 0755 './init.d/dmesg'
maybe chmod 0755 './init.d/dmeventd'
+maybe chmod 0755 './init.d/dnsextd'
maybe chmod 0755 './init.d/fsck'
maybe chmod 0755 './init.d/git-daemon'
maybe chmod 0755 './init.d/gpm'
maybe chmod 0755 './init.d/localmount'
maybe chmod 0755 './init.d/lvm'
maybe chmod 0755 './init.d/lvm-monitoring'
+maybe chmod 0755 './init.d/mDNSResponderPosix'
maybe chmod 0755 './init.d/mdadm'
+maybe chmod 0755 './init.d/mdnsd'
maybe chmod 0755 './init.d/mdraid'
maybe chmod 0755 './init.d/mit-krb5kadmind'
maybe chmod 0755 './init.d/mit-krb5kdc'
maybe chmod 0700 './lvm/cache'
maybe chmod 0600 './lvm/cache/.cache'
maybe chmod 0644 './lvm/lvm.conf'
+maybe chmod 0644 './mDNSResponderPosix.conf'
maybe chmod 0644 './machine-id'
maybe chmod 0755 './mail'
maybe chmod 0644 './mail/aliases'
--- /dev/null
+# Set the address of the BIND server that dnsextd will
+# contact and the zone that it will administer.
+# Make sure you have read the instructions at
+# http://www.dns-sd.org/ServerSetup.html
+# on how to configure the BIND server before
+# starting dnsextd.
+#DNSEXTD_NAMESERVER="127.0.0.1"
+#DNSEXTD_ZONE="zone.example.com."
+
+# Add extra arguments to dnsextd here.
+# See dnsextd -h for options.
+#DNSEXTD_ARGS="-k 'TSIG auth key'"
--- /dev/null
+# Add extra arguments to mDNSResponderPosix here.
+#RESPONDER_ARGS=
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/dnsextd.init.d,v 1.3 2011/10/30 15:28:12 polynomial-c Exp $
+
+extra_started_commands="dump"
+
+depend() {
+ after named
+}
+
+start() {
+ if [ -z "${DNSEXTD_ZONE}" -o -z "${DNSEXTD_NAMESERVER}" ]; then
+ eerror "You need to setup DNSEXTD_ZONE and DNSEXTD_NAMESERVER in /etc/conf.d/dnsextd first"
+ return 1
+ fi
+
+ ebegin "Starting dnsextd"
+ start-stop-daemon --start --quiet --user named \
+ --pid /var/run/dnsextd.pid --exec /usr/sbin/dnsextd \
+ -- -z "${DNSEXTD_ZONE}" -s "${DNSEXTD_NAMESERVER}" ${DNSEXTD_ARGS}
+
+ eend $? "Failed to start dnsextd"
+}
+
+stop() {
+ ebegin "Stopping dnsextd"
+ start-stop-daemon --stop --quiet --pid /var/run/dnsextd.pid
+ eend $? "Failed to stop dnsextd"
+}
+
+dump() {
+ ebegin "Dumping dnsextd lease table"
+ kill -INFO `cat /var/run/dnsextd.pid` >/dev/null 2>&1
+ eend $? "Failed to dump dnsextd lease table"
+}
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mDNSResponderPosix.init.d,v 1.2 2011/10/23 18:15:50 polynomial-c Exp $
+
+extra_started_commands="reload debug"
+
+depend() {
+ need mdnsd
+}
+
+start() {
+ if [ ! -f "/etc/mDNSResponderPosix.conf" ]; then
+ eerror "You need to setup /etc/mDNSResponderPosix.conf first"
+ return 1
+ fi
+
+ ebegin "Starting mDNSResponderPosix"
+ start-stop-daemon --start --quiet --pidfile /var/run/mDNSResponderPosix.pid \
+ --exec /usr/sbin/mDNSResponderPosix \
+ -- -b -f /etc/mDNSResponderPosix.conf -P /var/run/mDNSResponderPosix.pid \
+ $RESPONDER_ARGS
+
+ eend $? "Failed to start mDNSResponderPosix"
+}
+
+stop() {
+ ebegin "Stopping mDNSResponderPosix"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mDNSResponderPosix.pid
+ eend $? "Failed to stop mDNSResponderPosix"
+}
+
+reload() {
+ ebegin "Reloading mDNSResponderPosix"
+ kill -HUP `cat /var/run/mDNSResponderPosix.pid` >/dev/null 2>&1
+ eend $? "Failed to reload mDNSResponderPosix"
+}
+
+debug() {
+ ebegin "Changing verbosity of mDNSResponderPosix"
+ kill -USR1 `cat /var/run/mDNSResponderPosix.pid` >/dev/null 2>&1
+ eend $? "Failed to change verbosity"
+}
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d,v 1.3 2011/10/23 18:15:50 polynomial-c Exp $
+
+extra_started_commands="reload dump"
+
+depend() {
+ after net
+}
+
+start() {
+ ebegin "Starting mdnsd"
+ start-stop-daemon --start --quiet --pidfile /var/run/mdnsd.pid \
+ --exec /usr/sbin/mdnsd
+
+ eend $? "Failed to start mdnsd"
+}
+
+stop() {
+ ebegin "Stopping mdnsd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mdnsd.pid
+ eend $? "Failed to stop mdnsd"
+}
+
+reload() {
+ ebegin "Reloading mdnsd"
+ kill -HUP `cat /var/run/mdnsd.pid` >/dev/null 2>&1
+ eend $? "Failed to reload mdnsd"
+}
+
+dump() {
+ ebegin "Dump mdnsd state to logs"
+ kill -USR1 `cat /var/run/mdnsd.pid` >/dev/null 2>&1
+ eend $? "Failed to dump mdnsd state"
+}
--- /dev/null
+# See http://www.dns-sd.org/ServiceTypes.html for service types and parameters.
+# Format is:
+# name
+# service type
+# port
+# [params, name=value, one per line]
+# NOTE: At least as of 107.1 there is a bug where you cannot have a blank line
+# NOTE: before the first entry if there are any leading comments.
+#yourhost
+#_ssh._tcp.
+#22
+
+#yourhost
+#_http._tcp.
+#80
+#path=/
+
+#yourhost
+#_ftp._tcp.
+#21
+#u=yourusername
+#p=password
+#path=/somepath