[arch-commits] Commit in smartmontools/trunk (PKGBUILD)
Christian Hesse
eworm at archlinux.org
Fri Aug 28 07:01:22 UTC 2020
Date: Friday, August 28, 2020 @ 07:01:21
Author: eworm
Revision: 394823
upgpkg: smartmontools 7.1-2: fix build, force using `uname -a`
Modified:
smartmontools/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-28 06:02:38 UTC (rev 394822)
+++ PKGBUILD 2020-08-28 07:01:21 UTC (rev 394823)
@@ -5,12 +5,13 @@
pkgname=smartmontools
pkgver=7.1
-pkgrel=1
+pkgrel=2
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')
+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')
@@ -21,6 +22,14 @@
'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
+ autoreconf -fi
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -29,6 +38,7 @@
--sysconfdir=/etc \
--with-drivedbdir \
--with-libcap-ng=yes \
+ --with-libsystemd=yes \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-smartdscriptdir=/usr/share/smartmontools \
--with-smartdplugindir=/usr/share/smartmontools/smartd_warning.d
More information about the arch-commits
mailing list