smartmontools: move pid-file to /run

This commit is contained in:
Juergen Daubert 2022-02-17 17:02:49 +01:00
parent cd18dd563b
commit 733172d31b
3 changed files with 22 additions and 21 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/VGa9qMcmuaBEUxEuvi/tDvnBn5YprQIu2yjxit9jTdHwVpJcD6n245Ne/Ittrr9gGncSlZjfSQEsy+DHBODyQU=
SHA256 (Pkgfile) = ea52568fe94ca7126f994157ebe18f61275297efe10de9df1bf01a299ce47a40
RWSE3ohX2g5d/VxuY1QyUdROeIQQxyy0gZIcRpVSb+9vl+oo2pH81OJw7BxNqC3yx/MYGQCRk3+qtg5PH4PYRM8FqGyEhl/5LQ8=
SHA256 (Pkgfile) = 56fc5e0cb889b069f5d661ef3d856a3ec31bbb21fc57f2ed26ffeeac7e5159bc
SHA256 (.footprint) = e24fc5f2ae123da4e2c3532ea45658a54c79ccbe4d1216340baa25cea6298d62
SHA256 (smartmontools-7.2.tar.gz) = 5cd98a27e6393168bc6aaea070d9e1cd551b0f898c52f66b2ff2e5d274118cd6
SHA256 (smartd) = d19e41ec07dc0d38c5b94159ddb29e544322fe738fe0ef3b570b2e96f81433ae
SHA256 (smartd) = 249b0581e5059c42505882ae6df07ac0eeb5fcca20a39880261734643f2a9935

View File

@ -1,28 +1,29 @@
# Description: Utilities to control and monitor S.M.A.R.T. hard drives
# URL: http://smartmontools.sourceforge.net/
# Maintainer: Juergen Daubert, jue at crux dot nu
# URL: http://smartmontools.sourceforge.net/
# Maintainer: Juergen Daubert, jue at crux dot nu
name=smartmontools
version=7.2
release=1
release=2
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz \
smartd)
smartd)
build () {
cd $name-$version
build() {
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-initscriptdir=/etc/rc.d \
--localstatedir=/var \
--with-savestates \
--with-attributelog
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-initscriptdir=/etc/rc.d \
--localstatedir=/var \
--with-savestates \
--with-attributelog
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/var/lib/smartmontools
install -m 755 $SRC/smartd $PKG/etc/rc.d
install -d $PKG/var/lib/smartmontools
install -m 755 $SRC/smartd $PKG/etc/rc.d
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -5,7 +5,7 @@
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/smartd
PID=/var/run/smartd.pid
PID=/run/smartd.pid
OPTS="-p $PID"
case $1 in