void-packages/srcpkgs/at/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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
```
2021-06-20 13:17:29 +07:00

30 lines
961 B
Bash

# Template file for 'at'
pkgname=at
version=3.2.2
revision=1
build_style=gnu-configure
configure_args="--with-jobdir=/var/spool/atd --with-atspool=/var/spool/atd
--sbindir=/usr/bin --with-daemon_username=at --with-daemon_groupname=at
SENDMAIL=/usr/sbin/sendmail"
hostmakedepends="flex"
makedepends="pam-devel libfl-devel"
depends="virtual?smtp-server"
short_desc="Run commands at a specified time"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://packages.qa.debian.org/a/at.html"
distfiles="${DEBIAN_SITE}/main/a/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=2211da14914fde1f9cc83592838fb6385a32fb11fcecb7816c77700df6559088
disable_parallel_build=yes
conf_files="/etc/at.deny"
system_accounts="at"
at_homedir="/var/spool/atd"
make_dirs="/var/spool/atd 1770 at at"
do_install() {
sed -i '/chown/d' Makefile
make install IROOT="$DESTDIR" docdir=/usr/share/doc
vsv at
rm -f ${DESTDIR}/var/spool/atd/.SEQ
}