```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
828 B
Bash
29 lines
828 B
Bash
# Template file for 'monit'
|
|
pkgname=monit
|
|
version=5.28.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--with-ssl-dir=${XBPS_CROSS_BASE}/usr
|
|
libmonit_cv_setjmp_available=yes
|
|
libmonit_cv_vsnprintf_c99_conformant=yes"
|
|
conf_files="/etc/monitrc"
|
|
hostmakedepends="automake libtool perl"
|
|
makedepends="pam-devel openssl-devel zlib-devel"
|
|
short_desc="Utility for monitoring, processes, files, directories and devices"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="AGPL-3.0-only"
|
|
homepage="https://mmonit.com/monit/"
|
|
changelog="https://mmonit.com/monit/changes/"
|
|
distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
|
|
checksum=9fc6287fd9570b25a85c5d5bf988ee8bd4c54d0e9e01ff04cc4b9398a159849c
|
|
|
|
pre_configure() {
|
|
./bootstrap
|
|
}
|
|
|
|
post_install() {
|
|
vinstall monitrc 0600 etc
|
|
vsv monit
|
|
vlicense COPYING
|
|
}
|