b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```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
797 B
Bash
25 lines
797 B
Bash
# Template file for 'diod'
|
|
pkgname=diod
|
|
version=1.0.24
|
|
revision=3
|
|
build_style=gnu-configure
|
|
conf_files="/etc/diod.conf"
|
|
hostmakedepends="autoconf"
|
|
makedepends="libcap-devel ncurses-devel attr-devel popt-devel gperftools lua51-devel munge-devel"
|
|
short_desc="I/O forwarding server for 9P"
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
license="GPL-2"
|
|
homepage="https://github.com/chaos/diod"
|
|
distfiles="https://github.com/chaos/diod/releases/download/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f
|
|
|
|
post_install() {
|
|
vsv diod
|
|
rm -rf ${DESTDIR}/etc/systemd
|
|
vsconf ${DESTDIR}/etc/auto.diod
|
|
rm -f ${DESTDIR}/etc/auto.diod
|
|
cd ${DESTDIR}/usr/bin
|
|
ln -s diodmount mount.diod
|
|
cd ${DESTDIR}/usr/share/man/man8
|
|
ln -s diodmount.8 mount.diod.8
|
|
}
|