# $NetBSD: Makefile,v 1.8 2000/08/21 21:01:31 hubertf Exp $ DISTNAME= mailwrapper-19990412 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_LOCAL} MAINTAINER= packages@netbsd.org NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL NO_CONFIGURE= yes MANCOMPRESSED_IF_MANZ= yes .if exists(/usr/sbin/mailwrapper) IGNORE= "${PKGNAME} is part of your NetBSD distribution" .endif WRKSRC= ${WRKDIR}/mailwrapper MAILER_CONF= /etc/mailer.conf LIBEXECDIR= /usr/libexec/sendmail SENDMAIL= /usr/sbin/sendmail post-install: ${INSTALL_DATA} ${WRKSRC}/mailer.conf ${PREFIX}/etc/mailer.conf.default ${TEST} -e ${MAILER_CONF} || \ ${LN} -s ${PREFIX}/etc/mailer.conf.default /etc/mailer.conf ${MKDIR} ${LIBEXECDIR} ${MV} -i ${SENDMAIL} ${LIBEXECDIR} /dev/null || ${TRUE} ${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/mailq ${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/newaliases ${LN} -fs ${PREFIX}/sbin/mailwrapper ${SENDMAIL} .include "../../mk/bsd.pkg.mk"