[arch-commits] Commit in hdparm/repos (3 files)

Tobias Powalowski tpowa at gemini.archlinux.org
Sat Jul 9 15:22:26 UTC 2022


    Date: Saturday, July 9, 2022 @ 15:22:26
  Author: tpowa
Revision: 450567

archrelease: copy trunk to testing-x86_64

Added:
  hdparm/repos/testing-x86_64/
  hdparm/repos/testing-x86_64/PKGBUILD
    (from rev 450566, hdparm/trunk/PKGBUILD)
  hdparm/repos/testing-x86_64/pass-ldflags.patch
    (from rev 450566, hdparm/trunk/pass-ldflags.patch)

--------------------+
 PKGBUILD           |   40 ++++++++++++++++++++++++++++++++++++++++
 pass-ldflags.patch |   11 +++++++++++
 2 files changed, 51 insertions(+)

Copied: hdparm/repos/testing-x86_64/PKGBUILD (from rev 450566, hdparm/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-07-09 15:22:26 UTC (rev 450567)
@@ -0,0 +1,40 @@
+# Maintainer: Paul Mattal <paul at archlinux.org>
+
+pkgname=hdparm
+pkgver=9.64
+pkgrel=1
+pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
+arch=(x86_64)
+depends=('glibc')
+source=(https://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
+        pass-ldflags.patch)
+license=('BSD')
+url="https://sourceforge.net/projects/hdparm/"
+sha512sums=('c561825143d8872cc2940bd6ba72162f91792bd63b6a8511058e79cc96feb6a4a9d22275581ef2eefab64a4035587b3a63175ccc58fa46f1059b4680d9d58ec4'
+            '4103276304a858a9540ce173f22c5eb64cadac36b5cd38d9396d63fa721a579e16d4d0f84e3c627d0620c42815c437abf14c9657fdb1a28e8263a52a0bb26c4f')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # Enable FULL RELRO
+  patch -Np1 -i "$srcdir"/pass-ldflags.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  # install
+  mkdir -p "${pkgdir}"/usr/bin
+  make DESTDIR="${pkgdir}" sbindir=/usr/bin install
+  install -m755 contrib/idectl "${pkgdir}"/usr/bin
+  install -m755 contrib/ultrabayd "${pkgdir}"/usr/bin
+
+  install -D -m 0644 $srcdir/$pkgname-$pkgver/wiper/README.txt "$pkgdir"/usr/share/doc/wiper/README.txt
+  install -D -m 0755 $srcdir/$pkgname-$pkgver/wiper/wiper.sh "$pkgdir"/usr/bin/wiper.sh
+
+  #install license file
+  install -D -m 644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT
+}

Copied: hdparm/repos/testing-x86_64/pass-ldflags.patch (from rev 450566, hdparm/trunk/pass-ldflags.patch)
===================================================================
--- testing-x86_64/pass-ldflags.patch	                        (rev 0)
+++ testing-x86_64/pass-ldflags.patch	2022-07-09 15:22:26 UTC (rev 450567)
@@ -0,0 +1,11 @@
+diff -aur hdparm-9.58/Makefile hdparm-9.58.new/Makefile
+--- hdparm-9.60/Makefile	2017-05-01 21:08:42.000000000 +0200
++++ hdparm-9.60.new/Makefile	2019-09-22 19:19:03.783229803 +0200
+@@ -15,6 +15,7 @@
+ 
+ CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
+ 
++LDFLAGS := -s ${LDFLAGS}
+ INSTALL = install
+ INSTALL_DATA = $(INSTALL) -m 644
+ INSTALL_DIR = $(INSTALL) -m 755 -d



More information about the arch-commits mailing list