[arch-commits] Commit in smartmontools/repos (3 files)
Christian Hesse
eworm at gemini.archlinux.org
Tue Mar 1 09:57:45 UTC 2022
Date: Tuesday, March 1, 2022 @ 09:57:45
Author: eworm
Revision: 438259
archrelease: copy trunk to testing-x86_64
Added:
smartmontools/repos/testing-x86_64/
smartmontools/repos/testing-x86_64/PKGBUILD
(from rev 438258, smartmontools/trunk/PKGBUILD)
smartmontools/repos/testing-x86_64/smartd.conf
(from rev 438258, smartmontools/trunk/smartd.conf)
-------------+
PKGBUILD | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
smartd.conf | 1
2 files changed, 67 insertions(+)
Copied: smartmontools/repos/testing-x86_64/PKGBUILD (from rev 438258, smartmontools/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-03-01 09:57:45 UTC (rev 438259)
@@ -0,0 +1,66 @@
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Jani Talikka <jani.talikka at gmail.com>
+# Contributor: Ralf Barth <archlinux.org at haggy.org>
+
+pkgname=smartmontools
+pkgver=7.3
+pkgrel=1
+pkgdesc='Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives'
+url='http://smartmontools.sourceforge.net'
+license=('GPL')
+arch=('x86_64')
+depends=('gcc-libs' 'libcap-ng' 'bash' 'systemd-libs')
+makedepends=('systemd')
+optdepends=('s-nail: to get mail alerts to work')
+backup=('etc/smartd.conf'
+ 'etc/conf.d/smartd')
+validpgpkeys=('0C9577FD2C4CFCB4B9A599640A30812EFF3AEFF5') # Smartmontools Signing Key (through 2025) <smartmontools-support at listi.jpberlin.de>
+source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
+ 'smartd.conf')
+sha256sums=('a544f8808d0c58cfb0e7424ca1841cb858a974922b035d505d4e4c248be3a22b'
+ 'SKIP'
+ 'c2c0f2f6b4a3f3d76da1c7706139297aef6e3f2a705eb7fdd800544812427c74')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # make sure to use `uname -n` instead of `hostname`
+ sed -i "/^os_hostname/c os_hostname=\"'uname -n'\"" configure.ac
+
+ # smartd.service.in: Remove obsolete 'StandardOutput=syslog'
+ # https://github.com/smartmontools/smartmontools/commit/f73303bc2d40adfc71e8bfaae043275e88cf9275
+ sed -i '/^StandardOutput=/d' smartd.service.in
+
+ autoreconf -fi
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --with-drivedbdir \
+ --with-libcap-ng=yes \
+ --with-libsystemd=yes \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system \
+ --with-systemdenvfile=/etc/conf.d/smartd \
+ --with-smartdscriptdir=/usr/share/smartmontools \
+ --with-smartdplugindir=/usr/share/smartmontools/smartd_warning.d
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ sed -i -e "s:sysconfig/smartmontools:conf.d/smartd:g" smartd.service
+ sed -i -e "s:smartd_opts:SMARTD_ARGS:g" smartd.service
+
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/etc/rc.d
+ install -D -m0644 "${srcdir}"/smartd.conf "${pkgdir}/etc/conf.d/smartd"
+}
Copied: smartmontools/repos/testing-x86_64/smartd.conf (from rev 438258, smartmontools/trunk/smartd.conf)
===================================================================
--- testing-x86_64/smartd.conf (rev 0)
+++ testing-x86_64/smartd.conf 2022-03-01 09:57:45 UTC (rev 438259)
@@ -0,0 +1 @@
+SMARTD_ARGS=""
More information about the arch-commits
mailing list