mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
New port for the sendmail MTA.
PR: 18415 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> Reviewed by: will
This commit is contained in:
parent
90d103f7cc
commit
cef9c4b2b8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33808
33 changed files with 593 additions and 0 deletions
|
@ -113,6 +113,7 @@
|
|||
SUBDIR += rlytest
|
||||
SUBDIR += ruby-net-imap
|
||||
SUBDIR += ruby-tmail
|
||||
SUBDIR += sendmail
|
||||
SUBDIR += serialmail
|
||||
SUBDIR += sigrot
|
||||
SUBDIR += smail
|
||||
|
|
86
mail/sendmail-old/Makefile
Normal file
86
mail/sendmail-old/Makefile
Normal file
|
@ -0,0 +1,86 @@
|
|||
# New ports collection makefile for: sendmail
|
||||
# Date created: 20 Apr 2000
|
||||
# Whom: dirk.meyer@dinoex.sub.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sendmail
|
||||
PORTVERSION= 8.11.1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
|
||||
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
|
||||
MAINTAINER= dirk.meyer@dinoex.sub.org
|
||||
|
||||
NO_PACKAGE= "sendmail included in base system"
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if exists(/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
|
||||
PREFIX?= ${DESTDIR}/usr
|
||||
MANPREFIX?= ${DESTDIR}/usr/share
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
|
||||
SENDMAIL= ${PREFIX}/sbin/sendmail
|
||||
|
||||
MAN1= mailq.1 newaliases.1 vacation.1
|
||||
MAN5= aliases.5
|
||||
MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
|
||||
mail.local.8 rmail.8
|
||||
|
||||
pre-install:
|
||||
${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && find cf -type f | \
|
||||
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
|
||||
cd ${WRKSRC} && find -d cf -type d | \
|
||||
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
|
||||
.endif
|
||||
|
||||
# We want mail.local and rmail for our system.
|
||||
# the build install catmans only, we have to fix this.
|
||||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.for i in ${MAN8}
|
||||
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8
|
||||
.endfor
|
||||
.for i in ${MAN5}
|
||||
@${RM} -f ${MANPREFIX}/man/cat5/${i} ${MANPREFIX}/man/cat5/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man5
|
||||
.endfor
|
||||
.for i in ${MAN1}
|
||||
@${RM} -f ${MANPREFIX}/man/cat1/${i} ${MANPREFIX}/man/cat1/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/sendmail
|
||||
@cd ${WRKSRC}; ${TAR} cf - cf |\
|
||||
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGDIR}/pkg-message
|
||||
|
||||
mailer.conf:
|
||||
${SED} \
|
||||
-e "s=^sendmail[ ]*/.*$$=sendmail ${SENDMAIL}=" \
|
||||
-e "s=^send-mail[ ]*/.*$$=send-mail ${SENDMAIL}=" \
|
||||
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
|
||||
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
|
||||
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
|
||||
${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sendmail-old/distinfo
Normal file
1
mail/sendmail-old/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (sendmail.8.11.1.tar.gz) = 9118a555141493fb574a588d50f57215
|
7
mail/sendmail-old/files/site.config.m4
Normal file
7
mail/sendmail-old/files/site.config.m4
Normal file
|
@ -0,0 +1,7 @@
|
|||
define(`confEBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confMANROOT',`%%PREFIX%%/man/cat')
|
||||
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
|
||||
define(`confMBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confSBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confUBINDIR',`%%PREFIX%%/bin')
|
||||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail-old/files/site.config.m4.pre4
Normal file
1
mail/sendmail-old/files/site.config.m4.pre4
Normal file
|
@ -0,0 +1 @@
|
|||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail-old/pkg-comment
Normal file
1
mail/sendmail-old/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Reliable, highly configurable mail transfer agent with associated utilities
|
11
mail/sendmail-old/pkg-descr
Normal file
11
mail/sendmail-old/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sendmail implements a general purpose internetwork mail routing facility
|
||||
under the UNIX operating system. It is not tied to any one transport
|
||||
protocol - its function may be likened to a crossbar switch, relaying
|
||||
messages from one domain into another. In the process, it can do a limited
|
||||
amount of message header editing to put the message into a format that is
|
||||
appropriate for the receiving domain. All of this is done under the
|
||||
control of a configuration file.
|
||||
|
||||
Sendmail is a trademark of Sendmail, Inc.
|
||||
|
||||
WWW: http://www.sendmail.org/
|
29
mail/sendmail-old/pkg-message
Normal file
29
mail/sendmail-old/pkg-message
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
---------------------------------------------------
|
||||
|
||||
If you update your configuration from 8.9.x add the following to your
|
||||
'*.mc' file(s):
|
||||
|
||||
MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl
|
||||
|
||||
because mail.local is no longer installed set-user-id root. This is not
|
||||
needed if you are using FEATURE(`local_lmtp').
|
||||
|
||||
To activate sendmail as your default mailer, call the target 'mailer.conf':
|
||||
|
||||
$ make mailer.conf
|
||||
|
||||
Your '/etc/mail/mailer.conf' should look like this:
|
||||
|
||||
#
|
||||
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
|
||||
#
|
||||
sendmail %%PREFIX%%/sbin/sendmail
|
||||
send-mail %%PREFIX%%/sbin/sendmail
|
||||
mailq %%PREFIX%%/sbin/sendmail
|
||||
newaliases %%PREFIX%%/sbin/sendmail
|
||||
|
||||
You may also need to update /etc/rc.conf.
|
||||
|
||||
---------------------------------------------------
|
||||
|
12
mail/sendmail-old/pkg-plist
Normal file
12
mail/sendmail-old/pkg-plist
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin/hoststat
|
||||
bin/mailq
|
||||
bin/newaliases
|
||||
bin/purgestat
|
||||
bin/rmail
|
||||
bin/vacation
|
||||
libexec/mail.local
|
||||
libexec/smrsh
|
||||
sbin/mailstats
|
||||
sbin/makemap
|
||||
sbin/praliases
|
||||
sbin/sendmail
|
86
mail/sendmail/Makefile
Normal file
86
mail/sendmail/Makefile
Normal file
|
@ -0,0 +1,86 @@
|
|||
# New ports collection makefile for: sendmail
|
||||
# Date created: 20 Apr 2000
|
||||
# Whom: dirk.meyer@dinoex.sub.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sendmail
|
||||
PORTVERSION= 8.11.1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
|
||||
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
|
||||
MAINTAINER= dirk.meyer@dinoex.sub.org
|
||||
|
||||
NO_PACKAGE= "sendmail included in base system"
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if exists(/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
|
||||
PREFIX?= ${DESTDIR}/usr
|
||||
MANPREFIX?= ${DESTDIR}/usr/share
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
|
||||
SENDMAIL= ${PREFIX}/sbin/sendmail
|
||||
|
||||
MAN1= mailq.1 newaliases.1 vacation.1
|
||||
MAN5= aliases.5
|
||||
MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
|
||||
mail.local.8 rmail.8
|
||||
|
||||
pre-install:
|
||||
${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && find cf -type f | \
|
||||
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
|
||||
cd ${WRKSRC} && find -d cf -type d | \
|
||||
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
|
||||
.endif
|
||||
|
||||
# We want mail.local and rmail for our system.
|
||||
# the build install catmans only, we have to fix this.
|
||||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.for i in ${MAN8}
|
||||
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8
|
||||
.endfor
|
||||
.for i in ${MAN5}
|
||||
@${RM} -f ${MANPREFIX}/man/cat5/${i} ${MANPREFIX}/man/cat5/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man5
|
||||
.endfor
|
||||
.for i in ${MAN1}
|
||||
@${RM} -f ${MANPREFIX}/man/cat1/${i} ${MANPREFIX}/man/cat1/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/sendmail
|
||||
@cd ${WRKSRC}; ${TAR} cf - cf |\
|
||||
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGDIR}/pkg-message
|
||||
|
||||
mailer.conf:
|
||||
${SED} \
|
||||
-e "s=^sendmail[ ]*/.*$$=sendmail ${SENDMAIL}=" \
|
||||
-e "s=^send-mail[ ]*/.*$$=send-mail ${SENDMAIL}=" \
|
||||
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
|
||||
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
|
||||
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
|
||||
${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sendmail/distinfo
Normal file
1
mail/sendmail/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (sendmail.8.11.1.tar.gz) = 9118a555141493fb574a588d50f57215
|
7
mail/sendmail/files/site.config.m4
Normal file
7
mail/sendmail/files/site.config.m4
Normal file
|
@ -0,0 +1,7 @@
|
|||
define(`confEBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confMANROOT',`%%PREFIX%%/man/cat')
|
||||
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
|
||||
define(`confMBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confSBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confUBINDIR',`%%PREFIX%%/bin')
|
||||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail/files/site.config.m4.pre4
Normal file
1
mail/sendmail/files/site.config.m4.pre4
Normal file
|
@ -0,0 +1 @@
|
|||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail/pkg-comment
Normal file
1
mail/sendmail/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Reliable, highly configurable mail transfer agent with associated utilities
|
11
mail/sendmail/pkg-descr
Normal file
11
mail/sendmail/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sendmail implements a general purpose internetwork mail routing facility
|
||||
under the UNIX operating system. It is not tied to any one transport
|
||||
protocol - its function may be likened to a crossbar switch, relaying
|
||||
messages from one domain into another. In the process, it can do a limited
|
||||
amount of message header editing to put the message into a format that is
|
||||
appropriate for the receiving domain. All of this is done under the
|
||||
control of a configuration file.
|
||||
|
||||
Sendmail is a trademark of Sendmail, Inc.
|
||||
|
||||
WWW: http://www.sendmail.org/
|
29
mail/sendmail/pkg-message
Normal file
29
mail/sendmail/pkg-message
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
---------------------------------------------------
|
||||
|
||||
If you update your configuration from 8.9.x add the following to your
|
||||
'*.mc' file(s):
|
||||
|
||||
MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl
|
||||
|
||||
because mail.local is no longer installed set-user-id root. This is not
|
||||
needed if you are using FEATURE(`local_lmtp').
|
||||
|
||||
To activate sendmail as your default mailer, call the target 'mailer.conf':
|
||||
|
||||
$ make mailer.conf
|
||||
|
||||
Your '/etc/mail/mailer.conf' should look like this:
|
||||
|
||||
#
|
||||
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
|
||||
#
|
||||
sendmail %%PREFIX%%/sbin/sendmail
|
||||
send-mail %%PREFIX%%/sbin/sendmail
|
||||
mailq %%PREFIX%%/sbin/sendmail
|
||||
newaliases %%PREFIX%%/sbin/sendmail
|
||||
|
||||
You may also need to update /etc/rc.conf.
|
||||
|
||||
---------------------------------------------------
|
||||
|
12
mail/sendmail/pkg-plist
Normal file
12
mail/sendmail/pkg-plist
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin/hoststat
|
||||
bin/mailq
|
||||
bin/newaliases
|
||||
bin/purgestat
|
||||
bin/rmail
|
||||
bin/vacation
|
||||
libexec/mail.local
|
||||
libexec/smrsh
|
||||
sbin/mailstats
|
||||
sbin/makemap
|
||||
sbin/praliases
|
||||
sbin/sendmail
|
86
mail/sendmail811/Makefile
Normal file
86
mail/sendmail811/Makefile
Normal file
|
@ -0,0 +1,86 @@
|
|||
# New ports collection makefile for: sendmail
|
||||
# Date created: 20 Apr 2000
|
||||
# Whom: dirk.meyer@dinoex.sub.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sendmail
|
||||
PORTVERSION= 8.11.1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
|
||||
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
|
||||
MAINTAINER= dirk.meyer@dinoex.sub.org
|
||||
|
||||
NO_PACKAGE= "sendmail included in base system"
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if exists(/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
|
||||
PREFIX?= ${DESTDIR}/usr
|
||||
MANPREFIX?= ${DESTDIR}/usr/share
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
|
||||
SENDMAIL= ${PREFIX}/sbin/sendmail
|
||||
|
||||
MAN1= mailq.1 newaliases.1 vacation.1
|
||||
MAN5= aliases.5
|
||||
MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
|
||||
mail.local.8 rmail.8
|
||||
|
||||
pre-install:
|
||||
${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && find cf -type f | \
|
||||
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
|
||||
cd ${WRKSRC} && find -d cf -type d | \
|
||||
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
|
||||
.endif
|
||||
|
||||
# We want mail.local and rmail for our system.
|
||||
# the build install catmans only, we have to fix this.
|
||||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.for i in ${MAN8}
|
||||
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8
|
||||
.endfor
|
||||
.for i in ${MAN5}
|
||||
@${RM} -f ${MANPREFIX}/man/cat5/${i} ${MANPREFIX}/man/cat5/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man5
|
||||
.endfor
|
||||
.for i in ${MAN1}
|
||||
@${RM} -f ${MANPREFIX}/man/cat1/${i} ${MANPREFIX}/man/cat1/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/sendmail
|
||||
@cd ${WRKSRC}; ${TAR} cf - cf |\
|
||||
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGDIR}/pkg-message
|
||||
|
||||
mailer.conf:
|
||||
${SED} \
|
||||
-e "s=^sendmail[ ]*/.*$$=sendmail ${SENDMAIL}=" \
|
||||
-e "s=^send-mail[ ]*/.*$$=send-mail ${SENDMAIL}=" \
|
||||
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
|
||||
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
|
||||
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
|
||||
${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sendmail811/distinfo
Normal file
1
mail/sendmail811/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (sendmail.8.11.1.tar.gz) = 9118a555141493fb574a588d50f57215
|
7
mail/sendmail811/files/site.config.m4
Normal file
7
mail/sendmail811/files/site.config.m4
Normal file
|
@ -0,0 +1,7 @@
|
|||
define(`confEBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confMANROOT',`%%PREFIX%%/man/cat')
|
||||
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
|
||||
define(`confMBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confSBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confUBINDIR',`%%PREFIX%%/bin')
|
||||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail811/files/site.config.m4.pre4
Normal file
1
mail/sendmail811/files/site.config.m4.pre4
Normal file
|
@ -0,0 +1 @@
|
|||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail811/pkg-comment
Normal file
1
mail/sendmail811/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Reliable, highly configurable mail transfer agent with associated utilities
|
11
mail/sendmail811/pkg-descr
Normal file
11
mail/sendmail811/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sendmail implements a general purpose internetwork mail routing facility
|
||||
under the UNIX operating system. It is not tied to any one transport
|
||||
protocol - its function may be likened to a crossbar switch, relaying
|
||||
messages from one domain into another. In the process, it can do a limited
|
||||
amount of message header editing to put the message into a format that is
|
||||
appropriate for the receiving domain. All of this is done under the
|
||||
control of a configuration file.
|
||||
|
||||
Sendmail is a trademark of Sendmail, Inc.
|
||||
|
||||
WWW: http://www.sendmail.org/
|
29
mail/sendmail811/pkg-message
Normal file
29
mail/sendmail811/pkg-message
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
---------------------------------------------------
|
||||
|
||||
If you update your configuration from 8.9.x add the following to your
|
||||
'*.mc' file(s):
|
||||
|
||||
MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl
|
||||
|
||||
because mail.local is no longer installed set-user-id root. This is not
|
||||
needed if you are using FEATURE(`local_lmtp').
|
||||
|
||||
To activate sendmail as your default mailer, call the target 'mailer.conf':
|
||||
|
||||
$ make mailer.conf
|
||||
|
||||
Your '/etc/mail/mailer.conf' should look like this:
|
||||
|
||||
#
|
||||
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
|
||||
#
|
||||
sendmail %%PREFIX%%/sbin/sendmail
|
||||
send-mail %%PREFIX%%/sbin/sendmail
|
||||
mailq %%PREFIX%%/sbin/sendmail
|
||||
newaliases %%PREFIX%%/sbin/sendmail
|
||||
|
||||
You may also need to update /etc/rc.conf.
|
||||
|
||||
---------------------------------------------------
|
||||
|
12
mail/sendmail811/pkg-plist
Normal file
12
mail/sendmail811/pkg-plist
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin/hoststat
|
||||
bin/mailq
|
||||
bin/newaliases
|
||||
bin/purgestat
|
||||
bin/rmail
|
||||
bin/vacation
|
||||
libexec/mail.local
|
||||
libexec/smrsh
|
||||
sbin/mailstats
|
||||
sbin/makemap
|
||||
sbin/praliases
|
||||
sbin/sendmail
|
86
mail/sendmail812/Makefile
Normal file
86
mail/sendmail812/Makefile
Normal file
|
@ -0,0 +1,86 @@
|
|||
# New ports collection makefile for: sendmail
|
||||
# Date created: 20 Apr 2000
|
||||
# Whom: dirk.meyer@dinoex.sub.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sendmail
|
||||
PORTVERSION= 8.11.1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/
|
||||
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
||||
|
||||
MAINTAINER= dirk.meyer@dinoex.sub.org
|
||||
|
||||
NO_PACKAGE= "sendmail included in base system"
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
PLIST= ${WRKDIR}/.PLIST.more
|
||||
|
||||
.if exists(/etc/mail/mailer.conf)
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
.else
|
||||
pre-configure:
|
||||
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
|
||||
${FILESDIR}/site.config.m4.pre4 >${WRKSRC}/devtools/Site/site.config.m4
|
||||
|
||||
PREFIX?= ${DESTDIR}/usr
|
||||
MANPREFIX?= ${DESTDIR}/usr/share
|
||||
.endif
|
||||
|
||||
PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
|
||||
SENDMAIL= ${PREFIX}/sbin/sendmail
|
||||
|
||||
MAN1= mailq.1 newaliases.1 vacation.1
|
||||
MAN5= aliases.5
|
||||
MAN8= sendmail.8 mailstats.8 makemap.8 praliases.8 smrsh.8 \
|
||||
mail.local.8 rmail.8
|
||||
|
||||
pre-install:
|
||||
${CAT} ${PKGDIR}/pkg-plist >${PLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && find cf -type f | \
|
||||
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
|
||||
cd ${WRKSRC} && find -d cf -type d | \
|
||||
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
|
||||
.endif
|
||||
|
||||
# We want mail.local and rmail for our system.
|
||||
# the build install catmans only, we have to fix this.
|
||||
post-install:
|
||||
( cd ${WRKSRC}/mail.local && ${MAKE} force-install )
|
||||
( cd ${WRKSRC}/rmail && ${MAKE} force-install )
|
||||
.for i in ${MAN8}
|
||||
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8
|
||||
.endfor
|
||||
.for i in ${MAN5}
|
||||
@${RM} -f ${MANPREFIX}/man/cat5/${i} ${MANPREFIX}/man/cat5/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man5
|
||||
.endfor
|
||||
.for i in ${MAN1}
|
||||
@${RM} -f ${MANPREFIX}/man/cat1/${i} ${MANPREFIX}/man/cat1/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/sendmail
|
||||
@cd ${WRKSRC}; ${TAR} cf - cf |\
|
||||
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
|
||||
.endif
|
||||
.if exists(${DESTDIR}/etc/mail/mailer.conf)
|
||||
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGDIR}/pkg-message
|
||||
|
||||
mailer.conf:
|
||||
${SED} \
|
||||
-e "s=^sendmail[ ]*/.*$$=sendmail ${SENDMAIL}=" \
|
||||
-e "s=^send-mail[ ]*/.*$$=send-mail ${SENDMAIL}=" \
|
||||
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
|
||||
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
|
||||
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
|
||||
${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sendmail812/distinfo
Normal file
1
mail/sendmail812/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (sendmail.8.11.1.tar.gz) = 9118a555141493fb574a588d50f57215
|
7
mail/sendmail812/files/site.config.m4
Normal file
7
mail/sendmail812/files/site.config.m4
Normal file
|
@ -0,0 +1,7 @@
|
|||
define(`confEBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confMANROOT',`%%PREFIX%%/man/cat')
|
||||
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
|
||||
define(`confMBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confSBINDIR',`%%PREFIX%%/sbin')
|
||||
define(`confUBINDIR',`%%PREFIX%%/bin')
|
||||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail812/files/site.config.m4.pre4
Normal file
1
mail/sendmail812/files/site.config.m4.pre4
Normal file
|
@ -0,0 +1 @@
|
|||
define(`confCCOPTS',`-DCMDDIR="\"%%PREFIX%%/libexec/sm.bin\"" -DPATH="\"/bin:/usr/bin\""')
|
1
mail/sendmail812/pkg-comment
Normal file
1
mail/sendmail812/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Reliable, highly configurable mail transfer agent with associated utilities
|
11
mail/sendmail812/pkg-descr
Normal file
11
mail/sendmail812/pkg-descr
Normal file
|
@ -0,0 +1,11 @@
|
|||
Sendmail implements a general purpose internetwork mail routing facility
|
||||
under the UNIX operating system. It is not tied to any one transport
|
||||
protocol - its function may be likened to a crossbar switch, relaying
|
||||
messages from one domain into another. In the process, it can do a limited
|
||||
amount of message header editing to put the message into a format that is
|
||||
appropriate for the receiving domain. All of this is done under the
|
||||
control of a configuration file.
|
||||
|
||||
Sendmail is a trademark of Sendmail, Inc.
|
||||
|
||||
WWW: http://www.sendmail.org/
|
29
mail/sendmail812/pkg-message
Normal file
29
mail/sendmail812/pkg-message
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
---------------------------------------------------
|
||||
|
||||
If you update your configuration from 8.9.x add the following to your
|
||||
'*.mc' file(s):
|
||||
|
||||
MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl
|
||||
|
||||
because mail.local is no longer installed set-user-id root. This is not
|
||||
needed if you are using FEATURE(`local_lmtp').
|
||||
|
||||
To activate sendmail as your default mailer, call the target 'mailer.conf':
|
||||
|
||||
$ make mailer.conf
|
||||
|
||||
Your '/etc/mail/mailer.conf' should look like this:
|
||||
|
||||
#
|
||||
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
|
||||
#
|
||||
sendmail %%PREFIX%%/sbin/sendmail
|
||||
send-mail %%PREFIX%%/sbin/sendmail
|
||||
mailq %%PREFIX%%/sbin/sendmail
|
||||
newaliases %%PREFIX%%/sbin/sendmail
|
||||
|
||||
You may also need to update /etc/rc.conf.
|
||||
|
||||
---------------------------------------------------
|
||||
|
12
mail/sendmail812/pkg-plist
Normal file
12
mail/sendmail812/pkg-plist
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin/hoststat
|
||||
bin/mailq
|
||||
bin/newaliases
|
||||
bin/purgestat
|
||||
bin/rmail
|
||||
bin/vacation
|
||||
libexec/mail.local
|
||||
libexec/smrsh
|
||||
sbin/mailstats
|
||||
sbin/makemap
|
||||
sbin/praliases
|
||||
sbin/sendmail
|
Loading…
Add table
Reference in a new issue