```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 ```
27 lines
659 B
Bash
27 lines
659 B
Bash
# Template file for 'bird'
|
|
pkgname=bird
|
|
version=2.0.8
|
|
revision=1
|
|
wrksrc=bird-v$version
|
|
build_style=gnu-configure
|
|
hostmakedepends="flex autoconf"
|
|
makedepends="ncurses-devel readline-devel libssh-devel"
|
|
short_desc="BIRD Internet Routing Daemon"
|
|
maintainer="Philipp Hirsch <itself@hanspolo.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://bird.network.cz"
|
|
distfiles="https://gitlab.labs.nic.cz/labs/bird/-/archive/v${version}/bird-v${version}.tar.gz"
|
|
checksum=4d0eeea762dcd4422e1e276e2ed123cfed630cf1cce017b50463d79fcf2fff0c
|
|
|
|
conf_files="/etc/bird.conf"
|
|
system_accounts="_bird"
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
pre_configure() {
|
|
autoreconf
|
|
}
|
|
|
|
post_install() {
|
|
vsv bird
|
|
}
|