freebsd-ports/games/kaid/Makefile
Doug Barton ffde46cbf9 Now that new style rc.d scripts are being run as part of the
base rcorder, hard coded variable values in these scripts
are overriding the values in /etc/rc.conf[.local] (due to
the way that variables from the latter are read at boot time).

Therefore, change the boot scripts to set default values only
if the variable is unset in /etc/rc.conf[.local]. This will
allow the service to start at boot time if it's been enabled
as the user would expect.

This change will be a noop for users who have systems that
have not yet been upgraded to the new rc.d code in the base.

In many cases there are other variables in the scripts that
should get similar treatment, however I did not change
anything other than the _enable lines. I'll leave the rest
up to the maintainers to do as they see fit.

Bump PORTREVISION to make sure that users and packages
pick up this change.
2006-01-07 06:29:57 +00:00

38 lines
876 B
Makefile

# New ports collection makefile for: kaid
# Date created: 18 Feb 2005
# Whom: Sebastiaan van Erk
#
# $FreeBSD$
#
PORTNAME= kaid
PORTVERSION= 7.0.0.4b
PORTREVISION= 1
CATEGORIES= games net
MASTER_SITES= http://www.teamxlink.co.uk/binary/
MASTER_SITE_SUBDIR=
DISTNAME= ${PORTNAME}_tree_${PORTVERSION}
EXTRACT_SUFX= .zip
MAINTAINER= sebster-kaid@sebster.com
COMMENT= XLink Kai tunneling server
NO_WRKSUBDIR= yes
USE_GMAKE= yes
USE_BISON= yes
USE_ZIP= yes
CC= gcc
CPP= g++
MAKE_ARGS= PREFIX="${PREFIX}" SYSTEM_CFLAGS="${CFLAGS}"
NO_PACKAGE= contains compile time path info, ignores cc cxx
post-patch:
@${GMAKE} -C ${WRKSRC} dist-clean
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/kaid ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/kaid.conf ${PREFIX}/etc/kaid.conf.sample
${INSTALL_SCRIPT} ${FILESDIR}/kaid.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk>