1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Safecat implements qmail's maildir algorithm, safely copying standard input"
9 HOMEPAGE="http://www.jeenyus.net/linux/software/safecat.html"
10 SRC_URI="http://www.jeenyus.net/linux/software/${PN}/${P}.tar.gz"
14 KEYWORDS="amd64 ~hppa ~mips ppc ~sparc x86"
18 DEPEND="sys-apps/groff"
22 # applying maildir-patch
23 "${FILESDIR}"/safecat-1.11-gentoo.patch
24 # Fix parallel make errors
25 "${FILESDIR}"/${P}-makefile.patch
26 # Fix POSIX head/tail syntax
27 "${FILESDIR}"/${P}-head-tail-POSIX.patch
33 sed -ni '/man\|doc/!p' hier.c || die
35 # Fix implicit decleration
36 sed '/include <signal.h>/ a #include <stdlib.h>' -i safecat.c || die
40 echo "${D}/usr" > conf-root || die
41 echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
42 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
48 doman maildir.1 safecat.1