From d0fe1d882c2648c5ec9a05dd19582976a5d67200 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 13 Feb 2010 19:53:56 +0000 Subject: - Use $SUB_FILES to adjust PREFIX in pkg-message instead of hardcoding /usr/local - Use bsd.port.options.mk - Remove unneeded variables DISTNAME,DISTFILES & WRKSRC - Declare LIB_DEPENDS earlier PR: 142733 Submitted by: Sevan Janiyan Approved by: maintainer timeout --- mail/imap-uw/Makefile | 23 ++++++++++++----------- mail/imap-uw/files/pkg-message.in | 28 ++++++++++++++++++++++++++++ mail/imap-uw/pkg-message | 28 ---------------------------- 3 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 mail/imap-uw/files/pkg-message.in delete mode 100644 mail/imap-uw/pkg-message (limited to 'mail/imap-uw') diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index 6853ab0a9330..f36a90ed0f43 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -15,12 +15,20 @@ MASTER_SITES= ftp://ftp.cac.washington.edu/imap/%SUBDIR%/ \ ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/%SUBDIR%/ MASTER_SITE_SUBDIR= . old PKGNAMESUFFIX= -uw -DISTNAME= imap-${PORTVERSION} -DISTFILES= ${DISTNAME}${DISTVERSIONSUFFIX}${EXTRACT_SUFX} MAINTAINER= anders@FreeBSD.org COMMENT= University of Washington IMAP4rev1/POP2/POP3 mail servers +LIB_DEPENDS= c-client4.9:${PORTSDIR}/mail/cclient + +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} +SUB_FILES= pkg-message + +MAN1= dmail.1 mailutil.1 tmail.1 +MAN8= ipopd.8 imapd.8 + +ALL_TARGET= bsf + # This port must have the same SSL settings as mail/cclient, which it depends on # To make MBX format the default mailbox format, change the settings of cclient @@ -29,21 +37,13 @@ OPTIONS= SSL "Compile with SSL support" on \ DRAC "Dynamically open MTA for relaying" off \ NETSCAPE_BRAIN_DAMAGE "See Makefile for documentation" off -.include +.include -LIB_DEPENDS= c-client4.9:${PORTSDIR}/mail/cclient .if defined(WITH_DRAC) BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac MAKE_ARGS+= WITH_DRAC=yes .endif -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} -WRKSRC= ${WRKDIR}/${DISTNAME} - -MAN1= dmail.1 mailutil.1 tmail.1 -MAN8= ipopd.8 imapd.8 - -ALL_TARGET= bsf .if defined(WITHOUT_SSL) MAKE_ARGS+= SSLTYPE=none SSLDIR=${OPENSSLBASE} .else @@ -61,6 +61,7 @@ MAKE_ARGS+= WITH_NETSCAPE_BRAIN_DAMAGE=yes .endif # See src/imapd/Makefile for more information about these three options. +.include pre-build: @${SH} ${PKGREQ}.rev ${LOCALBASE}/include/c-client/portrevision.h ${PORTVERSION} .if !defined(WITHOUT_SSL) diff --git a/mail/imap-uw/files/pkg-message.in b/mail/imap-uw/files/pkg-message.in new file mode 100644 index 000000000000..ca41cd71f947 --- /dev/null +++ b/mail/imap-uw/files/pkg-message.in @@ -0,0 +1,28 @@ +The ipop2d, ipop3d, and imapd daemons should be invoked by your +/etc/inetd.conf file with lines such as: + +pop2 stream tcp nowait root %%PREFIX%%/libexec/ipop2d ipop2d +pop3 stream tcp nowait root %%PREFIX%%/libexec/ipop3d ipop3d +imap4 stream tcp nowait root %%PREFIX%%/libexec/imapd imapd + +If PAM authentication support has been compiled in you will need to add +something like the following lines to /etc/pam.conf (PAM authentication is +default): + +imap auth required pam_unix.so +imap account required pam_unix.so +imap session required pam_unix.so +pop3 auth required pam_unix.so +pop3 account required pam_unix.so +pop3 session required pam_unix.so + +The pam_unix module does not have session support, so we do not use it for +session management. Be sure to read up on pam.conf(5). + +===> NB: IMAP-UW now rejects non-encrypted logins by default. To change this +===> behaviour, recompile and reinstall cclient and imap-uw ports with one of +===> the following make variables defined: + +WITHOUT_SSL - build without SSL/encryption support. +WITH_SSL_AND_PLAINTEXT - build with SSL/encryption support, but allow +non-encrypted logins. diff --git a/mail/imap-uw/pkg-message b/mail/imap-uw/pkg-message deleted file mode 100644 index cfda7e555fc0..000000000000 --- a/mail/imap-uw/pkg-message +++ /dev/null @@ -1,28 +0,0 @@ -The ipop2d, ipop3d, and imapd daemons should be invoked by your -/etc/inetd.conf file with lines such as: - -pop2 stream tcp nowait root /usr/local/libexec/ipop2d ipop2d -pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d -imap4 stream tcp nowait root /usr/local/libexec/imapd imapd - -If PAM authentication support has been compiled in you will need to add -something like the following lines to /etc/pam.conf (PAM authentication is -default): - -imap auth required pam_unix.so -imap account required pam_unix.so -imap session required pam_unix.so -pop3 auth required pam_unix.so -pop3 account required pam_unix.so -pop3 session required pam_unix.so - -The pam_unix module does not have session support, so we do not use it for -session management. Be sure to read up on pam.conf(5). - -===> NB: IMAP-UW now rejects non-encrypted logins by default. To change this -===> behaviour, recompile and reinstall cclient and imap-uw ports with one of -===> the following make variables defined: - -WITHOUT_SSL - build without SSL/encryption support. -WITH_SSL_AND_PLAINTEXT - build with SSL/encryption support, but allow -non-encrypted logins. -- cgit v1.2.3