From 62a9311d3f08357be7fb5f90e8c66a11e32418d9 Mon Sep 17 00:00:00 2001 From: Rodrigo Osorio Date: Thu, 24 Aug 2023 10:52:17 +0200 Subject: [PATCH] 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 --- sysutils/intel-undervolt/Makefile | 11 +++++----- sysutils/intel-undervolt/distinfo | 6 +++--- .../intel-undervolt/files/patch-Makefile.in | 8 ++++++++ .../intel-undervolt/files/patch-configure | 20 +++++++++++++++++++ 4 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 sysutils/intel-undervolt/files/patch-Makefile.in create mode 100644 sysutils/intel-undervolt/files/patch-configure diff --git a/sysutils/intel-undervolt/Makefile b/sysutils/intel-undervolt/Makefile index e8fdbac27d408..be249d598aa65 100644 --- a/sysutils/intel-undervolt/Makefile +++ b/sysutils/intel-undervolt/Makefile @@ -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" diff --git a/sysutils/intel-undervolt/distinfo b/sysutils/intel-undervolt/distinfo index b5b32acecd661..ffe38a90b47cf 100644 --- a/sysutils/intel-undervolt/distinfo +++ b/sysutils/intel-undervolt/distinfo @@ -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 diff --git a/sysutils/intel-undervolt/files/patch-Makefile.in b/sysutils/intel-undervolt/files/patch-Makefile.in new file mode 100644 index 0000000000000..f58918612c148 --- /dev/null +++ b/sysutils/intel-undervolt/files/patch-Makefile.in @@ -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 = diff --git a/sysutils/intel-undervolt/files/patch-configure b/sysutils/intel-undervolt/files/patch-configure new file mode 100644 index 0000000000000..5b30e749bf4db --- /dev/null +++ b/sysutils/intel-undervolt/files/patch-configure @@ -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"