ports/50343: [NEW PORT] mail/bincimap: Light-weight IMAP4rev1-compliant server

Sergei Kolobov sergei at kolobov.com
Thu Mar 27 13:00:34 UTC 2003


>Number:         50343
>Category:       ports
>Synopsis:       [NEW PORT] mail/bincimap: Light-weight IMAP4rev1-compliant server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 27 05:00:29 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD elf.chetwood.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Mar 16 04:38:45 MSK 2003
>Description:
Binc IMAP is a GPLed lightweight alternative (Binc Is Not Courier-IMAP) 
to existing IMAP servers.  It's easier to install, easier to maintain, 
and it's easy to integrate into existing (perhaps legacy) authentication 
environments.

Binc IMAP is small and simple. The total number of lines of source code 
is much smaller in Binc than in the other servers. Version 1.0.24-1 
of Binc IMAP has about 18000 lines of code. There are only 17000 lines 
of hand written code, including comments. Few lines in itself does not 
imply that the code is better, but it's certainly much easier to maintain.

Author:	Andreas Aardal Hanssen <bincimap at andreas.hanssen.name>
WWW:	http://www.bincimap.org/


NOTE: this port was created and tested under -CURRENT.
It does not compile under -STABLE - it looks like it is related to GCC 
version differences between -STABLE and -CURRENT. I notified the developers 
and awaiting for patches.

Binc IMAP is under active development.

PS. This port is good candidate for USE_GNUGETOPT option (see ports/50323)
>How-To-Repeat:
>Fix:

--- bincimap.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bincimap
#	bincimap/Makefile
#	bincimap/distinfo
#	bincimap/pkg-descr
#	bincimap/pkg-plist
#
echo c - bincimap
mkdir -p bincimap > /dev/null 2>&1
echo x - bincimap/Makefile
sed 's/^X//' >bincimap/Makefile << 'END-of-bincimap/Makefile'
X# New ports collection makefile for:	bincimap
X# Date created:		27 Mar 2003
X# Whom:			Sergei Kolobov <sergei at kolobov.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bincimap
XPORTVERSION=	1.1.1
XCATEGORIES=	mail
XMASTER_SITES=	http://www.bincimap.org/dl/tarballs/
X
XMAINTAINER=	sergei at kolobov.com
XCOMMENT=	Light-weight IMAP4rev1-compliant server
X
XUSE_BZIP2=	yes
XUSE_OPENSSL=	yes
XUSE_REINPLACE=	yes
XGNU_CONFIGURE=	yes
X
XCONFIG_DIR?=	${PREFIX}/etc/${PORTNAME}
XPLIST_SUB+=	CONFIG_DIR="${CONFIG_DIR:S,^${PREFIX}/,,}"
X
XCONFIGURE_ARGS+=	--sysconfdir=${CONFIG_DIR}
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XMAN1=		bincimap-up.1 bincimapd.1
XMAN5=		bincimap.conf.5
XDOCS=		AUTHORS ChangeLog README doc/bincimap*
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500041
XLIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib -lgnugetopt
XCONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
X.endif
X
Xdo-patch:
X	${REINPLACE_CMD} -e 's!<wait.h>!<sys/wait.h>!' ${WRKSRC}/src/io/io.cc
X
Xpost-install:
X	@${MKDIR} ${CONFIG_DIR}
X	@cd ${WRKSRC}/conf && \
X	    ${INSTALL_DATA} bincimap.conf ${CONFIG_DIR} && \
X	    ${INSTALL_DATA} bincimap.conf ${CONFIG_DIR}/bincimap.conf.sample
X.for dir in xinetd supervise/imap/log supervise/imaps/log
X	@${MKDIR} ${EXAMPLESDIR}/${dir}
X.endfor
X	@cd ${WRKSRC}/conf && \
X	    ${INSTALL_DATA} xinetd-bincimap ${EXAMPLESDIR}/xinetd/imap && \
X	    ${INSTALL_DATA} xinetd-bincimaps ${EXAMPLESDIR}/xinetd/imaps
X	@cd ${WRKSRC}/service && \
X	    ${INSTALL_DATA} run ${EXAMPLESDIR}/supervise/imap && \
X	    ${INSTALL_DATA} log/run ${EXAMPLESDIR}/supervise/imap/log && \
X	    ${INSTALL_DATA} run-ssl ${EXAMPLESDIR}/supervise/imaps/run && \
X	    ${INSTALL_DATA} log/run ${EXAMPLESDIR}/supervise/imaps/log
X	@cd ${WRKSRC}/man && \
X	    ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1 && \
X	    ${INSTALL_MAN} ${MAN5} ${MANPREFIX}/man/man5
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-bincimap/Makefile
echo x - bincimap/distinfo
sed 's/^X//' >bincimap/distinfo << 'END-of-bincimap/distinfo'
XMD5 (bincimap-1.1.1.tar.bz2) = ad35eb3ea0b9577444feec2f75451585
END-of-bincimap/distinfo
echo x - bincimap/pkg-descr
sed 's/^X//' >bincimap/pkg-descr << 'END-of-bincimap/pkg-descr'
XBinc IMAP is a light weight alternative to existing IMAP servers. 
XIt's easier to install, easier to maintain, and it's easy to integrate 
Xinto existing (perhaps legacy) authentication environments.
X
XBinc IMAP is small and simple. The total number of lines of source code 
Xis much smaller in Binc than in the other servers. Version 1.0.24-1 
Xof Binc IMAP has about 18000 lines of code. There are only 17000 lines 
Xof hand written code, including comments. Few lines in itself does not 
Ximply that the code is better, but it's certainly much easier to maintain.
X
XAuthor:	Andreas Aardal Hanssen <bincimap at andreas.hanssen.name>
XWWW:	http://www.bincimap.org/
END-of-bincimap/pkg-descr
echo x - bincimap/pkg-plist
sed 's/^X//' >bincimap/pkg-plist << 'END-of-bincimap/pkg-plist'
Xbin/bincimapd
Xbin/bincimap-up
X%%CONFIG_DIR%%/bincimap.conf.sample
X at unexec rmdir %%CONFIG_DIR%% 2>/dev/null || true
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/bincimap-faq.html
X%%PORTDOCS%%%%DOCSDIR%%/bincimap-goals.html
X%%PORTDOCS%%%%DOCSDIR%%/bincimap-imapdir.html
X%%PORTDOCS%%%%DOCSDIR%%/bincimap-tech.html
X%%PORTDOCS%%%%DOCSDIR%%/bincimap.css
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%EXAMPLESDIR%%/xinetd/imap
X%%EXAMPLESDIR%%/xinetd/imaps
X at dirrm %%EXAMPLESDIR%%/xinetd
X%%EXAMPLESDIR%%/supervise/imap/run
X%%EXAMPLESDIR%%/supervise/imap/log/run
X at dirrm %%EXAMPLESDIR%%/supervise/imap/log
X at dirrm %%EXAMPLESDIR%%/supervise/imap
X%%EXAMPLESDIR%%/supervise/imaps/run
X%%EXAMPLESDIR%%/supervise/imaps/log/run
X at dirrm %%EXAMPLESDIR%%/supervise/imaps/log
X at dirrm %%EXAMPLESDIR%%/supervise/imaps
X at dirrm %%EXAMPLESDIR%%/supervise
X at dirrm %%EXAMPLESDIR%%
END-of-bincimap/pkg-plist
exit
--- bincimap.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list