765e304c4b
```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 ```
29 lines
860 B
Bash
29 lines
860 B
Bash
# Template file for 'moosefs'
|
|
pkgname=moosefs
|
|
version=3.0.113
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--localstatedir=/var/lib --with-default-user=_mfs
|
|
--with-default-group=_mfs"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="zlib-devel libpcap-devel fuse-devel"
|
|
short_desc="Fault tolerant, network distributed file system"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://moosefs.org/"
|
|
distfiles="http://ppa.moosefs.com/src/moosefs-${version}-1.tar.gz"
|
|
checksum=f88cc0142b5fe8a6a4c3fcb2ae58053fcb98787848cf09286a57718a982093a9
|
|
python_version=2 #unverified
|
|
system_accounts="_mfs"
|
|
|
|
pre_configure() {
|
|
sed -i 's,AC_RUN_IFELSE,AC_LINK_IFELSE,g' configure.ac
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
|
|
for f in chunkserver master metalogger; do
|
|
vsv mfs${f}
|
|
done
|
|
}
|