```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 ```
25 lines
876 B
Bash
25 lines
876 B
Bash
# Template file for 'opensmtpd-extras'
|
|
pkgname=opensmtpd-extras
|
|
version=6.6.0
|
|
revision=4
|
|
wrksrc="OpenSMTPD-extras-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-table-passwd --with-table-ldap --with-table-mysql
|
|
--with-table-postgres --with-table-socketmap --with-table-sqlite"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="openssl-devel libevent-devel postgresql-libs-devel
|
|
libmariadbclient-devel sqlite-devel"
|
|
depends="opensmtpd"
|
|
short_desc="Free implementation of the server-side SMTP protocol - extras"
|
|
maintainer="Denis Revin <denis.revin@gmail.com>"
|
|
license="ISC"
|
|
homepage="https://www.opensmtpd.org"
|
|
distfiles="https://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
|
|
checksum=126b023602e8bb222bf24543a056ee0a548343dc86d184669ff9d82dfca1fbdf
|
|
|
|
CFLAGS="-D_DEFAULT_SOURCE"
|
|
|
|
pre_configure() {
|
|
touch NEWS README AUTHORS ChangeLog
|
|
autoreconf -fi
|
|
}
|