You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
5 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 months ago
|
EAPI=8
|
||
3 years ago
|
|
||
10 years ago
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail"
|
||
2 years ago
|
HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution"
|
||
|
SRC_URI="https://ftp.sendmail.org/sendmail.${PV}.tar.gz"
|
||
3 years ago
|
S="${WORKDIR}/sendmail-${PV}"
|
||
10 years ago
|
|
||
|
LICENSE="Sendmail"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
9 years ago
|
RDEPEND="!mail-mta/sendmail"
|
||
|
DEPEND="${RDEPEND}
|
||
3 years ago
|
sys-devel/m4"
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
3 years ago
|
cd "${S}/${PN}" || die
|
||
|
|
||
|
default
|
||
|
|
||
10 years ago
|
sed -e "s:/usr/libexec:/usr/sbin:g" \
|
||
|
-e "s:/usr/adm/sm.bin:/var/lib/smrsh:g" \
|
||
|
-i README -i smrsh.8 || die "sed failed"
|
||
|
|
||
4 years ago
|
sed -e "s|@@confCCOPTS@@|${CFLAGS}|" \
|
||
|
-e "s|@@confLDOPTS@@|${LDFLAGS}|" \
|
||
9 years ago
|
-e "s:@@confCC@@:$(tc-getCC):" "${FILESDIR}/site.config.m4" \
|
||
10 years ago
|
> "${S}/devtools/Site/site.config.m4" || die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
3 years ago
|
cd "${S}/${PN}" || die
|
||
5 months ago
|
/bin/sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
5 years ago
|
dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}"
|
||
10 years ago
|
|
||
9 years ago
|
cd "${S}/${PN}" || die
|
||
5 years ago
|
doman "${PN}.8"
|
||
|
dodoc README
|
||
10 years ago
|
|
||
3 years ago
|
keepdir /var/lib/${PN}
|
||
10 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "smrsh is compiled to look for programs in /var/lib/smrsh."
|
||
|
}
|