From 6df248402a0630a6f4fe10fee4bf87bfd6164da9 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 21 Jul 2010 23:29:47 +0200 Subject: [PATCH] rc: Add a dummy 'named' script to give 'rpcbind' something to depend on. If BIND is installed from pkgsrc, its 'named9' script (which provides 'named') will do the real work. This silences one of the rc error messages we've been having since we removed BIND from base. --- Makefile_upgrade.inc | 3 --- etc/rc.d/Makefile | 2 +- etc/rc.d/named | 12 ++++++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 etc/rc.d/named diff --git a/Makefile_upgrade.inc b/Makefile_upgrade.inc index 6599b6c1e8..3a1a552b20 100644 --- a/Makefile_upgrade.inc +++ b/Makefile_upgrade.inc @@ -1,5 +1,3 @@ -# $DragonFly: src/Makefile_upgrade.inc,v 1.36 2008/11/24 17:40:02 hasso Exp $ -# # Append all obsolete files to this file # Avoid constructs like {foo,bar}. It is parsed by /bin/sh @@ -1297,7 +1295,6 @@ TO_REMOVE+=/usr/share/man/cat9/ieee80211_cancel_scan_any.9.gz TO_REMOVE+=/usr/share/man/man9/ieee80211_cancel_scan_any.9.gz TO_REMOVE+=/usr/share/man/cat9/ieee80211_wait_for_parent.9.gz TO_REMOVE+=/usr/share/man/man9/ieee80211_wait_for_parent.9.gz -TO_REMOVE+=/etc/rc.d/named TO_REMOVE+=/usr/bin/dig TO_REMOVE+=/usr/bin/dnssec-keygen TO_REMOVE+=/usr/bin/dnssec-signzone diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 4d1f740e50..0a0f5b7136 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -16,7 +16,7 @@ FILES= DAEMON LOGIN NETWORKING SERVERS abi accounting addswap adjkerntz \ ldconfig local localdaemons lockd lpd lvm \ mixer motd mountcritlocal mountcritremote \ mountd moused mroute6d mrouted msgs \ - netif netoptions newsyslog \ + named netif netoptions newsyslog \ network_ipv6 nfsclient nfsd nfsserver nisdomain nscd nsswitch \ dntpd othermta pf pflog powerd ppp ppp-user pppoed pwcheck \ quota random rarpd rcconf resident rndcontrol root route6d routed \ diff --git a/etc/rc.d/named b/etc/rc.d/named new file mode 100644 index 0000000000..9b44cbd631 --- /dev/null +++ b/etc/rc.d/named @@ -0,0 +1,12 @@ +#!/bin/sh + +# PROVIDE: named +# REQUIRE: SERVERS +# BEFORE: DAEMON + +# This is a dummy dependency for named which is no longer in base +# but is needed as a provider by the rpcbind rc script. The real +# functionality is in the pkgsrc rc script, if installed. + +. /etc/rc.subr +dummy_rc_command "$1" -- 2.41.0