summaryrefslogtreecommitdiff
path: root/pcr/freeipmi/PKGBUILD
blob: fa18ac825d23cdbf8af44fdcc7502998a6bdb88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
# http://github.com/fukawi2/aur-packages
# Contributor: Nathan Owe <ndowens04 at gmail>
# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=freeipmi
pkgver=1.4.1
pkgrel=1
pkgdesc="sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/freeipmi/"
license=('GPL')
depends=('libgcrypt')
options=('!libtool')
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")

build() {
  cd $srcdir/$pkgname-$pkgver

  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --mandir=/usr/share/man \
    --sysconfdir=/etc \
    --localstatedir=/var/lib \
    --infodir=/usr/share/info

  make
}

package() {
  cd $srcdir/$pkgname-$pkgver

  make DESTDIR=$pkgdir/ install

  # Move init scripts and config to Arch paths
  mv $pkgdir/etc/init.d $pkgdir/etc/rc.d
  mv $pkgdir/etc/sysconfig $pkgdir/etc/conf.d

  # Fix references to 'init.d' and 'sysconfig'
  sed -e 's|/etc/init.d/|/etc/rc.d/|g' \
      -e 's|/etc/rc.d/init.d/functions|/etc/rc.d/functions|g' \
      -i $pkgdir/etc/rc.d/*
  sed -e 's|CONFFILE=/etc/sysconfig/bmc-watchdog|CONFFILE=/etc/cond.f/bmc-watchdog|g' \
      -i $pkgdir/etc/rc.d/bmc-watchdog
  
  rm -Rf $pkgdir/usr/share/info/dir
}

# vim:set ts=2 sw=2 et: