diff options
author | Eray Aslan <eras@gentoo.org> | 2011-06-14 15:28:10 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2011-06-14 15:28:10 +0000 |
commit | 5c4d64c70b9ec5e1ce720c4e479ef67b1f6d75c7 (patch) | |
tree | 6245cc7c8ba323648cc7d817984cfc71f31d2dd0 /app-shells | |
parent | Version bump, revert to previous patch tarball as the llvm patch was applied ... (diff) | |
download | gentoo-2-5c4d64c70b9ec5e1ce720c4e479ef67b1f6d75c7.tar.gz gentoo-2-5c4d64c70b9ec5e1ce720c4e479ef67b1f6d75c7.tar.bz2 gentoo-2-5c4d64c70b9ec5e1ce720c4e479ef67b1f6d75c7.zip |
Version bump. Respect CC
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/smrsh/ChangeLog | 8 | ||||
-rw-r--r-- | app-shells/smrsh/files/smrsh-8.14.5-site.config.m4 | 14 | ||||
-rw-r--r-- | app-shells/smrsh/smrsh-8.14.5.ebuild | 54 |
3 files changed, 75 insertions, 1 deletions
diff --git a/app-shells/smrsh/ChangeLog b/app-shells/smrsh/ChangeLog index 1283236af405..9f6e2769fd84 100644 --- a/app-shells/smrsh/ChangeLog +++ b/app-shells/smrsh/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-shells/smrsh # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/smrsh/ChangeLog,v 1.9 2011/05/12 12:10:58 eras Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/smrsh/ChangeLog,v 1.10 2011/06/14 15:28:10 eras Exp $ + +*smrsh-8.14.5 (14 Jun 2011) + + 14 Jun 2011; Eray Aslan <eras@gentoo.org> +smrsh-8.14.5.ebuild, + +files/smrsh-8.14.5-site.config.m4: + Version bump. Respect CC *smrsh-8.14.4 (12 May 2011) diff --git a/app-shells/smrsh/files/smrsh-8.14.5-site.config.m4 b/app-shells/smrsh/files/smrsh-8.14.5-site.config.m4 new file mode 100644 index 000000000000..24ef462ba2eb --- /dev/null +++ b/app-shells/smrsh/files/smrsh-8.14.5-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/smrsh-8.14.5.ebuild b/app-shells/smrsh/smrsh-8.14.5.ebuild new file mode 100644 index 000000000000..a15f449e7146 --- /dev/null +++ b/app-shells/smrsh/smrsh-8.14.5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/smrsh/smrsh-8.14.5.ebuild,v 1.1 2011/06/14 15:28:10 eras Exp $ + +EAPI=4 +inherit toolchain-funcs + +DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail" +HOMEPAGE="http://www.sendmail.org/" +SRC_URI="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${PV}.tar.gz" + +LICENSE="Sendmail" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-devel/m4 + >=sys-apps/sed-4" +RDEPEND="${DEPEND} + !mail-mta/sendmail" + +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}/${P}-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}" + doman smrsh.8 || die + dodoc README || die + + keepdir /var/lib/smrsh +} + +pkg_postinst() { + elog "smrsh is compiled to look for programs in /var/lib/smrsh." + echo +} |