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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 15 14:28:17 2013 UTC (5 years, 9 months ago) by eras
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump - bug #451682 and remove old

(Portage version: 2.2.0_alpha152/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)

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

  ViewVC Help
Powered by ViewVC 1.1.20