atop: Merge all path-fixing to a single patch, comment the remaining patches

This commit is contained in:
Paul Schyska
2021-05-16 22:08:05 +02:00
parent 27d323d281
commit 76554beed8
7 changed files with 58 additions and 44 deletions
+6 -3
View File
@@ -35,11 +35,14 @@ stdenv.mkDerivation rec {
];
patches = [
./atop-pm.sh.patch
./atop-rotate.service.patch
# Fix paths in atop.service, atop-rotate.service, atopgpu.service, atopacct.service,
# and atop-pm.sh
./fix-paths.patch
# Don't fail on missing /etc/default/atop, make sure /var/log/atop exists pre-start
./atop.service.patch
# Specify PIDFile in /run, not /var/run to silence systemd warning
./atopacct.service.patch
] ++ (if withAtopgpu then [ ./atopgpu.service.patch ] else [ ]);
];
preConfigure = ''
for f in *.{sh,service}; do