Skip to content

Commit ea28676

Browse files
committed
Merge branch 'pm-tools'
Merge a cpupower utility fix for 6.16-rc2 that unbreaks systemd service units installation on some sysems (Francesco Poli). * pm-tools: cpupower: split unitdir from libdir in Makefile
2 parents 332d6a9 + d08293e commit ea28676

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/power/cpupower/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ sbindir ?= /usr/sbin
7373
mandir ?= /usr/man
7474
libdir ?= /usr/lib
7575
libexecdir ?= /usr/libexec
76+
unitdir ?= /usr/lib/systemd/system
7677
includedir ?= /usr/include
7778
localedir ?= /usr/share/locale
7879
docdir ?= /usr/share/doc/packages/cpupower
@@ -309,9 +310,9 @@ install-tools: $(OUTPUT)cpupower
309310
$(INSTALL_DATA) cpupower-service.conf '$(DESTDIR)${confdir}'
310311
$(INSTALL) -d $(DESTDIR)${libexecdir}
311312
$(INSTALL_PROGRAM) cpupower.sh '$(DESTDIR)${libexecdir}/cpupower'
312-
$(INSTALL) -d $(DESTDIR)${libdir}/systemd/system
313-
sed 's|___CDIR___|${confdir}|; s|___LDIR___|${libexecdir}|' cpupower.service.in > '$(DESTDIR)${libdir}/systemd/system/cpupower.service'
314-
$(SETPERM_DATA) '$(DESTDIR)${libdir}/systemd/system/cpupower.service'
313+
$(INSTALL) -d $(DESTDIR)${unitdir}
314+
sed 's|___CDIR___|${confdir}|; s|___LDIR___|${libexecdir}|' cpupower.service.in > '$(DESTDIR)${unitdir}/cpupower.service'
315+
$(SETPERM_DATA) '$(DESTDIR)${unitdir}/cpupower.service'
315316

316317
install-man:
317318
$(INSTALL_DATA) -D man/cpupower.1 $(DESTDIR)${mandir}/man1/cpupower.1
@@ -348,7 +349,7 @@ uninstall:
348349
- rm -f $(DESTDIR)${bindir}/utils/cpupower
349350
- rm -f $(DESTDIR)${confdir}cpupower-service.conf
350351
- rm -f $(DESTDIR)${libexecdir}/cpupower
351-
- rm -f $(DESTDIR)${libdir}/systemd/system/cpupower.service
352+
- rm -f $(DESTDIR)${unitdir}/cpupower.service
352353
- rm -f $(DESTDIR)${mandir}/man1/cpupower.1
353354
- rm -f $(DESTDIR)${mandir}/man1/cpupower-frequency-set.1
354355
- rm -f $(DESTDIR)${mandir}/man1/cpupower-frequency-info.1

0 commit comments

Comments
 (0)