void-packages/srcpkgs/glusterfs/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

60 lines
1.8 KiB
Bash

# Template file for 'glusterfs'
pkgname=glusterfs
version=9.0
revision=1
build_style=gnu-configure
configure_args="--with-mountutildir=/usr/bin ac_cv_file__etc_debian_version=no
ac_cv_file__etc_SuSE_release=no ac_cv_file__etc_redhat_release=no
ac_cv_file__etc_centos_release=no"
pycompile_dirs="/usr/libexec/glusterfs/python/syncdaemon"
hostmakedepends="automake flex libtool pkg-config python3 rpcsvc-proto"
makedepends="acl-devel libaio-devel libtirpc-devel openssl-devel
liburcu-devel libxml2-devel rdma-core-devel sqlite-devel"
# python is required by gsyncd.
depends="python3"
short_desc="Free and open source software scalable network filesystem (client)"
maintainer="Noel Cower <ncower@nil.dev>"
license="GPL-2.0-or-later, LGPL-3.0-only"
homepage="https://www.gluster.org/"
distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz"
checksum=6f29ae4ab2c270ade0cd14a3f733d7d33fda78e79e81b148cd50711f65069d87
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="not yet supported";;
esac
post_install() {
rm -rf ${DESTDIR}/var ${DESTDIR}/usr/share/glusterfs/scripts/gsync-sync-gfid
vsv glusterfsd
}
glusterfs-server_package() {
short_desc="${short_desc/client/server}"
depends="glusterfs-${version}_${revision}"
conf_files="
/etc/glusterfs/glusterfs-logrotate
/etc/glusterfs/glusterd.vol"
pkg_install() {
vmove etc/glusterfs
vmove usr/bin/gluster
vmove usr/bin/glusterd
vmove usr/share/man/man8/gluster.8
vmove usr/share/man/man8/glusterd.8
vsv glusterd
}
}
glusterfs-devel_package() {
short_desc+=" - development files"
depends="libglusterfs>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libglusterfs_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}