commit: 9a67fe5a0ea3bc1a430a615711d71d9f366b75f6 Author: Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx> AuthorDate: Thu Apr 3 16:16:19 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Apr 10 09:32:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a67fe5a
app-shells/smrsh: bump to version 8.18.1, add myself as maintainer Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx> Signed-off-by: Sam James <sam <AT> gentoo.org> app-shells/smrsh/Manifest | 1 + app-shells/smrsh/metadata.xml | 9 +++++- app-shells/smrsh/smrsh-8.18.1.ebuild | 60 ++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 1 deletion(-) diff --git a/app-shells/smrsh/Manifest b/app-shells/smrsh/Manifest index 0134628b792a..f10117beed3b 100644 --- a/app-shells/smrsh/Manifest +++ b/app-shells/smrsh/Manifest @@ -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 diff --git a/app-shells/smrsh/metadata.xml b/app-shells/smrsh/metadata.xml index 85e4ed814fa2..5ba86804120d 100644 --- a/app-shells/smrsh/metadata.xml +++ b/app-shells/smrsh/metadata.xml @@ -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>[email protected]</email> + <name>Cristian Othón Martínez Vera</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> </pkgmetadata> diff --git a/app-shells/smrsh/smrsh-8.18.1.ebuild b/app-shells/smrsh/smrsh-8.18.1.ebuild new file mode 100644 index 000000000000..bada1d80ba8b --- /dev/null +++ b/app-shells/smrsh/smrsh-8.18.1.ebuild @@ -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." +}
