diff options
author | ale <ale@FreeBSD.org> | 2005-03-09 00:27:45 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-03-09 00:27:45 +0800 |
commit | 4aab4306db2d0f443e7d798cdbf1326512e749ef (patch) | |
tree | 667e2bc2fb1de9aa46686de9e764896002a1a35e /dns/mydns/files | |
parent | e25d74c91325f562c7dd2ef0d778f9921db84f57 (diff) | |
download | freebsd-ports-graphics-4aab4306db2d0f443e7d798cdbf1326512e749ef.tar.gz freebsd-ports-graphics-4aab4306db2d0f443e7d798cdbf1326512e749ef.tar.zst freebsd-ports-graphics-4aab4306db2d0f443e7d798cdbf1326512e749ef.zip |
- Update to 1.0.0 release [1]
- Switch to libtool15
- Switch to rcNG startup script
PR: ports/78595 [1]
Submitted by: Simon Dick <simond@irrelevant.org> [1]
Diffstat (limited to 'dns/mydns/files')
-rw-r--r-- | dns/mydns/files/mydns.sh | 16 | ||||
-rw-r--r-- | dns/mydns/files/mydns.sh.in | 31 | ||||
-rw-r--r-- | dns/mydns/files/patch-configure | 11 | ||||
-rw-r--r-- | dns/mydns/files/pkg-message.in | 14 |
4 files changed, 45 insertions, 27 deletions
diff --git a/dns/mydns/files/mydns.sh b/dns/mydns/files/mydns.sh deleted file mode 100644 index 493a4356d67..00000000000 --- a/dns/mydns/files/mydns.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -case "$1" in - start) - %%%PREFIX%%%/sbin/mydns -b - ;; - stop) - kill `cat /var/run/mydns.pid` - ;; - *) - echo "" - echo "Usage: `basename $0` { start | stop }" - echo "" - exit 64 - ;; -esac diff --git a/dns/mydns/files/mydns.sh.in b/dns/mydns/files/mydns.sh.in new file mode 100644 index 00000000000..572f96630bc --- /dev/null +++ b/dns/mydns/files/mydns.sh.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: mydns +# REQUIRE: NETWORKING SERVERS +# BEFORE: DAEMON +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable mydns: +# mydns_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable MyDNS. +# + +. %%RC_SUBR%% + +name="mydns" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${mydns_enable="NO"} + +command="%%PREFIX%%/sbin/mydns" +command_args="-b" +pidfile="/var/run/mydns.pid" +required_files="%%PREFIX%%/etc/mydns.conf" + +run_rc_command "$1" diff --git a/dns/mydns/files/patch-configure b/dns/mydns/files/patch-configure deleted file mode 100644 index 65ebf672643..00000000000 --- a/dns/mydns/files/patch-configure +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig Fri Mar 28 11:51:06 2003 -+++ configure Fri Mar 28 11:51:21 2003 -@@ -7803,6 +7803,7 @@ - - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+$ac_aux_dir/ltconfig $LIBTOOL_DEPS - - # Always use our own libtool. - LIBTOOL='$(SHELL) $(top_builddir)/libtool' - diff --git a/dns/mydns/files/pkg-message.in b/dns/mydns/files/pkg-message.in new file mode 100644 index 00000000000..a4840bb5b71 --- /dev/null +++ b/dns/mydns/files/pkg-message.in @@ -0,0 +1,14 @@ +********************************************************************** +To get MyDNS working you will need to do some configuration, first you +will need to create %%PREFIX%%/etc/mydns.conf based on the +installed sample file. Following that you will need to setup your +database tables, you can use the output of + + %%PREFIX%%/sbin/mydns --create-tables + +as a template. Finally enable MyDNS by adding + + mydns_enable="YES" + +into your rc.conf. +********************************************************************* |