* runit 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 ```
29 lines
1,021 B
Bash
29 lines
1,021 B
Bash
# Template file for 'rmilter'
|
|
pkgname=rmilter
|
|
version=1.10.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DMILTER_USER=rmilter -DMILTER_GROUP=_rmilter -DSBINDIR=/usr/bin"
|
|
hostmakedepends="pkg-config bison flex"
|
|
makedepends="openssl-devel pcre-devel libmilter-devel opendkim-devel
|
|
libsasl-devel libmemcached-devel glib-devel xxHash-devel libzstd-devel
|
|
http-parser-devel hiredis-devel libucl-devel uthash"
|
|
short_desc="Postfix/sendmail integration for rspamd"
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
license="BSD-2-Clause, BSD-3-Clause"
|
|
homepage="https://github.com/vstakhov/rmilter"
|
|
distfiles="$homepage/archive/${version}.tar.gz"
|
|
checksum=ea80563fa7636afed0b5fd9a29aa2300f15793ed85788e4ce69c187d341a7d54
|
|
system_accounts="rmilter"
|
|
rmilter_pgroup="_rmilter"
|
|
rmilter_homedir="/var/lib/rmilter"
|
|
|
|
post_install() {
|
|
vdoc rmilter.conf.sample
|
|
vdoc rmilter-grey.conf
|
|
vsv rmilter
|
|
head -26 src/rmilter.c >rmilter.LICENSE
|
|
head -38 contrib/lc-btrie/btrie.h >btrie.LICENSE
|
|
vlicense rmilter.LICENSE
|
|
vlicense btrie.LICENSE
|
|
}
|