Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2023 09:13:24 GMT
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 62a9311d3f08 - main - sysutils/intel-undervolt: update to 1.7
Message-ID:  <202308240913.37O9DOJH080424@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rodrigo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62a9311d3f08357be7fb5f90e8c66a11e32418d9

commit 62a9311d3f08357be7fb5f90e8c66a11e32418d9
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2023-08-24 08:52:17 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-08-24 09:13:13 +0000

    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 +++---
 sysutils/intel-undervolt/files/patch-Makefile.in |  8 ++++++++
 sysutils/intel-undervolt/files/patch-configure   | 20 ++++++++++++++++++++
 4 files changed, 36 insertions(+), 9 deletions(-)

diff --git a/sysutils/intel-undervolt/Makefile b/sysutils/intel-undervolt/Makefile
index e8fdbac27d40..be249d598aa6 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 b5b32acecd66..ffe38a90b47c 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 000000000000..f58918612c14
--- /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 000000000000..5b30e749bf4d
--- /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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308240913.37O9DOJH080424>