1
0
forked from ports/opt
opt/nail/Pkgfile
2005-11-16 18:05:23 +00:00

30 lines
822 B
Plaintext

# Description: Replacement for Berkeley Mail and System V mailx command
# URL: http://nail.sourceforge.net/
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
name=nail
version=11.25
release=1
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
build() {
cd $name-$version
sed -i 's|/etc/nail.rc|/usr/etc/nail.rc|' nail.1
echo 'set PAGER=/usr/bin/less' >> nail.rc
make install \
PREFIX=/usr \
SYSCONFDIR=/usr/etc \
MANDIR=/usr/man \
SENDMAIL=/usr/sbin/sendmail \
MAILSPOOL=/var/spool/mail \
UCBINSTALL=/usr/bin/install \
DESTDIR=$PKG
ln -s nail $PKG/usr/bin/Mail
ln -s nail $PKG/usr/bin/mail
ln -s nail $PKG/usr/bin/mailx
ln -s nail.1 $PKG/usr/man/man1/mail.1
}