🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
pkgname: smartmontools
pkgver: '7.5'
pkgrel: '3'
pkgdesc: 'Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives'
url: 'https://smartmontools.sourceforge.net'
arch: x86_64
depends: []
makedepends:
- systemd
source:
- 'https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz'
sha256sums:
- SKIP
hooks:
'post-install': |
name=smartmontools
version=7.5
release=3
systemctl enable smartd.service
build: |
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-initscriptdir=no \
--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 \
--docdir=/usr/share/doc/${pkgname}
make
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
echo 'SMARTD_ARGS=\"\"' > ../smartd.conf
mkdir -p ${PKGDIR}/etc/conf.d/smartd
install -Dm0644 ../smartd.conf ${PKGDIR}/etc/conf.d/smartd
install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING
package: |
true