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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 15 14:28:17 2013 UTC (5 years ago) by eras
Branch: MAIN
CVS Tags: HEAD
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-2013 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.2 2011/11/22 16:13:13 phajdan.jr 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}/${PN}-8.14.5-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