1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

New port following the apache structure port naming convention. This

one builds qmail with ldap support using http://www.nrg4u.com/ patches.

PR:		18732
Submitted by:	Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
This commit is contained in:
Maxim Sobolev 2000-09-19 15:46:57 +00:00
parent 3b69e38f35
commit 952a060d79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32858
8 changed files with 433 additions and 0 deletions

View File

@ -103,6 +103,7 @@
SUBDIR += pygmy
SUBDIR += qmail
SUBDIR += qmail-contrib
SUBDIR += qmail-ldap
SUBDIR += qmailanalog
SUBDIR += qpopper
SUBDIR += rblcheck

36
mail/qmail-ldap/Makefile Normal file
View File

@ -0,0 +1,36 @@
# New ports collection makefile for: qmail-ldap
# Date created: 21 May 2000
# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
#
# $FreeBSD$
#
PORTNAME= qmail
PORTVERSION= 1.03
CATEGORIES= mail
PKGNAMESUFFIX= -ldap
PATCH_SITES= http://www.nrg4u.com/qmail/
PATCHFILES= qmail-ldap-1.03-20000501.patch.gz
MAINTAINER= lioux@linf.unb.br
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap
.if !defined(PRE_MK_INCLUDED)
.include <bsd.port.pre.mk>
.endif
DOCFILES+= ${WRKSRC}/QLDAPINSTALL ${WRKSRC}/ANTISPAM
# Local overrides
MASTERDIR= ${.CURDIR}/../qmail
PATCHDIR= ${.CURDIR}/patches
PKGDIR_LOCAL= ${.CURDIR}/pkg
DESCR= ${PKGDIR_LOCAL}/DESCR
PLIST= ${PKGDIR_LOCAL}/PLIST
PKGMESSAGE= ${PKGDIR_LOCAL}/MESSAGE
PRE_MK_INCLUDED= yes
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,174 @@
--- hier.c.ORIG Sun May 21 12:19:27 2000
+++ hier.c Sun May 21 12:26:01 2000
@@ -35,16 +35,6 @@
d(auto_qmail,"users",auto_uido,auto_gidq,0755);
d(auto_qmail,"bin",auto_uido,auto_gidq,0755);
d(auto_qmail,"boot",auto_uido,auto_gidq,0755);
- d(auto_qmail,"doc",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/cat1",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/cat5",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/cat7",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/cat8",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/man1",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/man5",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/man7",auto_uido,auto_gidq,0755);
- d(auto_qmail,"man/man8",auto_uido,auto_gidq,0755);
d(auto_qmail,"alias",auto_uida,auto_gidq,02755);
@@ -64,43 +54,6 @@
z(auto_qmail,"queue/lock/sendmutex",0,auto_uids,auto_gidq,0600);
p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622);
- c(auto_qmail,"boot","home",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","home+df",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","proc",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","proc+df",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm1",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm1+df",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm2",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm2+df",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm3",auto_uido,auto_gidq,0755);
- c(auto_qmail,"boot","binm3+df",auto_uido,auto_gidq,0755);
-
- c(auto_qmail,"doc","FAQ",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","UPGRADE",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","SENDMAIL",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.alias",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.ctl",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.ids",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.maildir",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.mbox",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","INSTALL.vsm",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","TEST.deliver",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","TEST.receive",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","REMOVE.sendmail",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","REMOVE.binmail",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.local2alias",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.local2ext",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.local2local",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.local2rem",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.local2virt",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.nullclient",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.relaybad",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.relaygood",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","PIC.rem2local",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","QLDAPINSTALL",auto_uido,auto_gidq,0644);
- c(auto_qmail,"doc","ANTISPAM",auto_uido,auto_gidq,0644);
-
c(auto_qmail,"bin","qmail-queue",auto_uidq,auto_gidq,04711);
c(auto_qmail,"bin","qmail-lspawn",auto_uido,auto_gidq,0700);
c(auto_qmail,"bin","qmail-start",auto_uido,auto_gidq,0700);
@@ -150,110 +103,4 @@
c(auto_qmail,"bin","auth_pop",auto_uido,auto_gidq,0700);
c(auto_qmail,"bin","auth_imap",auto_uido,auto_gidq,0700);
c(auto_qmail,"bin","qmail-ldaplookup",auto_uido,auto_gidq,0000);
-
- c(auto_qmail,"man/man5","addresses.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","addresses.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","envelopes.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","envelopes.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","maildir.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","maildir.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","mbox.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","mbox.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","dot-qmail.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","dot-qmail.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","qmail-control.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","qmail-control.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","qmail-header.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","qmail-header.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","qmail-log.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","qmail-log.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","qmail-users.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","qmail-users.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man5","tcp-environ.5",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat5","tcp-environ.0",auto_uido,auto_gidq,0644);
-
- c(auto_qmail,"man/man7","forgeries.7",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat7","forgeries.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man7","qmail-limits.7",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat7","qmail-limits.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man7","qmail.7",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat7","qmail.0",auto_uido,auto_gidq,0644);
-
- c(auto_qmail,"man/man1","forward.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","forward.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","condredirect.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","condredirect.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","bouncesaying.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","bouncesaying.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","except.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","except.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","maildirmake.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","maildirmake.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","maildir2mbox.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","maildir2mbox.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","maildirwatch.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","maildirwatch.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","mailsubj.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","mailsubj.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","qreceipt.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","qreceipt.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","qbiff.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","qbiff.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","preline.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","preline.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man1","tcp-env.1",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat1","tcp-env.0",auto_uido,auto_gidq,0644);
-
- c(auto_qmail,"man/man8","qmail-local.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-local.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-lspawn.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-lspawn.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-getpw.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-getpw.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-remote.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-remote.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-rspawn.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-rspawn.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-clean.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-clean.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-send.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-send.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-start.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-start.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","splogger.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","splogger.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-queue.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-queue.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-inject.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-inject.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-showctl.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-showctl.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-newmrh.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-newmrh.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-newu.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-newu.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-pw2u.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-pw2u.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-qread.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-qread.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-qstat.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-qstat.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-tcpok.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-tcpok.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-tcpto.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-tcpto.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-pop3d.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-pop3d.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-popup.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-popup.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-qmqpc.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-qmqpc.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-qmqpd.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-qmqpd.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-qmtpd.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-qmtpd.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-smtpd.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-smtpd.0",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/man8","qmail-command.8",auto_uido,auto_gidq,0644);
- c(auto_qmail,"man/cat8","qmail-command.0",auto_uido,auto_gidq,0644);
}

View File

@ -0,0 +1,5 @@
+++ conf-groups
2c2
< nofiles
---
> qnofiles

View File

@ -0,0 +1,13 @@
+++ install.c
12a13
> noc; /* hack for bin package install -- see port pkg/INSTALL */
77a79
> if (!noc) {
117a120
> }
155c158
< void main()
---
> void main(argc, argv)
156a160
> noc=--argc;

23
mail/qmail-ldap/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
What is is:
A patch to stock qmail-1.03 to get all user account information
from an LDAP database. It primary target are POP toaster with
huge numbers of users (from thousands up to millions).
Some of it's greatest features:
- Users and virtual domains in an LDAP database
- No local accounts needed
- Perfect for ISP's to build POP toasters
- Native mail server clustering
- Supports size quotas on user maildirs and mbox
- Automatic creation of home- and maildir's
- Handles replies with new qmail-reply
- Extensive logging in qmail-smtpd and qmail-pop3d
- Supports tarpitting (based on a patch by Chris Johnson)
- Supports OpenLDAP 1.2.X and Mozilla Directory SDK
- Includes Antispam-Features (based on a patch by Lindsay Haisley,
Rask Lambertsen and Lionel Widdifield)
[snip]
WWW: http://www.nrg4u.com/

View File

@ -0,0 +1,11 @@
ATTENTIONATTENTION:
Please make sure that you read /var/qmail/doc/PORT_NOTES.
It contains important information about testing and configuring
qmail, and finally replacing sendmail with qmail.
You should also add /var/qmail/man to your MANPATH (see manpath(1)
or login.conf(5)).
Do not forget to read /var/qmail/doc/QLDAPINSTALL. After all,
this is NOT our old stock qmail.

170
mail/qmail-ldap/pkg-plist Normal file
View File

@ -0,0 +1,170 @@
%%DOCDIR%%/FAQ
%%DOCDIR%%/UPGRADE
%%DOCDIR%%/SENDMAIL
%%DOCDIR%%/INSTALL
%%DOCDIR%%/INSTALL.alias
%%DOCDIR%%/INSTALL.ctl
%%DOCDIR%%/INSTALL.ids
%%DOCDIR%%/INSTALL.maildir
%%DOCDIR%%/INSTALL.mbox
%%DOCDIR%%/INSTALL.vsm
%%DOCDIR%%/TEST.deliver
%%DOCDIR%%/TEST.receive
%%DOCDIR%%/REMOVE.sendmail
%%DOCDIR%%/REMOVE.binmail
%%DOCDIR%%/PIC.local2alias
%%DOCDIR%%/PIC.local2ext
%%DOCDIR%%/PIC.local2local
%%DOCDIR%%/PIC.local2rem
%%DOCDIR%%/PIC.local2virt
%%DOCDIR%%/PIC.nullclient
%%DOCDIR%%/PIC.relaybad
%%DOCDIR%%/PIC.relaygood
%%DOCDIR%%/PIC.rem2local
%%DOCDIR%%/QLDAPINSTALL
%%DOCDIR%%/ANTISPAM
boot/home
boot/home+df
boot/proc
boot/proc+df
boot/binm1
boot/binm1+df
boot/binm2
boot/binm2+df
boot/binm3
boot/binm3+df
@group qmail
@mode 04711
@comment *** NOTE different owner
@owner qmailq
bin/qmail-queue
@owner
@mode 0700
bin/qmail-lspawn
@mode 0700
bin/qmail-start
@mode 0711
bin/qmail-getpw
@mode 0711
bin/qmail-local
@mode 0711
bin/qmail-remote
@mode 0711
bin/qmail-rspawn
@mode 0711
bin/qmail-clean
@mode 0711
bin/qmail-send
@mode 0711
bin/splogger
@mode 0700
bin/qmail-newu
@mode 0700
bin/qmail-newmrh
@mode 0711
bin/qmail-pw2u
@mode 0755
bin/qmail-inject
@mode 0755
bin/predate
@mode 0755
bin/datemail
@mode 0755
bin/mailsubj
@mode 0755
bin/qmail-showctl
@mode 0755
bin/qmail-qread
@mode 0755
bin/qmail-qstat
@mode 0755
bin/qmail-tcpto
@mode 0755
bin/qmail-tcpok
@mode 0755
bin/qmail-pop3d
@mode 0711
bin/qmail-popup
@mode 0755
bin/qmail-qmqpc
@mode 0755
bin/qmail-qmqpd
@mode 0755
bin/qmail-qmtpd
@mode 0755
bin/qmail-smtpd
@mode 0755
bin/sendmail
@mode 0755
bin/tcp-env
@mode 0755
bin/qreceipt
@mode 0755
bin/qsmhook
@mode 0755
bin/qbiff
@mode 0755
bin/forward
@mode 0755
bin/preline
@mode 0755
bin/condredirect
@mode 0755
bin/bouncesaying
@mode 0755
bin/except
@mode 0755
bin/maildirmake
@mode 0755
bin/maildir2mbox
@mode 0755
bin/maildirwatch
@mode 0755
bin/qail
@mode 0755
bin/elq
@mode 0755
bin/pinq
@mode 0755
bin/qmail-reply
@mode 0755
bin/qmail-quotawarn
@mode 0700
bin/auth_pop
@mode 0700
bin/auth_imap
@mode 0000
bin/qmail-ldaplookup
@group
@owner
@mode
@comment This port installs the following manually (ie. not through qmail-hier)
configure/install
configure/config
configure/config-fast
configure/dnsfq
configure/hostname
configure/dnsip
configure/ipmeprint
configure/dnsptr
%%DOCDIR%%/BLURB
%%DOCDIR%%/BLURB2
%%DOCDIR%%/BLURB3
%%DOCDIR%%/BLURB4
%%DOCDIR%%/INTERNALS
%%DOCDIR%%/SECURITY
%%DOCDIR%%/THOUGHTS
%%DOCDIR%%/PORT_NOTES
%%DOCDIR%%/PORT_NOTES_FreeBSD_40-RELEASE
%%DOCDIR%%/SYSDEPS
%%DOCDIR%%/mkaliasdir
boot/maildir
@dirrm %%DOCDIR%%
@dirrm configure
@dirrm boot
@dirrm bin
@unexec echo "If you are permanently removing qmail, you should also ``rm -Rf ${PKG_PREFIX}/alias ${PKG_PREFIX}/control ${PKG_PREFIX}/queue ${PKG_PREFIX}/users'' and remove the qmail users/groups." | /usr/bin/fmt