pkgsrc/mail/qmail/Makefile
zuntum c8ef30ea37 Major rewrite of qmail package.
By default (the one set in bsd.pkg.defaults.mk) qmail installs into /var/qmail.
This can be changed by setting QMAILDIR in /etc/mk.conf to another directory,
for example /usr/qmail.

If you want to user non-standard path of installation, make sure to set it in
/etc/mk.conf *before* attempting to install any of qmail packages,
and do not change it in the mean time (if you install qmail with QMAILDIR set to
/var/qmail, change it to another dir and try to install qmail-conf, you will lose).

Slave packages will soon be updated to use this feature.
2002-01-21 18:45:03 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2002/01/21 18:45:03 zuntum Exp $
#
DISTNAME= qmail-1.03
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/ \
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
ftp://ftp.jp.qmail.org/qmail/ \
ftp://ftp.rifkin.technion.ac.il/pub/qmail/ \
ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/ \
ftp://ftp.id.wustl.edu/pub/qmail/
# Patch necessary to cope with non-RFC >512 dns entries
# Since AOL has been using those, the problem has skyrocketed from minor to
# groundzero. qmail being RFC compliant need to be "fixed" to work with those
PATCH_SITES= http://www.ckdhr.com/ckd/
PATCHFILES= qmail-103.patch
PATCH_DIST_STRIP= -p1
MAINTAINER= zuntum@netbsd.org
HOMEPAGE= http://www.qmail.org/
COMMENT= SECURE, reliable, efficient, simple, and FAST MTA for UNIX systems
DEPENDS+= qmail-users>=1.0:../../mail/qmail-users
ALL_TARGET= it man
INSTALL_TARGET= setup check
IS_INTERACTIVE= YES
NO_PACKAGE= YES
OWN_DIRS+= ${QMAILDIR}
.include "../../mk/bsd.prefs.mk"
NO_MTREE= YES
LOCALBASE= /
DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL
pre-build:
${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail
post-install:
${MKDIR} ${QMAILDIR}/alias
cd ${QMAILDIR}/alias && \
${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"