Commit 10a55456 authored by Manuel's avatar Manuel

Update

parent 689f0983
pkgname=heirloom-mailx
pkgver=12.5
pkgrel=1
pkgdesc="A commandline utility for sending and receiving email"
arch=('x86_64')
url="http://heirloom.sourceforge.net/mailx.html"
license=('custom')
groups=('base')
depends=('openssl' 'krb5')
optdepends=('smtp-forwarder: for sending mail')
replaces=('mailx')
provides=('mailx')
conflicts=('mailx')
backup=(etc/mail.rc)
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz)
sha1sums=('1998dd6168a68400e533712ae7163c72b6a7c056')
options=('!makeflags') # Does not build with MAKEFLAGS=-jX, X>1
# source PKGBUILD && mksource
mksource() {
export CVSROOT=:pserver:anonymous@nail.cvs.sourceforge.net:/cvsroot/nail
D=nail
[ -d "${D}" ] && cvs up "${D}" || cvs co "${D}"
_dirname=${pkgname}-${pkgver}
mv $D ${_dirname}
tar -cJv --exclude=CVS -f ${_dirname}.tar.xz ${_dirname}
rm -rf ${_dirname}
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's|/etc/nail.rc|/etc/mail.rc|g' mailx.1
# For Linux and BSD, this should be set.
echo "set bsdcompat" >> nail.rc
sed -i "s/pg/less/" cmd1.c
echo PREFIX=/usr \
MAILRC=/etc/mail.rc \
SENDMAIL=/usr/sbin/sendmail \
MAILSPOOL=/var/spool/mail \
UCBINSTALL=/usr/bin/install > makeflags
make `cat makeflags` IPv6=-DHAVE_IPv6_FUNCS
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" `cat makeflags` install
# For compatibility with the old mailx program
ln -sf mailx "${pkgdir}"/usr/bin/mail
ln -sf mailx.1.gz "${pkgdir}"/usr/share/man/man1/mail.1.gz
install -D -m0644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
# $Id: PKGBUILD 33080 2009-04-04 07:02:59Z allan $
# Maintainer: judd <jvinet@zeroflux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=mailx
pkgver=8.1.1
pkgrel=8
pkgdesc="A commandline utility for sending email"
arch=('i686' 'x86_64')
url="http://www.opengroup.org/onlinepubs/007908799/xcu/mailx.html"
license=('BSD')
groups=('base')
depends=('glibc')
optdepends=('smtp-forwarder: for sending mail')
backup=('etc/mail.rc')
source=(ftp://ftp.archlinux.org/other/mailx/$pkgname-$pkgver-fixed.tar.gz \
mailx-$pkgver.patch mailx-gcc4.patch)
md5sums=('63cad526ac64b57bcba2c0daaa1f3048' '905cfa35b5131524bfec0c677d456bd3'\
'8716c7c7b3f5d348443230e2fe543bf6')
build() {
cd $srcdir/$pkgname-$pkgver-fixed
patch -Np1 -i $srcdir/mailx-$pkgver.patch || return 1
patch -Np0 -i $srcdir/mailx-gcc4.patch || return 1
sed -i 's#/man/#/share/man/#' Makefile
make all || return 1
make DESTDIR=$pkgdir install
install -dm755 $pkgdir/usr/share/licenses/mailx/
head -35 main.c > $pkgdir/usr/share/licenses/mailx/LICENSE
}
diff -Naur mailx-8.1.1-fixed-orig/Makefile mailx-8.1.1-fixed/Makefile
--- mailx-8.1.1-fixed-orig/Makefile Thu Mar 16 09:30:36 2000
+++ mailx-8.1.1-fixed/Makefile Wed Feb 27 12:50:09 2002
@@ -7,18 +7,20 @@
BINOWN = root
BINGRP = mail
+DESTDIR =
+
all:
gcc $(SRCS) -o $(PROG)
install:
- mkdir -p /usr/share/misc
- mkdir -p /usr/share/man/man1
- mkdir -p /etc
- mkdir -p /usr/bin
- install -o $(BINOWN) -g $(BINGRP) -m 2755 $(PROG) /usr/bin
- install -o root -g root -m 644 mail.1 /usr/share/man/man1
+ mkdir -p $(DESTDIR)/usr/share/misc
+ mkdir -p $(DESTDIR)/usr/man/man1
+ mkdir -p $(DESTDIR)/etc
+ mkdir -p $(DESTDIR)/usr/bin
+ install -o $(BINOWN) -g $(BINGRP) -m 2755 $(PROG) $(DESTDIR)/usr/bin
+ install -o root -g root -m 644 mail.1 $(DESTDIR)/usr/man/man1
cd misc; install -c -o ${BINOWN} -g ${BINGRP} \
- -m 444 ${SFILES} /usr/share/misc
+ -m 444 ${SFILES} $(DESTDIR)/usr/share/misc
cd misc; install -c -o root -g root \
- -m 644 ${EFILES} /etc
+ -m 644 ${EFILES} $(DESTDIR)/etc
K. Piche: Unofficial patch for mailx.
--- dotlock.c.orig 2005-09-18 20:28:20.000000000 -0400
+++ dotlock.c 2005-09-18 20:26:59.000000000 -0400
@@ -47,6 +47,7 @@
#include <errno.h>
#include <signal.h>
+#include "def.h"
#include "extern.h"
#ifndef O_SYNC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment