[arch-commits] Commit in smartmontools/trunk (PKGBUILD)

Giovanni Scafora giovanni at archlinux.org
Sun Jun 10 07:33:19 UTC 2012


    Date: Sunday, June 10, 2012 @ 03:33:19
  Author: giovanni
Revision: 161353

upgpkg: smartmontools 5.42-4

systemd-arch-units dissolution

Modified:
  smartmontools/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-06-10 06:11:24 UTC (rev 161352)
+++ PKGBUILD	2012-06-10 07:33:19 UTC (rev 161353)
@@ -6,12 +6,12 @@
 
 pkgname=smartmontools
 pkgver=5.42
-pkgrel=3
+pkgrel=4
 pkgdesc="Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives"
 url="http://smartmontools.sourceforge.net"
 license=('GPL')
 arch=('i686' 'x86_64')
-depends=('gcc-libs' 'libcap-ng')
+depends=('gcc-libs' 'libcap-ng' 'bash')
 backup=('etc/smartd.conf'
         'etc/conf.d/smartd')
 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
@@ -27,16 +27,20 @@
   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --enable-drivedb \
-              --with-libcap-ng=yes
+              --with-libcap-ng=yes \
+              --with-systemdsystemunitdir=/usr/lib/systemd/system
   make
 }
 
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
-  make DESTDIR=${pkgdir}/ install
+  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 -Dm755 ${srcdir}/smartd.rc ${pkgdir}/etc/rc.d/smartd
-  install -Dm644 ${srcdir}/smartd.conf ${pkgdir}/etc/conf.d/smartd
+  install -Dm755 ${srcdir}/smartd.rc "${pkgdir}/etc/rc.d/smartd"
+  install -Dm644 ${srcdir}/smartd.conf "${pkgdir}/etc/conf.d/smartd"
 }




More information about the arch-commits mailing list