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.
This commit is contained in:
zuntum 2002-01-21 18:45:03 +00:00
parent 0d4ac27951
commit c8ef30ea37
2 changed files with 200 additions and 202 deletions

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.5 2002/01/21 16:00:52 zuntum Exp $ # $NetBSD: Makefile,v 1.6 2002/01/21 18:45:03 zuntum Exp $
# #
DISTNAME= qmail-1.03 DISTNAME= qmail-1.03
PKGREVISION= 1
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/ \ MASTER_SITES= http://cr.yp.to/software/ \
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \ ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
@ -27,23 +28,21 @@ ALL_TARGET= it man
INSTALL_TARGET= setup check INSTALL_TARGET= setup check
IS_INTERACTIVE= YES IS_INTERACTIVE= YES
NO_PACKAGE= "Has to be compiled on target system due to installation path issue" NO_PACKAGE= YES
QMAILDIR?= /var/qmail
MESSAGE_SUBST+= QMAILDIR=${QMAILDIR}
OWN_DIRS+= ${QMAILDIR} OWN_DIRS+= ${QMAILDIR}
.include "../../mk/bsd.prefs.mk"
NO_MTREE= YES
LOCALBASE= /
DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL
pre-build: pre-build:
${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc ${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail ${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail
pre-install:
${LN} -sf ${QMAILDIR} ${PREFIX}/qmail
post-install: post-install:
${MKDIR} ${QMAILDIR}/alias ${MKDIR} ${QMAILDIR}/alias
cd ${QMAILDIR}/alias && \ cd ${QMAILDIR}/alias && \

View file

@ -1,193 +1,192 @@
@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:01:11 zuntum Exp $ @comment $NetBSD: PLIST,v 1.2 2002/01/21 18:45:04 zuntum Exp $
qmail/doc/FAQ ${QMAILDIR}/doc/FAQ
qmail/doc/UPGRADE ${QMAILDIR}/doc/UPGRADE
qmail/doc/SENDMAIL ${QMAILDIR}/doc/SENDMAIL
qmail/doc/INSTALL ${QMAILDIR}/doc/INSTALL
qmail/doc/INSTALL.alias ${QMAILDIR}/doc/INSTALL.alias
qmail/doc/INSTALL.ctl ${QMAILDIR}/doc/INSTALL.ctl
qmail/doc/INSTALL.ids ${QMAILDIR}/doc/INSTALL.ids
qmail/doc/INSTALL.maildir ${QMAILDIR}/doc/INSTALL.maildir
qmail/doc/INSTALL.mbox ${QMAILDIR}/doc/INSTALL.mbox
qmail/doc/INSTALL.vsm ${QMAILDIR}/doc/INSTALL.vsm
qmail/doc/TEST.deliver ${QMAILDIR}/doc/TEST.deliver
qmail/doc/TEST.receive ${QMAILDIR}/doc/TEST.receive
qmail/doc/REMOVE.sendmail ${QMAILDIR}/doc/REMOVE.sendmail
qmail/doc/REMOVE.binmail ${QMAILDIR}/doc/REMOVE.binmail
qmail/doc/PIC.local2alias ${QMAILDIR}/doc/PIC.local2alias
qmail/doc/PIC.local2ext ${QMAILDIR}/doc/PIC.local2ext
qmail/doc/PIC.local2local ${QMAILDIR}/doc/PIC.local2local
qmail/doc/PIC.local2rem ${QMAILDIR}/doc/PIC.local2rem
qmail/doc/PIC.local2virt ${QMAILDIR}/doc/PIC.local2virt
qmail/doc/PIC.nullclient ${QMAILDIR}/doc/PIC.nullclient
qmail/doc/PIC.relaybad ${QMAILDIR}/doc/PIC.relaybad
qmail/doc/PIC.relaygood ${QMAILDIR}/doc/PIC.relaygood
qmail/doc/PIC.rem2local ${QMAILDIR}/doc/PIC.rem2local
qmail/boot/home ${QMAILDIR}/boot/home
qmail/boot/home+df ${QMAILDIR}/boot/home+df
qmail/boot/proc ${QMAILDIR}/boot/proc
qmail/boot/proc+df ${QMAILDIR}/boot/proc+df
qmail/boot/binm1 ${QMAILDIR}/boot/binm1
qmail/boot/binm1+df ${QMAILDIR}/boot/binm1+df
qmail/boot/binm2 ${QMAILDIR}/boot/binm2
qmail/boot/binm2+df ${QMAILDIR}/boot/binm2+df
qmail/boot/binm3 ${QMAILDIR}/boot/binm3
qmail/boot/binm3+df ${QMAILDIR}/boot/binm3+df
qmail/bin/qmail-queue ${QMAILDIR}/bin/qmail-queue
qmail/bin/qmail-lspawn ${QMAILDIR}/bin/qmail-lspawn
qmail/bin/qmail-start ${QMAILDIR}/bin/qmail-start
qmail/bin/qmail-getpw ${QMAILDIR}/bin/qmail-getpw
qmail/bin/qmail-local ${QMAILDIR}/bin/qmail-local
qmail/bin/qmail-remote ${QMAILDIR}/bin/qmail-remote
qmail/bin/qmail-rspawn ${QMAILDIR}/bin/qmail-rspawn
qmail/bin/qmail-clean ${QMAILDIR}/bin/qmail-clean
qmail/bin/qmail-send ${QMAILDIR}/bin/qmail-send
qmail/bin/splogger ${QMAILDIR}/bin/splogger
qmail/bin/qmail-newu ${QMAILDIR}/bin/qmail-newu
qmail/bin/qmail-newmrh ${QMAILDIR}/bin/qmail-newmrh
qmail/bin/qmail-pw2u ${QMAILDIR}/bin/qmail-pw2u
qmail/bin/qmail-inject ${QMAILDIR}/bin/qmail-inject
qmail/bin/predate ${QMAILDIR}/bin/predate
qmail/bin/datemail ${QMAILDIR}/bin/datemail
qmail/bin/mailsubj ${QMAILDIR}/bin/mailsubj
qmail/bin/qmail-showctl ${QMAILDIR}/bin/qmail-showctl
qmail/bin/qmail-qread ${QMAILDIR}/bin/qmail-qread
qmail/bin/qmail-qstat ${QMAILDIR}/bin/qmail-qstat
qmail/bin/qmail-tcpto ${QMAILDIR}/bin/qmail-tcpto
qmail/bin/qmail-tcpok ${QMAILDIR}/bin/qmail-tcpok
qmail/bin/qmail-pop3d ${QMAILDIR}/bin/qmail-pop3d
qmail/bin/qmail-popup ${QMAILDIR}/bin/qmail-popup
qmail/bin/qmail-qmqpc ${QMAILDIR}/bin/qmail-qmqpc
qmail/bin/qmail-qmqpd ${QMAILDIR}/bin/qmail-qmqpd
qmail/bin/qmail-qmtpd ${QMAILDIR}/bin/qmail-qmtpd
qmail/bin/qmail-smtpd ${QMAILDIR}/bin/qmail-smtpd
qmail/bin/sendmail ${QMAILDIR}/bin/sendmail
qmail/bin/tcp-env ${QMAILDIR}/bin/tcp-env
qmail/bin/qreceipt ${QMAILDIR}/bin/qreceipt
qmail/bin/qsmhook ${QMAILDIR}/bin/qsmhook
qmail/bin/qbiff ${QMAILDIR}/bin/qbiff
qmail/bin/forward ${QMAILDIR}/bin/forward
qmail/bin/preline ${QMAILDIR}/bin/preline
qmail/bin/condredirect ${QMAILDIR}/bin/condredirect
qmail/bin/bouncesaying ${QMAILDIR}/bin/bouncesaying
qmail/bin/except ${QMAILDIR}/bin/except
qmail/bin/maildirmake ${QMAILDIR}/bin/maildirmake
qmail/bin/maildir2mbox ${QMAILDIR}/bin/maildir2mbox
qmail/bin/maildirwatch ${QMAILDIR}/bin/maildirwatch
qmail/bin/qail ${QMAILDIR}/bin/qail
qmail/bin/elq ${QMAILDIR}/bin/elq
qmail/bin/pinq ${QMAILDIR}/bin/pinq
qmail/man/cat1/forward.0 ${QMAILDIR}/man/cat1/forward.0
qmail/man/cat1/condredirect.0 ${QMAILDIR}/man/cat1/condredirect.0
qmail/man/cat1/bouncesaying.0 ${QMAILDIR}/man/cat1/bouncesaying.0
qmail/man/cat1/except.0 ${QMAILDIR}/man/cat1/except.0
qmail/man/cat1/maildirmake.0 ${QMAILDIR}/man/cat1/maildirmake.0
qmail/man/cat1/maildir2mbox.0 ${QMAILDIR}/man/cat1/maildir2mbox.0
qmail/man/cat1/maildirwatch.0 ${QMAILDIR}/man/cat1/maildirwatch.0
qmail/man/cat1/mailsubj.0 ${QMAILDIR}/man/cat1/mailsubj.0
qmail/man/cat1/qreceipt.0 ${QMAILDIR}/man/cat1/qreceipt.0
qmail/man/cat1/qbiff.0 ${QMAILDIR}/man/cat1/qbiff.0
qmail/man/cat1/preline.0 ${QMAILDIR}/man/cat1/preline.0
qmail/man/cat1/tcp-env.0 ${QMAILDIR}/man/cat1/tcp-env.0
qmail/man/cat5/addresses.0 ${QMAILDIR}/man/cat5/addresses.0
qmail/man/cat5/envelopes.0 ${QMAILDIR}/man/cat5/envelopes.0
qmail/man/cat5/maildir.0 ${QMAILDIR}/man/cat5/maildir.0
qmail/man/cat5/mbox.0 ${QMAILDIR}/man/cat5/mbox.0
qmail/man/cat5/dot-qmail.0 ${QMAILDIR}/man/cat5/dot-qmail.0
qmail/man/cat5/qmail-control.0 ${QMAILDIR}/man/cat5/qmail-control.0
qmail/man/cat5/qmail-header.0 ${QMAILDIR}/man/cat5/qmail-header.0
qmail/man/cat5/qmail-log.0 ${QMAILDIR}/man/cat5/qmail-log.0
qmail/man/cat5/qmail-users.0 ${QMAILDIR}/man/cat5/qmail-users.0
qmail/man/cat5/tcp-environ.0 ${QMAILDIR}/man/cat5/tcp-environ.0
qmail/man/cat7/forgeries.0 ${QMAILDIR}/man/cat7/forgeries.0
qmail/man/cat7/qmail-limits.0 ${QMAILDIR}/man/cat7/qmail-limits.0
qmail/man/cat7/qmail.0 ${QMAILDIR}/man/cat7/qmail.0
qmail/man/cat8/qmail-local.0 ${QMAILDIR}/man/cat8/qmail-local.0
qmail/man/cat8/qmail-lspawn.0 ${QMAILDIR}/man/cat8/qmail-lspawn.0
qmail/man/cat8/qmail-getpw.0 ${QMAILDIR}/man/cat8/qmail-getpw.0
qmail/man/cat8/qmail-remote.0 ${QMAILDIR}/man/cat8/qmail-remote.0
qmail/man/cat8/qmail-rspawn.0 ${QMAILDIR}/man/cat8/qmail-rspawn.0
qmail/man/cat8/qmail-clean.0 ${QMAILDIR}/man/cat8/qmail-clean.0
qmail/man/cat8/qmail-send.0 ${QMAILDIR}/man/cat8/qmail-send.0
qmail/man/cat8/qmail-start.0 ${QMAILDIR}/man/cat8/qmail-start.0
qmail/man/cat8/splogger.0 ${QMAILDIR}/man/cat8/splogger.0
qmail/man/cat8/qmail-queue.0 ${QMAILDIR}/man/cat8/qmail-queue.0
qmail/man/cat8/qmail-inject.0 ${QMAILDIR}/man/cat8/qmail-inject.0
qmail/man/cat8/qmail-showctl.0 ${QMAILDIR}/man/cat8/qmail-showctl.0
qmail/man/cat8/qmail-newmrh.0 ${QMAILDIR}/man/cat8/qmail-newmrh.0
qmail/man/cat8/qmail-newu.0 ${QMAILDIR}/man/cat8/qmail-newu.0
qmail/man/cat8/qmail-pw2u.0 ${QMAILDIR}/man/cat8/qmail-pw2u.0
qmail/man/cat8/qmail-qread.0 ${QMAILDIR}/man/cat8/qmail-qread.0
qmail/man/cat8/qmail-qstat.0 ${QMAILDIR}/man/cat8/qmail-qstat.0
qmail/man/cat8/qmail-tcpok.0 ${QMAILDIR}/man/cat8/qmail-tcpok.0
qmail/man/cat8/qmail-tcpto.0 ${QMAILDIR}/man/cat8/qmail-tcpto.0
qmail/man/cat8/qmail-pop3d.0 ${QMAILDIR}/man/cat8/qmail-pop3d.0
qmail/man/cat8/qmail-popup.0 ${QMAILDIR}/man/cat8/qmail-popup.0
qmail/man/cat8/qmail-qmqpc.0 ${QMAILDIR}/man/cat8/qmail-qmqpc.0
qmail/man/cat8/qmail-qmqpd.0 ${QMAILDIR}/man/cat8/qmail-qmqpd.0
qmail/man/cat8/qmail-qmtpd.0 ${QMAILDIR}/man/cat8/qmail-qmtpd.0
qmail/man/cat8/qmail-smtpd.0 ${QMAILDIR}/man/cat8/qmail-smtpd.0
qmail/man/cat8/qmail-command.0 ${QMAILDIR}/man/cat8/qmail-command.0
qmail/man/man1/forward.1 ${QMAILDIR}/man/man1/forward.1
qmail/man/man1/condredirect.1 ${QMAILDIR}/man/man1/condredirect.1
qmail/man/man1/bouncesaying.1 ${QMAILDIR}/man/man1/bouncesaying.1
qmail/man/man1/except.1 ${QMAILDIR}/man/man1/except.1
qmail/man/man1/maildirmake.1 ${QMAILDIR}/man/man1/maildirmake.1
qmail/man/man1/maildir2mbox.1 ${QMAILDIR}/man/man1/maildir2mbox.1
qmail/man/man1/maildirwatch.1 ${QMAILDIR}/man/man1/maildirwatch.1
qmail/man/man1/mailsubj.1 ${QMAILDIR}/man/man1/mailsubj.1
qmail/man/man1/qreceipt.1 ${QMAILDIR}/man/man1/qreceipt.1
qmail/man/man1/qbiff.1 ${QMAILDIR}/man/man1/qbiff.1
qmail/man/man1/preline.1 ${QMAILDIR}/man/man1/preline.1
qmail/man/man1/tcp-env.1 ${QMAILDIR}/man/man1/tcp-env.1
qmail/man/man5/addresses.5 ${QMAILDIR}/man/man5/addresses.5
qmail/man/man5/envelopes.5 ${QMAILDIR}/man/man5/envelopes.5
qmail/man/man5/maildir.5 ${QMAILDIR}/man/man5/maildir.5
qmail/man/man5/mbox.5 ${QMAILDIR}/man/man5/mbox.5
qmail/man/man5/dot-qmail.5 ${QMAILDIR}/man/man5/dot-qmail.5
qmail/man/man5/qmail-control.5 ${QMAILDIR}/man/man5/qmail-control.5
qmail/man/man5/qmail-header.5 ${QMAILDIR}/man/man5/qmail-header.5
qmail/man/man5/qmail-log.5 ${QMAILDIR}/man/man5/qmail-log.5
qmail/man/man5/qmail-users.5 ${QMAILDIR}/man/man5/qmail-users.5
qmail/man/man5/tcp-environ.5 ${QMAILDIR}/man/man5/tcp-environ.5
qmail/man/man7/forgeries.7 ${QMAILDIR}/man/man7/forgeries.7
qmail/man/man7/qmail-limits.7 ${QMAILDIR}/man/man7/qmail-limits.7
qmail/man/man7/qmail.7 ${QMAILDIR}/man/man7/qmail.7
qmail/man/man8/qmail-local.8 ${QMAILDIR}/man/man8/qmail-local.8
qmail/man/man8/qmail-lspawn.8 ${QMAILDIR}/man/man8/qmail-lspawn.8
qmail/man/man8/qmail-getpw.8 ${QMAILDIR}/man/man8/qmail-getpw.8
qmail/man/man8/qmail-remote.8 ${QMAILDIR}/man/man8/qmail-remote.8
qmail/man/man8/qmail-rspawn.8 ${QMAILDIR}/man/man8/qmail-rspawn.8
qmail/man/man8/qmail-clean.8 ${QMAILDIR}/man/man8/qmail-clean.8
qmail/man/man8/qmail-send.8 ${QMAILDIR}/man/man8/qmail-send.8
qmail/man/man8/qmail-start.8 ${QMAILDIR}/man/man8/qmail-start.8
qmail/man/man8/splogger.8 ${QMAILDIR}/man/man8/splogger.8
qmail/man/man8/qmail-queue.8 ${QMAILDIR}/man/man8/qmail-queue.8
qmail/man/man8/qmail-inject.8 ${QMAILDIR}/man/man8/qmail-inject.8
qmail/man/man8/qmail-showctl.8 ${QMAILDIR}/man/man8/qmail-showctl.8
qmail/man/man8/qmail-newmrh.8 ${QMAILDIR}/man/man8/qmail-newmrh.8
qmail/man/man8/qmail-newu.8 ${QMAILDIR}/man/man8/qmail-newu.8
qmail/man/man8/qmail-pw2u.8 ${QMAILDIR}/man/man8/qmail-pw2u.8
qmail/man/man8/qmail-qread.8 ${QMAILDIR}/man/man8/qmail-qread.8
qmail/man/man8/qmail-qstat.8 ${QMAILDIR}/man/man8/qmail-qstat.8
qmail/man/man8/qmail-tcpok.8 ${QMAILDIR}/man/man8/qmail-tcpok.8
qmail/man/man8/qmail-tcpto.8 ${QMAILDIR}/man/man8/qmail-tcpto.8
qmail/man/man8/qmail-pop3d.8 ${QMAILDIR}/man/man8/qmail-pop3d.8
qmail/man/man8/qmail-popup.8 ${QMAILDIR}/man/man8/qmail-popup.8
qmail/man/man8/qmail-qmqpc.8 ${QMAILDIR}/man/man8/qmail-qmqpc.8
qmail/man/man8/qmail-qmqpd.8 ${QMAILDIR}/man/man8/qmail-qmqpd.8
qmail/man/man8/qmail-qmtpd.8 ${QMAILDIR}/man/man8/qmail-qmtpd.8
qmail/man/man8/qmail-smtpd.8 ${QMAILDIR}/man/man8/qmail-smtpd.8
qmail/man/man8/qmail-command.8 ${QMAILDIR}/man/man8/qmail-command.8
@dirrm qmail/man/cat1 @dirrm ${QMAILDIR}/man/cat1
@dirrm qmail/man/cat5 @dirrm ${QMAILDIR}/man/cat5
@dirrm qmail/man/cat7 @dirrm ${QMAILDIR}/man/cat7
@dirrm qmail/man/cat8 @dirrm ${QMAILDIR}/man/cat8
@dirrm qmail/man/man1 @dirrm ${QMAILDIR}/man/man1
@dirrm qmail/man/man5 @dirrm ${QMAILDIR}/man/man5
@dirrm qmail/man/man7 @dirrm ${QMAILDIR}/man/man7
@dirrm qmail/man/man8 @dirrm ${QMAILDIR}/man/man8
@dirrm qmail/man @dirrm ${QMAILDIR}/man
@dirrm qmail/doc @dirrm ${QMAILDIR}/doc
@dirrm qmail/boot @dirrm ${QMAILDIR}/boot
@dirrm qmail/bin @dirrm ${QMAILDIR}/bin
qmail