|
Justin Vreeland |
b079dd |
From 398305a92484dfc3475e90da8fdce7e26fa62a1e Mon Sep 17 00:00:00 2001
|
|
Justin Vreeland |
b079dd |
From: Justin Vreeland <jvreeland@twitter.com>
|
|
Justin Vreeland |
b079dd |
Date: Mon, 7 Jun 2021 14:56:26 -0700
|
|
Justin Vreeland |
b079dd |
Subject: [PATCH 1/1] Rebase hdparm to CentOS Stream 9 version 9.62
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
---
|
|
Justin Vreeland |
b079dd |
.hdparm.metadata | 2 +-
|
|
Justin Vreeland |
b079dd |
SOURCES/hdparm-9.54-dco_calc.patch | 12 ---
|
|
Justin Vreeland |
b079dd |
.../hdparm-9.54-resourceleak-fixes-2.patch | 23 ++++++
|
|
Justin Vreeland |
b079dd |
SOURCES/hdparm-9.54-resourceleak-fixes.patch | 81 +++++++++++++++++++
|
|
Justin Vreeland |
b079dd |
...atch => hdparm-9.60-ditch_dead_code.patch} | 11 ++-
|
|
Justin Vreeland |
b079dd |
SOURCES/hdparm-9.60-sysfs-fclose.patch | 13 +++
|
|
Justin Vreeland |
b079dd |
SPECS/hdparm.spec | 43 ++++++----
|
|
Justin Vreeland |
b079dd |
7 files changed, 151 insertions(+), 34 deletions(-)
|
|
Justin Vreeland |
b079dd |
delete mode 100644 SOURCES/hdparm-9.54-dco_calc.patch
|
|
Justin Vreeland |
b079dd |
create mode 100644 SOURCES/hdparm-9.54-resourceleak-fixes-2.patch
|
|
Justin Vreeland |
b079dd |
create mode 100644 SOURCES/hdparm-9.54-resourceleak-fixes.patch
|
|
Justin Vreeland |
b079dd |
rename SOURCES/{hdparm-9.43-ditch_dead_code.patch => hdparm-9.60-ditch_dead_code.patch} (80%)
|
|
Justin Vreeland |
b079dd |
create mode 100644 SOURCES/hdparm-9.60-sysfs-fclose.patch
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
diff --git a/.hdparm.metadata b/.hdparm.metadata
|
|
Justin Vreeland |
b079dd |
index 00c7ee3..f86bd1d 100644
|
|
Justin Vreeland |
b079dd |
--- a/.hdparm.metadata
|
|
Justin Vreeland |
b079dd |
+++ b/.hdparm.metadata
|
|
Justin Vreeland |
b079dd |
@@ -1 +1 @@
|
|
Justin Vreeland |
b079dd |
-b3425a141f1c0fe9f53b18631437129c2155ee45 SOURCES/hdparm-9.58.tar.gz
|
|
Justin Vreeland |
b079dd |
+141f1c0fe9f53b18631437129c2155ee45 SOURCES/hdparm-9.62.tar.gz
|
|
Justin Vreeland |
b079dd |
diff --git a/SOURCES/hdparm-9.54-dco_calc.patch b/SOURCES/hdparm-9.54-dco_calc.patch
|
|
Justin Vreeland |
b079dd |
deleted file mode 100644
|
|
Justin Vreeland |
b079dd |
index 3f1c659..0000000
|
|
Justin Vreeland |
b079dd |
--- a/SOURCES/hdparm-9.54-dco_calc.patch
|
|
Justin Vreeland |
b079dd |
+++ /dev/null
|
|
Justin Vreeland |
b079dd |
@@ -1,12 +0,0 @@
|
|
Justin Vreeland |
b079dd |
-diff --color -u hdparm-9.54.orig/identify.c hdparm-9.54/identify.c
|
|
Justin Vreeland |
b079dd |
---- hdparm-9.54.orig/identify.c 2016-10-17 11:06:28.000000001 -0700
|
|
Justin Vreeland |
b079dd |
-+++ hdparm-9.54/identify.c 2021-04-28 06:19:01.005819050 -0700
|
|
Justin Vreeland |
b079dd |
-@@ -1488,7 +1488,7 @@
|
|
Justin Vreeland |
b079dd |
- else if (dco[2] & (1<<0)) printf(" udma0");
|
|
Justin Vreeland |
b079dd |
- putchar('\n');
|
|
Justin Vreeland |
b079dd |
-
|
|
Justin Vreeland |
b079dd |
-- lba = ((((__u64)dco[5]) << 32) | (dco[4] << 16) | dco[3]) + 1;
|
|
Justin Vreeland |
b079dd |
-+ lba = ((((__u64)dco[5]) << 32) | ((__u64)dco[4] << 16) |(__u64)dco[3]) + 1U;
|
|
Justin Vreeland |
b079dd |
- printf("\tReal max sectors: %llu\n", lba);
|
|
Justin Vreeland |
b079dd |
-
|
|
Justin Vreeland |
b079dd |
- printf("\tATA command/feature sets:");
|
|
Justin Vreeland |
b079dd |
diff --git a/SOURCES/hdparm-9.54-resourceleak-fixes-2.patch b/SOURCES/hdparm-9.54-resourceleak-fixes-2.patch
|
|
Justin Vreeland |
b079dd |
new file mode 100644
|
|
Justin Vreeland |
b079dd |
index 0000000..2fac03a
|
|
Justin Vreeland |
b079dd |
--- /dev/null
|
|
Justin Vreeland |
b079dd |
+++ b/SOURCES/hdparm-9.54-resourceleak-fixes-2.patch
|
|
Justin Vreeland |
b079dd |
@@ -0,0 +1,23 @@
|
|
Justin Vreeland |
b079dd |
+diff -up hdparm-9.54/hdparm.c.bak hdparm-9.54/hdparm.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.54/hdparm.c.bak 2020-06-01 17:56:47.257520643 +0200
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.54/hdparm.c 2020-06-01 17:57:29.285084217 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -461,12 +461,15 @@ static void dump_identity (__u16 *idw)
|
|
Justin Vreeland |
b079dd |
+ {
|
|
Justin Vreeland |
b079dd |
+ int i;
|
|
Justin Vreeland |
b079dd |
+ char pmodes[64] = {0,}, dmodes[128]={0,}, umodes[128]={0,};
|
|
Justin Vreeland |
b079dd |
+- char *model = strip(strndup((char *)&idw[27], 40));
|
|
Justin Vreeland |
b079dd |
+- char *fwrev = strip(strndup((char *)&idw[23], 8));
|
|
Justin Vreeland |
b079dd |
+- char *serno = strip(strndup((char *)&idw[10], 20));
|
|
Justin Vreeland |
b079dd |
++ char *model = strndup((char *)&idw[27], 40);
|
|
Justin Vreeland |
b079dd |
++ char *model_s = strip(model);
|
|
Justin Vreeland |
b079dd |
++ char *fwrev = strndup((char *)&idw[23], 8);
|
|
Justin Vreeland |
b079dd |
++ char *fwrev_s = strip(fwrev);
|
|
Justin Vreeland |
b079dd |
++ char *serno = strndup((char *)&idw[10], 20);
|
|
Justin Vreeland |
b079dd |
++ char *serno_s = strip(serno);
|
|
Justin Vreeland |
b079dd |
+ __u8 tPIO;
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+- printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model, fwrev, serno);
|
|
Justin Vreeland |
b079dd |
++ printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model_s, fwrev_s, serno_s);
|
|
Justin Vreeland |
b079dd |
+ printf("\n Config={");
|
|
Justin Vreeland |
b079dd |
+ for (i = 0; i <= 15; i++) {
|
|
Justin Vreeland |
b079dd |
+ if (idw[0] & (1<
|
|
Justin Vreeland |
b079dd |
diff --git a/SOURCES/hdparm-9.54-resourceleak-fixes.patch b/SOURCES/hdparm-9.54-resourceleak-fixes.patch
|
|
Justin Vreeland |
b079dd |
new file mode 100644
|
|
Justin Vreeland |
b079dd |
index 0000000..1cc6630
|
|
Justin Vreeland |
b079dd |
--- /dev/null
|
|
Justin Vreeland |
b079dd |
+++ b/SOURCES/hdparm-9.54-resourceleak-fixes.patch
|
|
Justin Vreeland |
b079dd |
@@ -0,0 +1,81 @@
|
|
Justin Vreeland |
b079dd |
+diff -urN hdparm-9.54/fibmap.c hdparm-9.54_patched/fibmap.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.54/fibmap.c 2016-10-13 01:50:52.000000000 +0200
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.54_patched/fibmap.c 2018-10-04 12:17:39.630627349 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -232,6 +232,7 @@
|
|
Justin Vreeland |
b079dd |
+ if (fstat(fd, &st) == -1) {
|
|
Justin Vreeland |
b079dd |
+ err = errno;
|
|
Justin Vreeland |
b079dd |
+ perror(file_name);
|
|
Justin Vreeland |
b079dd |
++ close(fd);
|
|
Justin Vreeland |
b079dd |
+ return err;
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+ if (!S_ISREG(st.st_mode)) {
|
|
Justin Vreeland |
b079dd |
+diff -urN hdparm-9.54/fwdownload.c hdparm-9.54_patched/fwdownload.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.54/fwdownload.c 2017-12-06 13:41:40.000000000 +0100
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.54_patched/fwdownload.c 2018-10-04 12:19:23.819336125 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -95,12 +95,19 @@
|
|
Justin Vreeland |
b079dd |
+ int xfer_min = 1, xfer_max = 0xffff, xfer_size;
|
|
Justin Vreeland |
b079dd |
+ ssize_t offset;
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+- if ((fwfd = open(fwpath, O_RDONLY)) == -1 || fstat(fwfd, &st) == -1) {
|
|
Justin Vreeland |
b079dd |
++ if ((fwfd = open(fwpath, O_RDONLY)) == -1) {
|
|
Justin Vreeland |
b079dd |
+ err = errno;
|
|
Justin Vreeland |
b079dd |
+ perror(fwpath);
|
|
Justin Vreeland |
b079dd |
+ return err;
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
++ if (fstat(fwfd, &st) == -1) {
|
|
Justin Vreeland |
b079dd |
++ err = errno;
|
|
Justin Vreeland |
b079dd |
++ perror(fwpath);
|
|
Justin Vreeland |
b079dd |
++ close(fwfd);
|
|
Justin Vreeland |
b079dd |
++ return err;
|
|
Justin Vreeland |
b079dd |
++ }
|
|
Justin Vreeland |
b079dd |
++
|
|
Justin Vreeland |
b079dd |
+ if (!S_ISREG(st.st_mode)) {
|
|
Justin Vreeland |
b079dd |
+ fprintf(stderr, "%s: not a regular file\n", fwpath);
|
|
Justin Vreeland |
b079dd |
+ err = EINVAL;
|
|
Justin Vreeland |
b079dd |
+diff -urN hdparm-9.54/hdparm.c hdparm-9.54_patched/hdparm.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.54/hdparm.c 2018-02-03 19:10:40.000000000 +0100
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.54_patched/hdparm.c 2018-10-04 13:25:58.924126976 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -590,6 +590,9 @@
|
|
Justin Vreeland |
b079dd |
+ printf("\n");
|
|
Justin Vreeland |
b079dd |
+ printf("\n * signifies the current active mode\n");
|
|
Justin Vreeland |
b079dd |
+ printf("\n");
|
|
Justin Vreeland |
b079dd |
++ free(fwrev);
|
|
Justin Vreeland |
b079dd |
++ free(model);
|
|
Justin Vreeland |
b079dd |
++ free(serno);
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+ static const char *busstate_str (unsigned int value)
|
|
Justin Vreeland |
b079dd |
+@@ -1174,8 +1177,10 @@
|
|
Justin Vreeland |
b079dd |
+ if (!shortened)
|
|
Justin Vreeland |
b079dd |
+ fdevname = strdup("the full disk");
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+- if (start_lba == 0ULL)
|
|
Justin Vreeland |
b079dd |
++ if (start_lba == 0ULL) {
|
|
Justin Vreeland |
b079dd |
++ free(fdevname);
|
|
Justin Vreeland |
b079dd |
+ return 0;
|
|
Justin Vreeland |
b079dd |
++ }
|
|
Justin Vreeland |
b079dd |
+ if (start_lba == START_LBA_UNKNOWN || fd_is_raid(fd)) {
|
|
Justin Vreeland |
b079dd |
+ fprintf(stderr, "%s is a RAID device: please specify an absolute LBA of a raw member device instead (raid1 only)\n", devname);
|
|
Justin Vreeland |
b079dd |
+ } else if (msg) {
|
|
Justin Vreeland |
b079dd |
+@@ -1187,6 +1192,7 @@
|
|
Justin Vreeland |
b079dd |
+ fprintf(stderr, "The absolute LBA of sector %llu from %s should be %llu\n", lba, devname, start_lba + lba);
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+ fprintf(stderr, "Aborting.\n");
|
|
Justin Vreeland |
b079dd |
++ free(fdevname);
|
|
Justin Vreeland |
b079dd |
+ exit(EINVAL);
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+diff -urN hdparm-9.54/sysfs.c hdparm-9.54_patched/sysfs.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.54/sysfs.c 2018-10-04 12:14:29.900157666 +0200
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.54_patched/sysfs.c 2018-10-04 14:13:07.056659514 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -60,8 +63,8 @@
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+ if (count < 0)
|
|
Justin Vreeland |
b079dd |
+ err = errno;
|
|
Justin Vreeland |
b079dd |
+- fclose(fp);
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
++ fclose(fp);
|
|
Justin Vreeland |
b079dd |
+ if (err && verbose) perror(path);
|
|
Justin Vreeland |
b079dd |
+ *pathtail = '\0';
|
|
Justin Vreeland |
b079dd |
+ return err;
|
|
Justin Vreeland |
b079dd |
diff --git a/SOURCES/hdparm-9.43-ditch_dead_code.patch b/SOURCES/hdparm-9.60-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
similarity index 80%
|
|
Justin Vreeland |
b079dd |
rename from SOURCES/hdparm-9.43-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
rename to SOURCES/hdparm-9.60-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
index 4f4f177..cb67b00 100644
|
|
Justin Vreeland |
b079dd |
--- a/SOURCES/hdparm-9.43-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
+++ b/SOURCES/hdparm-9.60-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
@@ -1,7 +1,6 @@
|
|
Justin Vreeland |
b079dd |
-Index: hdparm-9.43/sgio.c
|
|
Justin Vreeland |
b079dd |
-===================================================================
|
|
Justin Vreeland |
b079dd |
---- hdparm-9.43.orig/sgio.c
|
|
Justin Vreeland |
b079dd |
-+++ hdparm-9.43/sgio.c
|
|
Justin Vreeland |
b079dd |
+diff -up hdparm-9.60/sgio.c.bak hdparm-9.60/sgio.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.60/sgio.c.bak 2019-01-03 23:37:54.000000000 +0100
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.60/sgio.c 2021-04-07 16:10:36.971836569 +0200
|
|
Justin Vreeland |
b079dd |
@@ -17,6 +17,10 @@
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
#include <linux/hdreg.h>
|
|
Justin Vreeland |
b079dd |
@@ -22,7 +21,7 @@ Index: hdparm-9.43/sgio.c
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
if (tf->command == ATA_OP_PIDENTIFY)
|
|
Justin Vreeland |
b079dd |
prefer12 = 0;
|
|
Justin Vreeland |
b079dd |
-@@ -302,14 +306,16 @@ int sg16 (int fd, int rw, int dma, struc
|
|
Justin Vreeland |
b079dd |
+@@ -306,14 +310,16 @@ int sg16 (int fd, int rw, int dma, struc
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
desc = sb + 8;
|
|
Justin Vreeland |
b079dd |
if (io_hdr.driver_status != SG_DRIVER_SENSE) {
|
|
Justin Vreeland |
b079dd |
@@ -44,4 +43,4 @@ Index: hdparm-9.43/sgio.c
|
|
Justin Vreeland |
b079dd |
+#endif
|
|
Justin Vreeland |
b079dd |
}
|
|
Justin Vreeland |
b079dd |
} else if (sb[0] != 0x72 || sb[7] < 14 || desc[0] != 0x09 || desc[1] < 0x0c) {
|
|
Justin Vreeland |
b079dd |
- dump_bytes("SG_IO: bad/missing sense data, sb[]", sb, sizeof(sb));
|
|
Justin Vreeland |
b079dd |
+ if (verbose || tf->command != ATA_OP_IDENTIFY)
|
|
Justin Vreeland |
b079dd |
diff --git a/SOURCES/hdparm-9.60-sysfs-fclose.patch b/SOURCES/hdparm-9.60-sysfs-fclose.patch
|
|
Justin Vreeland |
b079dd |
new file mode 100644
|
|
Justin Vreeland |
b079dd |
index 0000000..0828da8
|
|
Justin Vreeland |
b079dd |
--- /dev/null
|
|
Justin Vreeland |
b079dd |
+++ b/SOURCES/hdparm-9.60-sysfs-fclose.patch
|
|
Justin Vreeland |
b079dd |
@@ -0,0 +1,13 @@
|
|
Justin Vreeland |
b079dd |
+diff -up hdparm-9.60/sysfs.c.bak hdparm-9.60/sysfs.c
|
|
Justin Vreeland |
b079dd |
+--- hdparm-9.60/sysfs.c.bak 2021-04-15 15:48:56.806354847 +0200
|
|
Justin Vreeland |
b079dd |
++++ hdparm-9.60/sysfs.c 2021-04-16 14:44:42.520395436 +0200
|
|
Justin Vreeland |
b079dd |
+@@ -61,7 +61,8 @@ static int sysfs_write_attr (char *path,
|
|
Justin Vreeland |
b079dd |
+ if (count < 0)
|
|
Justin Vreeland |
b079dd |
+ err = errno;
|
|
Justin Vreeland |
b079dd |
+ }
|
|
Justin Vreeland |
b079dd |
+- fclose(fp);
|
|
Justin Vreeland |
b079dd |
++ if (fp)
|
|
Justin Vreeland |
b079dd |
++ fclose(fp);
|
|
Justin Vreeland |
b079dd |
+ if (err && verbose) perror(path);
|
|
Justin Vreeland |
b079dd |
+ *pathtail = '\0';
|
|
Justin Vreeland |
b079dd |
+ return err;
|
|
Justin Vreeland |
b079dd |
diff --git a/SPECS/hdparm.spec b/SPECS/hdparm.spec
|
|
Justin Vreeland |
b079dd |
index da001e7..d1f34e8 100644
|
|
Justin Vreeland |
b079dd |
--- a/SPECS/hdparm.spec
|
|
Justin Vreeland |
b079dd |
+++ b/SPECS/hdparm.spec
|
|
Justin Vreeland |
b079dd |
@@ -1,18 +1,22 @@
|
|
Justin Vreeland |
b079dd |
Summary: A utility for displaying and/or setting hard disk parameters
|
|
Justin Vreeland |
b079dd |
Name: hdparm
|
|
Justin Vreeland |
b079dd |
-Version: 9.58
|
|
Justin Vreeland |
b079dd |
-Release: 2%{?dist}
|
|
Justin Vreeland |
b079dd |
+Version: 9.62
|
|
Justin Vreeland |
b079dd |
+Release: 1%{?dist}
|
|
Justin Vreeland |
b079dd |
License: BSD
|
|
Justin Vreeland |
b079dd |
URL: https://sourceforge.net/projects/%{name}/
|
|
Justin Vreeland |
b079dd |
Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Justin Vreeland |
b079dd |
-Patch0: %{name}-9.43-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
+Patch0: %{name}-9.60-ditch_dead_code.patch
|
|
Justin Vreeland |
b079dd |
Patch1: %{name}-9.43-close_fd.patch
|
|
Justin Vreeland |
b079dd |
Patch2: %{name}-9.43-get_geom.patch
|
|
Justin Vreeland |
b079dd |
-Patch3: %{name}-9.54-dco_calc.patch
|
|
Justin Vreeland |
b079dd |
+Patch3: %{name}-9.54-resourceleak-fixes.patch
|
|
Justin Vreeland |
b079dd |
+Patch4: %{name}-9.54-resourceleak-fixes-2.patch
|
|
Justin Vreeland |
b079dd |
+Patch5: %{name}-9.60-sysfs-fclose.patch
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
BuildRequires: gcc
|
|
Justin Vreeland |
b079dd |
BuildRequires: make
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
+Provides: /sbin/hdparm
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
%description
|
|
Justin Vreeland |
b079dd |
Hdparm is a useful system utility for setting (E)IDE hard drive
|
|
Justin Vreeland |
b079dd |
parameters. For example, hdparm can be used to tweak hard drive
|
|
Justin Vreeland |
b079dd |
@@ -25,27 +29,36 @@ performance and to spin down hard drives for power conservation.
|
|
Justin Vreeland |
b079dd |
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
%install
|
|
Justin Vreeland |
b079dd |
-mkdir -p $RPM_BUILD_ROOT/sbin
|
|
Justin Vreeland |
b079dd |
-mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
Justin Vreeland |
b079dd |
-install -c -m 755 hdparm $RPM_BUILD_ROOT/sbin/hdparm
|
|
Justin Vreeland |
b079dd |
-install -c -m 644 hdparm.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
Justin Vreeland |
b079dd |
+mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
Justin Vreeland |
b079dd |
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
Justin Vreeland |
b079dd |
+install -c -m 755 hdparm $RPM_BUILD_ROOT%{_sbindir}/hdparm
|
|
Justin Vreeland |
b079dd |
+install -c -m 644 hdparm.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
%files
|
|
Justin Vreeland |
b079dd |
%doc hdparm.lsm Changelog README.acoustic TODO
|
|
Justin Vreeland |
b079dd |
%license LICENSE.TXT
|
|
Justin Vreeland |
b079dd |
-/sbin/hdparm
|
|
Justin Vreeland |
b079dd |
+%{_sbindir}/hdparm
|
|
Justin Vreeland |
b079dd |
%{_mandir}/man8/hdparm.8*
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
%changelog
|
|
Justin Vreeland |
b079dd |
-* Tue May 18 2021 Justin Vreeland <jvreeland@twitter.com> - 9.58-2
|
|
Justin Vreeland |
b079dd |
-- add dco-calc.path https://bugzilla.redhat.com/show_bug.cgi?id=1959918
|
|
Justin Vreeland |
b079dd |
+* Mon Jun 7 2021 Justin Vreeland <vreeland.justin@gmail.com> - 9.62-1
|
|
Justin Vreeland |
b079dd |
+- CentOS 8 Stream Hyperscale SIG release
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+* Thu May 20 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.62-1
|
|
Justin Vreeland |
b079dd |
+- New upstream version 9.62 (#1961841)
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+* Fri Apr 16 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-4
|
|
Justin Vreeland |
b079dd |
+- Fix fclose() on sysfs file write
|
|
Justin Vreeland |
b079dd |
+
|
|
Justin Vreeland |
b079dd |
+* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 9.60-3
|
|
Justin Vreeland |
b079dd |
+- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
-* Tue Mar 2 2021 Justin Vreeland <jvreeland@twitter.com> - 9.58-1
|
|
Justin Vreeland |
b079dd |
-- Reset release to 1 for hyperscale sig
|
|
Justin Vreeland |
b079dd |
+* Thu Apr 15 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-2
|
|
Justin Vreeland |
b079dd |
+- Move hdparm binary to /usr/sbin
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
-* Tue Mar 2 2021 Justin Vreeland <jvreeland@twitter.com> - 9.58-5
|
|
Justin Vreeland |
b079dd |
-- Rebuild for CentOS-8-Stream Hyperscale
|
|
Justin Vreeland |
b079dd |
+* Fri Apr 09 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-1
|
|
Justin Vreeland |
b079dd |
+- New upstream version 9.60 (#1947860)
|
|
Justin Vreeland |
b079dd |
|
|
Justin Vreeland |
b079dd |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.58-5
|
|
Justin Vreeland |
b079dd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
Justin Vreeland |
b079dd |
--
|
|
Justin Vreeland |
b079dd |
2.32.0
|
|
Justin Vreeland |
b079dd |
|