From e1df3f7c8290640b588c452c81880d5cfdf67526 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 20 Apr 2020 19:16:52 -0400 Subject: [PATCH 1/2] hooktftp: Fails to drop privileges --- srcpkgs/hooktftp/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/hooktftp/template b/srcpkgs/hooktftp/template index abee0ccefd1..f473c54496d 100644 --- a/srcpkgs/hooktftp/template +++ b/srcpkgs/hooktftp/template @@ -1,7 +1,7 @@ # Template file for 'hooktftp' pkgname=hooktftp version=1.0.0 -revision=8 +revision=9 _gitcommit="a7258310669522806b903c9ffc98ad7c62b02d56" wrksrc="${pkgname}-${_gitcommit}" hostmakedepends="go bzr git" From 9fcfa426bce38157178be4096014aeea5e2fddb0 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 20 Apr 2020 19:41:44 -0400 Subject: [PATCH 2/2] hooktftp: update to 0.0.0.1. --- srcpkgs/hooktftp/template | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/srcpkgs/hooktftp/template b/srcpkgs/hooktftp/template index f473c54496d..742b6afe6c3 100644 --- a/srcpkgs/hooktftp/template +++ b/srcpkgs/hooktftp/template @@ -1,24 +1,23 @@ # Template file for 'hooktftp' pkgname=hooktftp -version=1.0.0 -revision=9 -_gitcommit="a7258310669522806b903c9ffc98ad7c62b02d56" +version=0.0.0.1 +revision=1 +reverts="1.0.0_1 1.0.0_2 1.0.0_3 1.0.0_4 1.0.0_5 1.0.0_6 1.0.0_7 1.0.0_8" +_gitcommit="344d77c91960612bfddd8a918b0c1c4437349289" wrksrc="${pkgname}-${_gitcommit}" -hostmakedepends="go bzr git" +build_style=go +go_import_path="github.com/tftp-go-team/hooktftp" +go_package="github.com/tftp-go-team/hooktftp/src" +hostmakedepends="bzr git" short_desc="Hook based tftp server" -maintainer="Andrea Brancaleoni " +maintainer="Toyam Cox " license="MIT" homepage="https://github.com/tftp-go-team/hooktftp" distfiles="${homepage}/archive/${_gitcommit}.tar.gz" -checksum=42cbe6c402aee13722cb55ac1e3a22fc6be27c6313b7c59d7a7277c0e3a6065e -nocross=yes -nopie=yes +checksum=7030bf338c68cf9e3e22d85daf2e34b195603aa3ef30d6d1f726b4e4ee9cc3ec -do_build() { - GOPATH=$PWD make build -} - -do_install() { +post_install() { + # I talked to upstream about this + mv ${DESTDIR}/usr/bin/src ${DESTDIR}/usr/bin/hooktftp vlicense LICENSE - vbin src/${pkgname} }