blob: 108e2ce9a027b7f5bcb1f879c26f3585010789d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Martin Schlemmer <azarah@gentoo.org>
MX_VER="8.1.1"
S=${WORKDIR}/mailx-${MX_VER}.orig
DESCRIPTION="The /bin/mail program, which is used to send mail via shell scripts."
SRC_URI="ftp://ftp.debian.org/debian/pool/main/m/mailx/mailx_${MX_VER}.orig.tar.gz"
HOMEPAGE="http://www.debian.org"
DEPEND="virtual/glibc
>=net-libs/liblockfile-1.03"
src_unpack() {
unpack ${A}
cd ${S}
patch -p1 < ${FILESDIR}/${PF}.diff || die
patch -p1 < ${FILESDIR}/${PF}-version.diff || die
# It needs to install to /bin/mail (else conflicts with Postfix)
# Also man pages go to /usr/share/man for FHS compliancy
patch -p0 <${FILESDIR}/${PF}-Makefile.diff || die
}
src_compile() {
# Can't compile mailx with optimizations
_CFLAGS=$(echo $CFLAGS|sed 's/-O.//g')
make CFLAGS="$_CFLAGS" || die
}
src_install() {
dodir /bin /usr/share/man/man1 /etc /usr/lib
make BINDIR=/bin DESTDIR=${D} install || die
# Install the docs
docinto debian
dodoc debian/*
# Some scripts require /bin/Mail
dosym mail /bin/Mail
dosym mail.1 /usr/share/man/man1/Mail.1
}
|