2010-11-26 11:58:03 +01:00
|
|
|
# Template file for 'mailx'
|
|
|
|
pkgname=mailx
|
|
|
|
version=12.5
|
2014-03-17 12:22:21 +01:00
|
|
|
revision=5
|
2010-11-26 11:58:03 +01:00
|
|
|
patch_args="-Np1"
|
2013-12-12 21:34:26 +01:00
|
|
|
wrksrc="mailx-${version}"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="openssl-devel mit-krb5-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/mail.rc"
|
|
|
|
provides="mail-${version}"
|
|
|
|
replaces="mail>=0"
|
2010-11-26 11:58:03 +01:00
|
|
|
short_desc="Feature-rich BSD mail(1)"
|
2013-03-31 09:51:31 +02:00
|
|
|
homepage="http://heirloom.sourceforge.net/mailx.html"
|
2013-12-12 21:34:26 +01:00
|
|
|
license="BSD"
|
2010-11-26 11:58:03 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-12-12 21:34:26 +01:00
|
|
|
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/mailx/mailx-${version}.tar.xz/836bf1da322d2d1f78b7056c2b3b2304/${pkgname}-${version}.tar.xz"
|
2013-03-31 09:51:31 +02:00
|
|
|
checksum=1b8136fb2466adeaf71a5e3c65db9fa1a967f1f6469ff689c2cf06e21f638823
|
2010-11-26 11:58:03 +01:00
|
|
|
|
2013-04-14 04:24:51 +02:00
|
|
|
do_build() {
|
2013-12-12 21:34:26 +01:00
|
|
|
echo PREFIX=/usr \
|
|
|
|
BINDIR=/usr/bin \
|
|
|
|
MANDIR=/usr/share/man \
|
|
|
|
SYSCONFDIR=/etc \
|
|
|
|
MAILRC=/etc/mail.rc \
|
2010-11-26 11:58:03 +01:00
|
|
|
MAILSPOOL=/var/spool/mail \
|
2013-12-12 21:34:26 +01:00
|
|
|
UCBINSTALL=install \
|
|
|
|
STRIP=$STRIP \
|
|
|
|
SENDMAIL=/usr/bin/sendmail \
|
|
|
|
> makeflags
|
2010-11-26 11:58:03 +01:00
|
|
|
|
2013-12-12 21:34:26 +01:00
|
|
|
make $(cat makeflags) IPv6=-DHAVE_IPv6_FUNCS \
|
|
|
|
CFLAGS="${CFLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
2010-11-26 11:58:03 +01:00
|
|
|
}
|
|
|
|
|
2013-04-14 04:24:51 +02:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} $(cat makeflags) install
|
|
|
|
|
2013-12-12 21:34:26 +01:00
|
|
|
ln -s mailx ${DESTDIR}/usr/bin/mail
|
2013-04-14 04:24:51 +02:00
|
|
|
ln -s mailx.1 ${DESTDIR}/usr/share/man/man1/mail.1
|
|
|
|
}
|