From: frank Date: Mon, 16 Jan 2012 06:19:16 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=06a6ce994d2488935295da9e2e65b6a6288bb17b;p=config%2Fbruni%2Fetc.git committing changes in /etc after emerge run Package changes: +net-misc/mDNSResponder-212.1 --- diff --git a/.etckeeper b/.etckeeper index 3b6ca658..a8ff97e2 100755 --- a/.etckeeper +++ b/.etckeeper @@ -48,6 +48,7 @@ maybe chmod 0644 './conf.d/consolefont' 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' @@ -59,6 +60,7 @@ maybe chmod 0644 './conf.d/keymaps' 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' @@ -303,6 +305,7 @@ maybe chmod 0755 './init.d/device-mapper' 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' @@ -316,7 +319,9 @@ maybe chmod 0755 './init.d/local' 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' @@ -407,6 +412,7 @@ maybe chmod 0600 './lvm/backup/vg1' 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' diff --git a/conf.d/dnsextd b/conf.d/dnsextd new file mode 100644 index 00000000..81507508 --- /dev/null +++ b/conf.d/dnsextd @@ -0,0 +1,12 @@ +# 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'" diff --git a/conf.d/mDNSResponderPosix b/conf.d/mDNSResponderPosix new file mode 100644 index 00000000..11b73228 --- /dev/null +++ b/conf.d/mDNSResponderPosix @@ -0,0 +1,2 @@ +# Add extra arguments to mDNSResponderPosix here. +#RESPONDER_ARGS= diff --git a/init.d/dnsextd b/init.d/dnsextd new file mode 100755 index 00000000..4297d58e --- /dev/null +++ b/init.d/dnsextd @@ -0,0 +1,36 @@ +#!/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" +} diff --git a/init.d/mDNSResponderPosix b/init.d/mDNSResponderPosix new file mode 100755 index 00000000..0fd97341 --- /dev/null +++ b/init.d/mDNSResponderPosix @@ -0,0 +1,43 @@ +#!/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" +} diff --git a/init.d/mdnsd b/init.d/mdnsd new file mode 100755 index 00000000..4a05569f --- /dev/null +++ b/init.d/mdnsd @@ -0,0 +1,36 @@ +#!/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" +} diff --git a/mDNSResponderPosix.conf b/mDNSResponderPosix.conf new file mode 100644 index 00000000..639e7be2 --- /dev/null +++ b/mDNSResponderPosix.conf @@ -0,0 +1,23 @@ +# 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