PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/smartmontools/PAGBUILD.yaml main

52 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
pkgname: smartmontools
pkgver: '7.5'
pkgrel: '4'
pkgdesc: 'Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives'
url: 'https://smartmontools.sourceforge.net'
arch: x86_64
depends:
- systemd
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