mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
ffde46cbf9
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.
44 lines
998 B
Makefile
44 lines
998 B
Makefile
# New ports collection makefile for: Enhanced SpeedStep control daemon
|
|
# Date created: 1 September 2004
|
|
# Whom: cperciva@daemonology.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= estctrl
|
|
PORTVERSION= 0.8
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.daemonology.net/freebsd-est/
|
|
|
|
MAINTAINER= cperciva@daemonology.net
|
|
COMMENT= Enhanced SpeedStep control daemon
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/modules/est.ko:${PORTSDIR}/sysutils/est
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
USE_RC_SUBR= yes
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
|
|
|
PLIST_FILES= sbin/estctrl \
|
|
etc/rc.d/estctrl.sh
|
|
|
|
MAKE_ENV= BINDIR=${PREFIX}/sbin
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} > 600015
|
|
IGNORE= estctrl now contained in the base system (see powerd(8))
|
|
.endif
|
|
|
|
post-extract:
|
|
${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${FILESDIR}/estctrl.sh > ${WRKDIR}/estctrl.sh
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/estctrl.sh ${PREFIX}/etc/rc.d/estctrl.sh
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|