diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-03-08 16:27:45 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-03-08 16:27:45 +0000 |
commit | 72802caf38da73c3c99a37c0b7f586a0ba742128 (patch) | |
tree | 616049ce87473ba092fc259295fbca05db1c73c3 /dns/mydns-ng | |
parent | - Update to 0.8.10 (diff) |
- 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]
Notes
Notes:
svn path=/head/; revision=130630
Diffstat (limited to 'dns/mydns-ng')
-rw-r--r-- | dns/mydns-ng/Makefile | 13 | ||||
-rw-r--r-- | dns/mydns-ng/distinfo | 4 | ||||
-rw-r--r-- | dns/mydns-ng/files/mydns.sh | 16 | ||||
-rw-r--r-- | dns/mydns-ng/files/mydns.sh.in | 31 | ||||
-rw-r--r-- | dns/mydns-ng/files/patch-configure | 11 | ||||
-rw-r--r-- | dns/mydns-ng/files/pkg-message.in (renamed from dns/mydns-ng/pkg-message) | 13 | ||||
-rw-r--r-- | dns/mydns-ng/pkg-plist | 1 |
7 files changed, 49 insertions, 40 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile index bc84bed3aa68..8191d0cf1c05 100644 --- a/dns/mydns-ng/Makefile +++ b/dns/mydns-ng/Makefile @@ -6,7 +6,7 @@ # PORTNAME= mydns -PORTVERSION= 0.11.0 +PORTVERSION= 1.0.0 CATEGORIES= dns databases MASTER_SITES= http://mydns.bboy.net/download/ @@ -16,9 +16,14 @@ COMMENT= DNS server designed to utilize the MySQL database GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc USE_ICONV= yes -USE_LIBTOOL_VER= 13 +USE_LIBTOOL_VER= 15 USE_BZIP2= yes +USE_RC_SUBR= mydns.sh + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message + INFO= mydns MAN5= mydns.conf.5 MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-conf.8 @@ -68,8 +73,6 @@ pre-fetch: @${ECHO} "" post-install: - @${SED} 's|%%%PREFIX%%%|${PREFIX}|g' < ${FILESDIR}/mydns.sh > ${WRKSRC}/mydns.sh - @${INSTALL_SCRIPT} ${WRKSRC}/mydns.sh ${PREFIX}/etc/rc.d/mydns.sh.sample @install-info ${PREFIX}/info/mydns.info ${PREFIX}/info/dir .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR}/contrib @@ -81,6 +84,6 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/ .endif @${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample - @${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/dns/mydns-ng/distinfo b/dns/mydns-ng/distinfo index 8027b41f1d8f..a966c5f30a75 100644 --- a/dns/mydns-ng/distinfo +++ b/dns/mydns-ng/distinfo @@ -1,2 +1,2 @@ -MD5 (mydns-0.11.0.tar.bz2) = 16cc087d63c59bdb56f1564d92d6ab0a -SIZE (mydns-0.11.0.tar.bz2) = 545293 +MD5 (mydns-1.0.0.tar.bz2) = 3a0b312f53c6a8fb17cb7d2cf27fad24 +SIZE (mydns-1.0.0.tar.bz2) = 545441 diff --git a/dns/mydns-ng/files/mydns.sh b/dns/mydns-ng/files/mydns.sh deleted file mode 100644 index 493a4356d676..000000000000 --- a/dns/mydns-ng/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-ng/files/mydns.sh.in b/dns/mydns-ng/files/mydns.sh.in new file mode 100644 index 000000000000..572f96630bc6 --- /dev/null +++ b/dns/mydns-ng/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-ng/files/patch-configure b/dns/mydns-ng/files/patch-configure deleted file mode 100644 index 65ebf6726437..000000000000 --- a/dns/mydns-ng/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-ng/pkg-message b/dns/mydns-ng/files/pkg-message.in index ba5c5b91050b..a4840bb5b715 100644 --- a/dns/mydns-ng/pkg-message +++ b/dns/mydns-ng/files/pkg-message.in @@ -1,11 +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 +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. -If you're upgrading from a version before 0.9.12 then please read the -instructions at http://mydns.bboy.net/ptr.html before running MyDNS + %%PREFIX%%/sbin/mydns --create-tables + +as a template. Finally enable MyDNS by adding + + mydns_enable="YES" + +into your rc.conf. ********************************************************************* diff --git a/dns/mydns-ng/pkg-plist b/dns/mydns-ng/pkg-plist index 791e30a5e0ac..90017934acca 100644 --- a/dns/mydns-ng/pkg-plist +++ b/dns/mydns-ng/pkg-plist @@ -4,7 +4,6 @@ bin/mydnsexport bin/mydnsimport bin/mydnsptrconvert etc/mydns.conf.sample -etc/rc.d/mydns.sh.sample sbin/mydns %%NLS%%share/locale/es/LC_MESSAGES/mydns.mo %%NLS%%share/locale/fr/LC_MESSAGES/mydns.mo |