freebsd-ports/sysutils/intel-undervolt/Makefile
Rodrigo Osorio 62a9311d3f sysutils/intel-undervolt: update to 1.7
Major changes for 1.6:
    * Fix flipped short term and long term enabled state
    * Partial FreeBSD and DragonFly BSD support
    * Allow to measure the power consumption using intel_rapl
    * Allow to enable or disable power limits
    * tdp is replaced with power package
    * apply is replaced with undervolt

Major changes for 1.7:
    * Add HWP hint switching feature
    * Add elogind support
    * Add OpenRC support
    * Use /bin/sh instead of /bin/bash
    * Add command line options
    * Allow to configure daemon actions
    * Add configuration option for triggers

Port changes:
    * reorder makefile to make linter happy
    * remove bash run dependency
2023-08-24 11:13:13 +02:00

35 lines
819 B
Makefile

PORTNAME= intel-undervolt
DISTVERSION= 1.7
CATEGORIES= sysutils
MAINTAINER= ports@FreeBSD.org
COMMENT= Intel CPU undervolting tool
WWW= https://github.com/kitsunyan/intel-undervolt
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= specifically for Haswell and newer Intel CPUs
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= kitsunyan
GNU_CONFIGURE= yes
MAKE_ARGS= CC="${CC}" \
SYSCONFDIR="${PREFIX}/etc"
PLIST_FILES= bin/${PORTNAME} \
"@sample etc/${PORTNAME}.conf.sample"
post-patch:
${REINPLACE_CMD} "s|/bin/bash|${LOCALBASE}/bin/bash|g" ${WRKSRC}/config.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>