2fd8d4df94
```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 ```
36 lines
925 B
Bash
36 lines
925 B
Bash
# Template file for 'opendkim'
|
|
pkgname=opendkim
|
|
version=2.10.3
|
|
revision=12
|
|
build_style=gnu-configure
|
|
configure_args="--with-milter=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="pkg-config automake gettext libtool"
|
|
makedepends="libbsd-devel openssl-devel libmilter-devel"
|
|
short_desc="DKIM library"
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
license="BSD-3-Clause, Sendmail"
|
|
homepage="http://www.opendkim.org"
|
|
distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
|
|
python_version=2 #unverified
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vlicense LICENSE.Sendmail
|
|
vsv opendkim
|
|
}
|
|
|
|
opendkim-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|