blob: eb766f0540c043a4d04a1828eacb0d36fed880f1 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=freeipmi-git
pkgver=1.6.10.r262.g900ddc1cb
pkgrel=1
pkgdesc="Provides in-band and out-of-band IPMI software"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/freeipmi/"
license=('GPL')
depends=('glibc' 'libgcrypt')
makedepends=('git')
optdepends=('perl: for contrib scripts')
provides=("freeipmi=$pkgver")
conflicts=('freeipmi')
backup=(etc/freeipmi/{freeipmi,freeipmi_interpret_sel,freeipmi_interpret_sensor,ipmidetect,ipmidetectd,ipmiseld,libipmiconsole}.conf)
options=('staticlibs')
source=("git+https://git.savannah.gnu.org/git/freeipmi.git"
"tmpfiles.conf::https://gitlab.archlinux.org/archlinux/packaging/packages/freeipmi/-/raw/main/tmpfiles.conf")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "freeipmi"
_tag=$(git tag -l --sort -v:refname | grep -E '^freeipmi-[0-9-]+$' | head -n1)
_rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^freeipmi-//;s/-/./g'
}
build() {
cd "freeipmi"
./autogen.sh
./configure \
--prefix="/usr" \
--exec-prefix="/usr" \
--sbindir="/usr/bin" \
--sysconfdir="/etc" \
--localstatedir="/var" \
--mandir="/usr/share/man" \
--with-systemdsystemunitdir="/usr/lib/systemd/system" \
--with-systemconfigdir="/etc/conf.d"
make
}
check() {
cd "freeipmi"
make check
}
package() {
cd "freeipmi"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/freeipmi.conf"
# delete cache
rm -rf "$pkgdir/var/cache"
}
|