aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cpupowerd/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-11-23 13:43:09 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-11-23 13:43:09 +0000
commit489b8f436cb95d2f83f72eda41806a1b88f83cc0 (patch)
tree89dd5d03eba187c4cd040ce39dbc53135aab1782 /sysutils/cpupowerd/Makefile
parentb7f7b23e62eae6d1da0b755fa06c044945eb1566 (diff)
downloadports-489b8f436cb95d2f83f72eda41806a1b88f83cc0.tar.gz
ports-489b8f436cb95d2f83f72eda41806a1b88f83cc0.zip
Notes
Diffstat (limited to 'sysutils/cpupowerd/Makefile')
-rw-r--r--sysutils/cpupowerd/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/cpupowerd/Makefile b/sysutils/cpupowerd/Makefile
new file mode 100644
index 000000000000..a2558b19a514
--- /dev/null
+++ b/sysutils/cpupowerd/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: cpupowerd
+# Date created: 2008-06-01
+# Whom: Bernhard Fr__hlich <decke@bluelife.at>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cpupowerd
+PORTVERSION= 0.2.0
+CATEGORIES= sysutils
+MASTER_SITES= SF
+
+MAINTAINER= decke@bluelife.at
+COMMENT= A CPU over- and undervolting daemon
+
+USE_RC_SUBR= cpupowerd
+ONLY_FOR_ARCHS= i386 amd64
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+MAKE_ENV+= GROUP=wheel \
+ RIGHTS=555
+
+OPTIONS= CREATELOAD "Install createload.sh for stability testing" Off
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800042
+BUILD_DEPENDS+= ${LOCALBASE}/include/cpu.h:${PORTSDIR}/sysutils/devcpu
+.endif
+
+.if defined(WITH_CREATELOAD)
+RUN_DEPENDS+= burnMMX:${PORTSDIR}/sysutils/cpuburn
+PLIST_SUB+= CREATELOAD=""
+.else
+PLIST_SUB+= CREATELOAD="@comment "
+.endif
+
+post-install:
+.if defined(WITH_CREATELOAD)
+ ${INSTALL_SCRIPT} ${WRKSRC}/../tools/createload.sh ${PREFIX}/bin/createload.sh
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${DOCSDIR}/CHANGELOG
+ ${INSTALL_DATA} ${WRKSRC}/../COPYING ${DOCSDIR}/COPYING
+ ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/../TODO ${DOCSDIR}/TODO
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>