Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
tuned


Commits:
66d3c293 by Manuel at 2025-02-02T20:41:25+01:00
Fix installation paths

Add SBINDIR to set correct installation path
Fix libexec scripts installation that were previously left out

- - - - -
7af7ac45 by Manuel at 2025-02-02T20:41:26+01:00
Add patch for $LIBEXECDIR support

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -17,7 +17,9 @@ pkgbase = tuned
        depends = python-linux-procfs
        depends = python-pyudev
        source = 
https://github.com/redhat-performance/tuned/archive/v2.25.0/tuned-2.25.0.tar.gz
+       source = 
libexecdir-support.patch::https://github.com/redhat-performance/tuned/commit/410344b8dbc64bada45be2c3ad78ab5e3ba1c0a1.patch
        sha512sums = 
dcec874faacdeb4f8bfb0b81a789cc8b0e88c19a8c091d2bd0609a18f70560d33c7917c4eb76532e9991e30a5721ad9949d013e36048a3282c82d218d961ddaf
+       sha512sums = 
8f5f51497fedecfbef141f3679cb5bfba36e1116956358f5e3ad505b7ff8d3ff469631ab77fa0c3f183377943666b2b166a4cc71bc31485340d2c8293e05d925
 
 pkgname = tuned
        optdepends = virt-what: Virtual machine detection


=====================================
PKGBUILD
=====================================
@@ -15,15 +15,16 @@ license=('GPL-2.0-or-later')
 depends=('ethtool' 'gawk' 'hdparm' 'polkit' 'perf' 'python-configobj'
          'python-dbus' 'python-gobject' 'python-linux-procfs' 'python-pyudev')
 makedepends=('desktop-file-utils')
-source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz";)
-sha512sums=('dcec874faacdeb4f8bfb0b81a789cc8b0e88c19a8c091d2bd0609a18f70560d33c7917c4eb76532e9991e30a5721ad9949d013e36048a3282c82d218d961ddaf')
+source=("https://github.com/redhat-performance/${pkgbase}/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz";
+       
"libexecdir-support.patch::https://github.com/redhat-performance/${pkgbase}/commit/410344b8dbc64bada45be2c3ad78ab5e3ba1c0a1.patch";)
+sha512sums=('dcec874faacdeb4f8bfb0b81a789cc8b0e88c19a8c091d2bd0609a18f70560d33c7917c4eb76532e9991e30a5721ad9949d013e36048a3282c82d218d961ddaf'
+            
'8f5f51497fedecfbef141f3679cb5bfba36e1116956358f5e3ad505b7ff8d3ff469631ab77fa0c3f183377943666b2b166a4cc71bc31485340d2c8293e05d925')
 
 prepare() {
   cd "${pkgbase}-${pkgver}"
-  mv libexec lib
 
-  sed -i 's|/libexec/|/lib/|g' Makefile
-  sed -i 's|/sbin/|/bin/|g' Makefile tuned.service tuned-gui.py 
tuned-gui.desktop tuned/ppd/tuned-ppd.service
+  patch -Np1 < '../libexecdir-support.patch'
+  sed -i 's|/sbin/|/bin/|g' tuned.service tuned-gui.py tuned-gui.desktop 
tuned/ppd/tuned-ppd.service
 }
 
 package_tuned() {
@@ -47,7 +48,7 @@ package_tuned() {
 
   cd "${pkgbase}-${pkgver}"
 
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" LIBEXECDIR="/usr/lib" install
   rm -rv "${pkgdir}"/{run,var}
 
   python -m compileall -d /usr/lib "${pkgdir}/usr/lib"
@@ -63,5 +64,5 @@ package_tuned-ppd() {
 
   cd "${pkgbase}-${pkgver}"
 
-  make DESTDIR="${pkgdir}" install-ppd
+  make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" LIBEXECDIR="/usr/lib" install-ppd
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tuned/-/compare/f82c988ae8fb4fdb3aafbfdc749f0ee8dbe1e7c8...7af7ac45dea12a0e48931af69c79a068ffdd8421

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tuned/-/compare/f82c988ae8fb4fdb3aafbfdc749f0ee8dbe1e7c8...7af7ac45dea12a0e48931af69c79a068ffdd8421
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to