1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/mpd/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

41 lines
876 B
Makefile

# New ports collection makefile for: mpd
# Date created: 25 Feb 1999
# Whom: Archie Cobbs
#
# $FreeBSD$
#
PORTNAME= mpd
PORTVERSION= 3.18
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= archie
DIST_SUBDIR= mpd
MAINTAINER= archie@freebsd.org
COMMENT= Multi-link PPP daemon based on netgraph(4)
MTREE_FILE= ${FILESDIR}/mpd.mtree
MAN8= mpd.8
MANCOMPRESSED= maybe
USE_OPENSSL= yes
USE_RC_SUBR= yes
MAKE_ENV= COPTS="${COPTS} -I${OPENSSLINC}" LDADD="${LDADD} -L${OPENSSLLIB}"
.include <bsd.port.pre.mk>
pre-build:
@${ECHO}
@${ECHO} "Use WITH_OPENSSL_PORT=yes if you use OPENSSL from ports"
@${ECHO}
post-install:
@${SED} -e "s=%%RC_SUBR%%=${RC_SUBR}=" \
-e "s=%%PREFIX%%=${PREFIX}=" \
< ${FILESDIR}/mpd.sh > ${WRKSRC}/mpd.sh
@${INSTALL_SCRIPT} ${WRKSRC}/mpd.sh ${PREFIX}/etc/rc.d/mpd.sh
.include <bsd.port.post.mk>