1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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
This commit is contained in:
Rodrigo Osorio 2023-08-24 10:52:17 +02:00
parent 604f102f86
commit 62a9311d3f
4 changed files with 36 additions and 9 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= intel-undervolt
DISTVERSION= 1.5-7
DISTVERSIONSUFFIX= -g66cfb65
DISTVERSION= 1.7
CATEGORIES= sysutils
MAINTAINER= ports@FreeBSD.org
@ -10,16 +9,16 @@ WWW= https://github.com/kitsunyan/intel-undervolt
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= specifically for Haswell and newer Intel CPUs
RUN_DEPENDS= bash:shells/bash
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= kitsunyan
GNU_CONFIGURE= yes
MAKE_ARGS= CC="${CC}" SYSCONFDIR="${PREFIX}/etc"
MAKE_ARGS= CC="${CC}" \
SYSCONFDIR="${PREFIX}/etc"
PLIST_FILES= bin/${PORTNAME} \
"@sample etc/${PORTNAME}.conf.sample"

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1546513030
SHA256 (kitsunyan-intel-undervolt-1.5-7-g66cfb65_GH0.tar.gz) = 4e0142f24d81dd1aec0b82e94e1773360f2c7277f6833a8207dcdbbae9da11ef
SIZE (kitsunyan-intel-undervolt-1.5-7-g66cfb65_GH0.tar.gz) = 18777
TIMESTAMP = 1692823288
SHA256 (kitsunyan-intel-undervolt-1.7_GH0.tar.gz) = 29a7ebaee4830d65d0b5cefa6d497887d4f23f34659876dfe944f3a020cf33ff
SIZE (kitsunyan-intel-undervolt-1.7_GH0.tar.gz) = 31481

View File

@ -0,0 +1,8 @@
--- Makefile.in.orig 2019-07-06 19:21:58 UTC
+++ Makefile.in
@@ -1,4 +1,4 @@
-CC = gcc
+CC ?= gcc
CFLAGS =
EXTRA_CFLAGS = -Wall -Wextra
DESTDIR =

View File

@ -0,0 +1,20 @@
--- configure.orig 2023-08-23 20:56:30 UTC
+++ configure
@@ -65,7 +65,7 @@
printf '%s' "s,^\($1 =\).*$,\1 $2,"
}
-sed Makefile.in \
+sed \
-e "`sedcond SYSTEMD "$enable_systemd"`" \
-e "`sedcond ELOGIND "$enable_elogind"`" \
-e "`sedcond OPENRC "$enable_openrc"`" \
@@ -74,7 +74,7 @@
-e "`sedarg RUNSTATEDIR "$runstatedir"`" \
-e "`sedarg UNITDIR "$unitdir"`" \
-e "`sedarg ELOGINDDIR "$eloginddir"`" \
-> Makefile || exit 1
+Makefile.in > Makefile || exit 1
echo "Enable systemd: $enable_systemd"
echo "Enable elogind: $enable_elogind"