summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73307993b1bfbec778662bf4c2e8a76680e1772a (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
# Maintainer: Ewout van Mansom <ewout@vanmansom.name>
# Contributor: Andrew Shark <ashark linuxcomp.ru>

pkgname=supermicro-update-manager
pkgver=2.10.0
pkgrel=1
pkgdesc="Update the BMC and UEFI/BIOS firmware for Supermicro motherboards"
arch=(x86_64)
url="https://www.supermicro.com/en/solutions/management-software/supermicro-update-manager"
license=('custom: EULA')
backup=(etc/sumrc)
_rel_date=20221209
_rel_ver=527
source=(
  "https://www.supermicro.com/Bios/sw_download/${_rel_ver}/sum_${pkgver}_Linux_x86_64_${_rel_date}.tar.gz"
)
sha256sums=('4f64bde6c60250edb03935f7a8cad3e579e953a6822660b763d8694bfad6ea35')
depends=('zlib')

package() {
	cd sum_"$pkgver"_Linux_x86_64
	
	install -Dm644 sumrc.sample "$pkgdir/etc/sumrc"
	sed -i '1{s|.*|# To use this config you should symlink to this file with "ln -s /etc/sumrc $HOME/.sumrc" command.|}' "$pkgdir/etc/sumrc"
	sed -i '2{s|.*|# Alternatively, invoke supermicro-update-manager with "--rc_path=/etc/sumrc" parameter.|}' "$pkgdir/etc/sumrc"
	sed -i 's|#journal_path = /home/administrator/journal/supermicro/test|journal_path = /var/log/supermicro-update-manager|' "$pkgdir/etc/sumrc"
	sed -i 's|#journal_level = 0|journal_level = 6|' "$pkgdir/etc/sumrc"
	
	install -m755 -d "${pkgdir}"/var/log/supermicro-update-manager
	
	install -D SUM_UserGuide.pdf "$pkgdir/usr/share/doc/supermicro-update-manager/SUM_UserGuide.pdf"
	install -D PlatformFeatureSupportMatrix.pdf "$pkgdir/usr/share/doc/supermicro-update-manager/PlatformFeatureSupportMatrix.pdf"
	install -Dm755 sum "$pkgdir/usr/bin/supermicro-update-manager" # rename executable file to not conflict with gnu sum.
	
	# ExternalData folder: contains SMCIPID.txt, tui.fnt, VENID.txt. I do not know when they are used, so did not packaged them.
	# acpica_bin folder: contains acpidump and acpiexec. I do not know when they are used, so did not packaged them.
	# driver folder: sum_bios.ko only needed if InBand SMI E7h support is not implemented in BIOS. I have not seen such systems, but if you have, please contact me and I will edit pkgbuild.
	# policy_sample.xml - I did not packaged it. Contact me if you need that.
	# servicecalls_sample.xml - I did not packaged it. Contact me if you need that.
	# ReleaseNote.txt - I did not packaged it. Contact me if you need that.
}