Skip to content

Commit

Permalink
sysutils/intel-undervolt: update to 1.7
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rosorio committed Aug 24, 2023
1 parent 604f102 commit 62a9311
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
11 changes: 5 additions & 6 deletions 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
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions 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
8 changes: 8 additions & 0 deletions 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 =
20 changes: 20 additions & 0 deletions 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"

0 comments on commit 62a9311

Please sign in to comment.