From 30831540608e9c1c4e5599699bc61efde78dec35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 22 Aug 2020 11:55:49 +0700 Subject: [PATCH] tftp-hpa: stop conflicting with inetutils-tftp While we're at it, ships LICENSE, runit service. --- srcpkgs/tftp-hpa/files/tftpd-hpa/run | 7 +++++++ srcpkgs/tftp-hpa/template | 15 +++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/tftp-hpa/files/tftpd-hpa/run diff --git a/srcpkgs/tftp-hpa/files/tftpd-hpa/run b/srcpkgs/tftp-hpa/files/tftpd-hpa/run new file mode 100644 index 00000000000..d11fba58fd6 --- /dev/null +++ b/srcpkgs/tftp-hpa/files/tftpd-hpa/run @@ -0,0 +1,7 @@ +#!/bin/sh + +[ -r conf ] && . ./conf + +: "${OPTS:= -s -v}" + +exec /usr/bin/in.tftpd -L $OPTS /var/lib/tftp diff --git a/srcpkgs/tftp-hpa/template b/srcpkgs/tftp-hpa/template index 37bfb2383f6..bc0eac1c42e 100644 --- a/srcpkgs/tftp-hpa/template +++ b/srcpkgs/tftp-hpa/template @@ -1,24 +1,31 @@ # Template file for 'tftp-hpa' pkgname=tftp-hpa version=5.2 -revision=5 +revision=6 build_style=gnu-configure configure_args="--sbindir=/usr/bin --without-tcpwrappers" hostmakedepends="automake" makedepends="readline-devel" short_desc="Official tftp client and server" maintainer="Orphaned " -license="BSD" +license="BSD-3-Clause" homepage="http://www.kernel.org" -distfiles="${homepage}/pub/software/network/tftp/${pkgname}/${pkgname}-${version}.tar.gz" +distfiles="http://www.kernel.org/pub/software/network/tftp/${pkgname}/${pkgname}-${version}.tar.gz" checksum=acc04dde662491e3092565ecf9bde504c47dbb1bb0408366009b138fe7754cab +make_dirs="/var/lib/tftp 0750 nobody nogroup" alternatives=" tftp:tftp:/usr/bin/${pkgname} - tftp:tftp.1:/usr/share/man/man1/${pkgname}.1" + tftp:tftp.1:/usr/share/man/man1/${pkgname}.1 + tftp:tftpd.8:/usr/share/man/man8/in.tftpd.8 + " do_install() { make INSTALLROOT=${DESTDIR} install mv ${DESTDIR}/usr/bin/{tftp,${pkgname}} mv ${DESTDIR}/usr/share/man/man1/{tftp,${pkgname}}.1 + rm -f ${DESTDIR}/usr/share/man/man8/tftpd.8 + sed -n '/Copyright (c)/,/SUCH DAMAGE\./p' tftpd/tftpd.c >LICENSE + vlicense LICENSE + vsv tftpd-hpa }