diff options
Diffstat (limited to 'app-shells/smrsh')
-rw-r--r-- | app-shells/smrsh/Manifest | 4 | ||||
-rw-r--r-- | app-shells/smrsh/files/site.config.m4 | 14 | ||||
-rw-r--r-- | app-shells/smrsh/metadata.xml | 8 | ||||
-rw-r--r-- | app-shells/smrsh/smrsh-8.15.2.ebuild | 53 |
4 files changed, 79 insertions, 0 deletions
diff --git a/app-shells/smrsh/Manifest b/app-shells/smrsh/Manifest new file mode 100644 index 000000000000..3fc11431e540 --- /dev/null +++ b/app-shells/smrsh/Manifest @@ -0,0 +1,4 @@ +AUX site.config.m4 524 BLAKE2B 79841306c8d161fa2f96deb2295acacf6d6c5e26519fa4fb92bddcb7fc29d862cbc297ac242b355165571f2a78eef4e5ffd97c47a31710956ab98e24aefb57ec SHA512 9461e85b83fdf8d13649d1a63ae630ce91c94c8707237f8855c0a5567e550e08e3f7b5297c105f9fa5a8d5639dd5f411245191ab1c3ac5931ad0ae6b3251577d +DIST sendmail.8.15.2.tar.gz 2207417 BLAKE2B 3d9dfb5bc2b535e30ef2fc61333e12a9b1fc45a5d730d2bed1ef956adb574721833f87aeba0475705b76e0c7d6cf00f9a10025bffb0de6c6b4dae606eb2ec399 SHA512 04feb37316c13b66b1518596507a7da7c16cb0bf1abf10367f7fd888a428fadb093a9efa55342fa55b936c3f0cbdc63b9e2505cd99201a69a0c05b8ad65f49f9 +EBUILD smrsh-8.15.2.ebuild 1196 BLAKE2B 0257c24566cb41d3410c08364c1c1c4d418f41e5343cbb88d445206fadddbb1469ff63d3f8aeac763cc798f7d3f7987c440f0b30e9e9463c49add08c73a7277a SHA512 5bc3ee052802bb5445b09110ae7185f3282a6e31cf46bbe2d08633779ff04c96c57d82521504a0d59d7c5fc3af94cbe48be291da81548f93417c70aad9fe4cd5 +MISC metadata.xml 240 BLAKE2B eeb6099e7ebc29b81588528b970830d2461fa16783bda673672d405615e46d240dcd806b3d18b6207ef8e5365f8860aa20c304394c3f5b267c5ea4dc739cb94b SHA512 97824dbce22630efb21e647b55212b7a8a19d8e38b5bf05cb0b8078530bbbaaf4dc91284e2a11beab7dfcfb779df82b87b49d11a746c7a4f6dc71f2fda8942db diff --git a/app-shells/smrsh/files/site.config.m4 b/app-shells/smrsh/files/site.config.m4 new file mode 100644 index 000000000000..24ef462ba2eb --- /dev/null +++ b/app-shells/smrsh/files/site.config.m4 @@ -0,0 +1,14 @@ +define(`confCCOPTS', `@@confCCOPTS@@') +define(`confSTDIO_TYPE', `portable') +define(`confENVDEF', `-DXDEBUG=0') +define(`confLDOPTS', `@@confLDOPTS@@') +define(`confMANOWN', `root') +define(`confMANGRP', `root') +define(`confMANMODE', `644') +define(`confMAN1SRC', `1') +define(`confMAN5SRC', `5') +define(`confMAN8SRC', `8') +define(`confLDOPTS_SO', `@@confLDOPTS@@') +define(`confCC', `@@confCC@@') +APPENDDEF(`conf_smrsh_ENVDEF', `-DSMRSH_PATH=\"/bin:/usr/bin\"') +APPENDDEF(`conf_smrsh_ENVDEF', `-DSMRSH_CMDDIR=\"/var/lib/smrsh\"') diff --git a/app-shells/smrsh/metadata.xml b/app-shells/smrsh/metadata.xml new file mode 100644 index 000000000000..9a6d80e5da48 --- /dev/null +++ b/app-shells/smrsh/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> +</maintainer> +</pkgmetadata> diff --git a/app-shells/smrsh/smrsh-8.15.2.ebuild b/app-shells/smrsh/smrsh-8.15.2.ebuild new file mode 100644 index 000000000000..c825f0f179de --- /dev/null +++ b/app-shells/smrsh/smrsh-8.15.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail" +HOMEPAGE="http://www.sendmail.org/" +SRC_URI="ftp://ftp.fu-berlin.de/unix/mail/sendmail/sendmail.${PV}.tar.gz" + +LICENSE="Sendmail" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="!mail-mta/sendmail" +DEPEND="${RDEPEND} + sys-devel/m4 + >=sys-apps/sed-4" + +S="${WORKDIR}/sendmail-${PV}" + +src_prepare() { + cd "${S}/${PN}" + 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}" + /bin/sh Build +} + +src_install() { + dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}" || die + + cd "${S}/${PN}" || die + doman "${PN}.8" || die + dodoc README || die + + keepdir "/var/lib/${PN}" +} + +pkg_postinst() { + elog "smrsh is compiled to look for programs in /var/lib/smrsh." + echo +} |