aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/est/Makefile
blob: 563351aab25290ec5c1a3767c4353b6d0755d91d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    Enhanced SpeedStep driver
# Date created:             21 August 2004
# Whom:                 cperciva@daemonology.net
#
# $FreeBSD$
#

PORTNAME=   est
PORTVERSION=    0.7
CATEGORIES= sysutils
MASTER_SITES=   http://www.daemonology.net/freebsd-est/

MAINTAINER= cperciva@daemonology.net
COMMENT=    Enhanced SpeedStep driver for Pentium M processors

ONLY_FOR_ARCHS= i386
KMODDIR=    ${PREFIX}/modules
MAKE_ARGS=  KMODDIR="${KMODDIR}"

USE_RC_SUBR=    yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

PLIST_FILES=    modules/est.ko          \
        etc/rc.d/est.sh

post-extract:
    ${SED}  ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}    \
        ${FILESDIR}/est.sh > ${WRKDIR}/est.sh

pre-install:
    ${MKDIR} ${KMODDIR}

post-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/est.sh
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>