void-packages/srcpkgs/freeipmi/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

41 lines
1.1 KiB
Bash

# Template file for 'freeipmi'
pkgname=freeipmi
version=1.6.6
revision=1
build_style=gnu-configure
configure_args="--without-systemdsystemunitdir ac_cv_header_sys_stropts_h=no"
hostmakedepends="pkg-config texinfo"
makedepends="libgcrypt-devel"
short_desc="In-band and out-of-band IPMI software"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-3.0-or-later"
# Changelog: http://www.gnu.org/software/freeipmi/NEWS
homepage="http://www.gnu.org/software/freeipmi/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=cfa30179b44c582e73cf92c2ad0e54fe49f9fd87f7a0889be9dc2db5802e6aab
conf_files="/etc/freeipmi/*.conf"
make_dirs="/var/cache/ipmiseld 0755 root root"
case "$XBPS_TARGET_MACHINE" in
aarch64) configure_args+=" ac_cv_header_sys_io_h=no";;
esac
post_install() {
rm -rf ${DESTDIR}/etc/{sysconfig,init.d}
vsv ipmiseld
vsv ipmidetectd
vsv bmc-watchdog
}
freeipmi-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/share/man/man3
vmove usr/lib/pkgconfig
}
}