app-shells/smrsh: bump to version 8.18.1, add myself as maintainer

Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Cristian Othón Martínez Vera
2025-04-03 10:16:19 -06:00
committed by Sam James
parent 5c2e8cd7f7
commit 9a67fe5a0e
3 changed files with 69 additions and 1 deletions

View File

@@ -1 +1,2 @@
DIST sendmail.8.15.2.tar.gz 2207417 BLAKE2B 3d9dfb5bc2b535e30ef2fc61333e12a9b1fc45a5d730d2bed1ef956adb574721833f87aeba0475705b76e0c7d6cf00f9a10025bffb0de6c6b4dae606eb2ec399 SHA512 04feb37316c13b66b1518596507a7da7c16cb0bf1abf10367f7fd888a428fadb093a9efa55342fa55b936c3f0cbdc63b9e2505cd99201a69a0c05b8ad65f49f9
DIST sendmail.8.18.1.tar.gz 2401566 BLAKE2B 3afa36073fd611c7fdb43ef0ab9f02d5fb8ae388e9471bdc7275c6c9dcee0a654f46ddef505b70e978cb1b818b0da375250678e501676d8bace534d59ee40d90 SHA512 9ce713b44439d4de6faa9e3cdfa2226b44b4fbeb352a5f81584c062570e9472da244158287e489aabe258d28fe54ca4964565c7b0adc7e1763d212be42f98061

View File

@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<maintainer type="person" proxied="yes">
<email>cfuga@cfuga.mx</email>
<name>Cristian Othón Martínez Vera</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Note: please bump this together with mail-mta/sendmail and mail-filter/libmilter
inherit toolchain-funcs
DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail"
HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution"
if [[ -n $(ver_cut 4) ]] ; then
# Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9)
SRC_URI="https://ftp.sendmail.org/snapshots/sendmail.${PV}.tar.gz"
fi
SRC_URI+=" https://ftp.sendmail.org/sendmail.${PV}.tar.gz"
SRC_URI+=" https://ftp.sendmail.org/past-releases/sendmail.${PV}.tar.gz"
S="${WORKDIR}/sendmail-${PV}"
LICENSE="Sendmail"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="!mail-mta/sendmail"
DEPEND="${RDEPEND}
sys-devel/m4"
src_prepare() {
cd "${S}/${PN}" || die
default
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"
sed -e "s|@@confCCOPTS@@|${CFLAGS}|" \
-e "s|@@confLDOPTS@@|${LDFLAGS}|" \
-e "s:@@confCC@@:$(tc-getCC):" "${FILESDIR}/site.config.m4" \
> "${S}/devtools/Site/site.config.m4" || die "sed failed"
}
src_compile() {
cd "${S}/${PN}" || die
/bin/sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die
}
src_install() {
dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}"
cd "${S}/${PN}" || die
doman "${PN}.8"
dodoc README
keepdir /var/lib/${PN}
}
pkg_postinst() {
elog "smrsh is compiled to look for programs in /var/lib/smrsh."
}