```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 ```
24 lines
765 B
Bash
24 lines
765 B
Bash
# Template file for 'spampd'
|
|
pkgname=spampd
|
|
version=2.30
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
hostmakedepends="perl"
|
|
depends="perl perl-Net-Server spamassassin"
|
|
short_desc="SMTP proxy used scan messages for spam"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm"
|
|
distfiles="https://github.com/downloads/mpaperno/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=c980e55f46c7757fd45294e5268766253123490d0158d2ee36ad5700ddf823bb
|
|
system_accounts="_spampd"
|
|
_spampd_homedir="/var/lib/spampd"
|
|
|
|
pre_install() {
|
|
sed -i '/INSTALL.* \(spampd.default\|spampd-init.sh\) /d' Makefile
|
|
}
|
|
post_install() {
|
|
vmkdir usr/bin
|
|
mv $DESTDIR/usr/sbin/* $DESTDIR/usr/bin
|
|
vsv spampd
|
|
}
|