void-packages/srcpkgs/xinetd/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: convert patches to -Np1
```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

32 lines
961 B
Bash

# Template file for 'xinetd'
pkgname=xinetd
version=2.3.15
revision=8
build_style=gnu-configure
configure_args="--without-libwrap"
makedepends="libtirpc-devel"
short_desc="A secure replacement for inetd"
maintainer="Orphaned <orphan@voidlinux.org>"
license="xinetd"
homepage="http://www.xinetd.org/"
distfiles="http://ponce.cc/slackware/sources/repo/xinetd-${version}.tar.gz"
checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
CFLAGS=" -I${XBPS_CROSS_BASE}/usr/include/tirpc"
LDFLAGS=" -ltirpc"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" xinetd_cv_type_rlim_t=yes"
fi
do_install() {
make prefix=${DESTDIR}/usr DAEMONDIR=${DESTDIR}/usr/bin MANDIR=${DESTDIR}/usr/share/man install
vconf ${FILESDIR}/xinetd.conf
vinstall ${FILESDIR}/servers 644 etc/xinetd.d
vinstall ${FILESDIR}/services 644 etc/xinetd.d
vlicense COPYRIGHT
vsv xinetd
}