mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Some small fixes to startup-script (fixed by Dirk Meyer and Ralf vd Enden).
- $PREFIX no longer hardcoded (fixed by Dirk Meyer). - Pet portlint a bit PR: ports/63530 Submitted by: maintainer
This commit is contained in:
parent
14a1bfaab3
commit
e8bb7e6833
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=102759
4 changed files with 16 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# New ports collection makefile for: powerdns
|
||||||
# Date Created: 14.Jan 2003
|
# Date Created: 14.Jan 2003
|
||||||
# Whom: dirk.meyer@dinoex.sub.org
|
# Whom: dirk.meyer@dinoex.sub.org
|
||||||
#
|
#
|
||||||
|
@ -6,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= powerdns
|
PORTNAME= powerdns
|
||||||
PORTVERSION= 2.9.16
|
PORTVERSION= 2.9.16
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= dns ipv6
|
CATEGORIES= dns ipv6
|
||||||
MASTER_SITES= http://downloads.powerdns.com/releases/
|
MASTER_SITES= http://downloads.powerdns.com/releases/
|
||||||
DISTNAME= pdns-${PORTVERSION}
|
DISTNAME= pdns-${PORTVERSION}
|
||||||
|
@ -127,7 +129,10 @@ post-install:
|
||||||
.endif
|
.endif
|
||||||
.if !exists(${STARTUP_SCRIPT})
|
.if !exists(${STARTUP_SCRIPT})
|
||||||
${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
|
${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
|
||||||
${INSTALL_SCRIPT} ${FILESDIR}/pdns.sh.sample ${STARTUP_SCRIPT}
|
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||||
|
${FILESDIR}/pdns.sh.sample \
|
||||||
|
> ${WRKSRC}/pdns.sh.sample
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
|
|
||||||
rc_file=${0##*/}
|
rc_file=${0##*/}
|
||||||
|
|
||||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
|
PREFIX=%%PREFIX%%
|
||||||
echo "${rc_file}: Cannot determine PREFIX." >&2
|
|
||||||
echo "Please use the complete pathname." >&2
|
|
||||||
exit 64
|
|
||||||
fi
|
|
||||||
|
|
||||||
pdns=${PREFIX}/sbin/pdns_server
|
pdns=${PREFIX}/sbin/pdns_server
|
||||||
pdnscontrol=${PREFIX}/bin/pdns_control
|
pdnscontrol=${PREFIX}/bin/pdns_control
|
||||||
|
@ -18,6 +14,7 @@ if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
||||||
if [ -f $pdns ]; then
|
if [ -f $pdns ]; then
|
||||||
echo -n ' PowerDNS'
|
echo -n ' PowerDNS'
|
||||||
if [ -f $pdnsrecursor ]; then
|
if [ -f $pdnsrecursor ]; then
|
||||||
|
rm $recursorpid >/dev/null 2>&1
|
||||||
$pdnsrecursor >/dev/null 2>&1
|
$pdnsrecursor >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
$pdns
|
$pdns
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# New ports collection makefile for: powerdns
|
||||||
# Date Created: 14.Jan 2003
|
# Date Created: 14.Jan 2003
|
||||||
# Whom: dirk.meyer@dinoex.sub.org
|
# Whom: dirk.meyer@dinoex.sub.org
|
||||||
#
|
#
|
||||||
|
@ -6,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= powerdns
|
PORTNAME= powerdns
|
||||||
PORTVERSION= 2.9.16
|
PORTVERSION= 2.9.16
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= dns ipv6
|
CATEGORIES= dns ipv6
|
||||||
MASTER_SITES= http://downloads.powerdns.com/releases/
|
MASTER_SITES= http://downloads.powerdns.com/releases/
|
||||||
DISTNAME= pdns-${PORTVERSION}
|
DISTNAME= pdns-${PORTVERSION}
|
||||||
|
@ -127,7 +129,10 @@ post-install:
|
||||||
.endif
|
.endif
|
||||||
.if !exists(${STARTUP_SCRIPT})
|
.if !exists(${STARTUP_SCRIPT})
|
||||||
${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
|
${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
|
||||||
${INSTALL_SCRIPT} ${FILESDIR}/pdns.sh.sample ${STARTUP_SCRIPT}
|
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||||
|
${FILESDIR}/pdns.sh.sample \
|
||||||
|
> ${WRKSRC}/pdns.sh.sample
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
|
|
||||||
rc_file=${0##*/}
|
rc_file=${0##*/}
|
||||||
|
|
||||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
|
PREFIX=%%PREFIX%%
|
||||||
echo "${rc_file}: Cannot determine PREFIX." >&2
|
|
||||||
echo "Please use the complete pathname." >&2
|
|
||||||
exit 64
|
|
||||||
fi
|
|
||||||
|
|
||||||
pdns=${PREFIX}/sbin/pdns_server
|
pdns=${PREFIX}/sbin/pdns_server
|
||||||
pdnscontrol=${PREFIX}/bin/pdns_control
|
pdnscontrol=${PREFIX}/bin/pdns_control
|
||||||
|
@ -18,6 +14,7 @@ if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
|
||||||
if [ -f $pdns ]; then
|
if [ -f $pdns ]; then
|
||||||
echo -n ' PowerDNS'
|
echo -n ' PowerDNS'
|
||||||
if [ -f $pdnsrecursor ]; then
|
if [ -f $pdnsrecursor ]; then
|
||||||
|
rm $recursorpid >/dev/null 2>&1
|
||||||
$pdnsrecursor >/dev/null 2>&1
|
$pdnsrecursor >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
$pdns
|
$pdns
|
||||||
|
|
Loading…
Add table
Reference in a new issue