/[gentoo-x86]/app-shells/smrsh/smrsh-8.14.5.ebuild
Gentoo

Contents of /app-shells/smrsh/smrsh-8.14.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 22 16:13:13 2011 UTC (7 years ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
x86 stable wrt bug #391097

(Portage version: 2.1.10.11/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/smrsh/smrsh-8.14.5.ebuild,v 1.1 2011/06/14 15:28:10 eras Exp $
4
5 EAPI=4
6 inherit toolchain-funcs
7
8 DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail"
9 HOMEPAGE="http://www.sendmail.org/"
10 SRC_URI="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${PV}.tar.gz"
11
12 LICENSE="Sendmail"
13 SLOT="0"
14 KEYWORDS="~amd64 x86"
15 IUSE=""
16
17 DEPEND="sys-devel/m4
18 >=sys-apps/sed-4"
19 RDEPEND="${DEPEND}
20 !mail-mta/sendmail"
21
22 S="${WORKDIR}/sendmail-${PV}"
23
24 src_prepare() {
25 cd "${S}/${PN}"
26 sed -e "s:/usr/libexec:/usr/sbin:g" \
27 -e "s:/usr/adm/sm.bin:/var/lib/smrsh:g" \
28 -i README -i smrsh.8 || die "sed failed"
29
30 sed -e "s:@@confCCOPTS@@:${CFLAGS}:" \
31 -e "s:@@confLDOPTS@@:${LDFLAGS}:" \
32 -e "s:@@confCC@@:$(tc-getCC):" "${FILESDIR}/${P}-site.config.m4" \
33 > "${S}/devtools/Site/site.config.m4" || die "sed failed"
34 }
35
36 src_compile() {
37 cd "${S}/${PN}"
38 /bin/sh Build
39 }
40
41 src_install() {
42 dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}" || die
43
44 cd "${S}/${PN}"
45 doman smrsh.8 || die
46 dodoc README || die
47
48 keepdir /var/lib/smrsh
49 }
50
51 pkg_postinst() {
52 elog "smrsh is compiled to look for programs in /var/lib/smrsh."
53 echo
54 }

  ViewVC Help
Powered by ViewVC 1.1.20