```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 ```
23 lines
809 B
Bash
23 lines
809 B
Bash
# Template file for 'ulogd'
|
|
pkgname=ulogd
|
|
version=2.0.7
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin"
|
|
hostmakedepends="pkg-config automake"
|
|
makedepends="libnfnetlink-devel libmnl-devel libnetfilter_log-devel
|
|
libnetfilter_conntrack-devel libnetfilter_acct-devel libpcap-devel"
|
|
short_desc="Userspace logging daemon for netfilter/iptables related logging"
|
|
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.netfilter.org/projects/ulogd/"
|
|
distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
|
|
checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
|
|
CFLAGS="-D_GNU_SOURCE"
|
|
system_accounts="_ulogd"
|
|
|
|
post_install() {
|
|
vinstall ulogd.conf 644 etc
|
|
vinstall ${FILESDIR}/ulogd.logrotate 644 etc/logrotate.d ulogd
|
|
vsv ulogd
|
|
}
|