From 7a86906b67693cc65671d3e1476835d3a7e13092 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Jun 2019 11:40:06 +0100 Subject: gentoo resync : 22.06.2019 --- mail-filter/postforward/postforward-1.1.1.ebuild | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 mail-filter/postforward/postforward-1.1.1.ebuild (limited to 'mail-filter/postforward') diff --git a/mail-filter/postforward/postforward-1.1.1.ebuild b/mail-filter/postforward/postforward-1.1.1.ebuild new file mode 100644 index 000000000000..f9f2be8689ca --- /dev/null +++ b/mail-filter/postforward/postforward-1.1.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-build + +DESCRIPTION="Postfix Sender Rewriting Scheme forwarding agent" +EGO_PN="${PN}" +SRC_URI="https://github.com/zoni/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/zoni/postforward" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-lang/go:0" +RDEPEND=" + mail-filter/postsrsd" + +PATCHES=( "${FILESDIR}/${PN}_apply-sendmail-path.patch" ) + +src_prepare() { + default + + # Dynamically fix EPREFIX lines made by ${PN}_apply-sendmail-path.patch + sed -i -e "s/@GENTOO_PORTAGE_EPREFIX@/${EPREFIX}/" *.go || die + + # go build assumes files will be in src dir, but + # source files are in root in this package, so move + # them. + local new_src_dir="${S}/src/${EGO_PN}" + # Freak out if there's already something there because + # it means the package has changed and we'll need to + # adjust to it. + [[ -e "${new_src_dir}" ]] && die "${new_src_dir} already exists" + mkdir -p "${new_src_dir}" || die + mv *.go "${new_src_dir}" || die +} + +# Standard golang-build src_install complains about pkg not +# existing, so we go custom. +src_install() { + einstalldocs + dosbin "${PN}" +} -- cgit v1.2.3