- Update to 1.2.10

- Remove dependencies: bincimap can be used in multitude of configurations,
  supervise/tcpserver and xinetd are two of them, but not the only ones.
  For example, it can be used with inetd(8) in the base system, too. [1]
- Install configuration samples into EXAMPLESDIR

Requested by:	Paul-Andrew Joseph Miseiko <esoteric@teardrop.ca> [1]
This commit is contained in:
Sergei Kolobov 2004-10-13 16:22:05 +00:00
parent f4de7530f8
commit d79bc92f5a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119263
3 changed files with 16 additions and 53 deletions

View file

@ -7,12 +7,11 @@
# The following compile-time options are available: # The following compile-time options are available:
# #
# WITH_XINETD Use xinetd instead of the default daemontools/ucspi-tcp
# WITHOUT_OPENSSL Disable OpenSSL support (enabled by default) # WITHOUT_OPENSSL Disable OpenSSL support (enabled by default)
# #
PORTNAME= bincimap PORTNAME= bincimap
PORTVERSION= 1.2.9 PORTVERSION= 1.2.10
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= http://www.bincimap.org/%SUBDIR%/ \ MASTER_SITES= http://www.bincimap.org/%SUBDIR%/ \
http://www.bincimap.andreas.hanssen.name/%SUBDIR%/ \ http://www.bincimap.andreas.hanssen.name/%SUBDIR%/ \
@ -20,67 +19,37 @@ MASTER_SITES= http://www.bincimap.org/%SUBDIR%/ \
MASTER_SITE_SUBDIR= dl/tarballs/1.2 MASTER_SITE_SUBDIR= dl/tarballs/1.2
DISTNAME= ${PORTNAME}-${PORTVERSION}final DISTNAME= ${PORTNAME}-${PORTVERSION}final
PATCH_SITES= ${MASTER_SITES:S!%SUBDIR%!${MASTER_SITE_SUBDIR}!}
#PATCHFILES= bincimap-1.2.1-patch000-mimeparser
MAINTAINER= sergei@FreeBSD.org MAINTAINER= sergei@FreeBSD.org
COMMENT= Light-weight IMAP server for Maildir COMMENT= Light-weight IMAP server for Maildir
.if defined(WITH_XINETD)
RUN_DEPENDS= xinetd:${PORTSDIR}/security/xinetd
PLIST_SUB+= XINETD="" DJB="@comment "
.else
RUN_DEPENDS= supervise:${PORTSDIR}/sysutils/daemontools \
tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
PLIST_SUB+= XINETD="@comment " DJB=""
.endif
USE_BZIP2= yes USE_BZIP2= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFDIR= ${PREFIX}/etc/${PORTNAME}
CONFIGURE_ARGS+= --sysconfdir=${CONFDIR}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR}
CONFDIR= ${PREFIX}/etc/${PORTNAME}
.if defined(WITHOUT_OPENSSL) .if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --without-ssl CONFIGURE_ARGS+= --without-ssl
PLIST_SUB+= SSL="@comment "
.else .else
CONFIGURE_ARGS+= --with-ssl CONFIGURE_ARGS+= --with-ssl
USE_OPENSSL= yes USE_OPENSSL= yes
PLIST_SUB+= SSL=""
.endif .endif
MAN1= bincimap-up.1 bincimapd.1 MAN1= bincimap-up.1 bincimapd.1
MAN5= bincimap.conf.5 MAN5= bincimap.conf.5
DOCS= AUTHORS ChangeLog README doc/bincimap* \ DOCS= AUTHORS ChangeLog README doc/bincimap* \
doc/manual/bincimap-manual.ps doc/manual/bincimap-manual.ps
EXAMPLES= conf/checkpassword.pl conf/toimapdir conf/tomaildir++ \ EXAMPLES= conf/bincimap.conf conf/checkpassword.pl conf/toimapdir \
contrib/README contrib/authenticators/bincimap-auth-teapop.sh conf/tomaildir++ conf/xinetd-bincimap conf/xinetd-bincimaps
CONTRIB= contrib/README contrib/authenticators/bincimap-auth-teapop.sh
post-install: post-install:
@${MKDIR} ${CONFDIR} @${MKDIR} ${CONFDIR}
${INSTALL_DATA} ${WRKSRC}/conf/bincimap.conf \ ${INSTALL_DATA} ${WRKSRC}/conf/bincimap.conf \
${CONFDIR}/bincimap.conf.sample ${CONFDIR}/bincimap.conf.sample
.if defined(WITH_XINETD) @${MKDIR} ${EXAMPLESDIR}/contrib
${INSTALL_DATA} ${WRKSRC}/conf/xinetd-bincimap ${CONFDIR}/imap.sample
.if !defined(WITHOUT_OPENSSL)
${INSTALL_DATA} ${WRKSRC}/conf/xinetd-bincimaps ${CONFDIR}/imaps.sample
.endif
.else
@${MKDIR} ${CONFDIR}/imap.sample
${INSTALL_SCRIPT} ${WRKSRC}/service/run ${CONFDIR}/imap.sample
@${MKDIR} ${CONFDIR}/imap.sample/log
${INSTALL_SCRIPT} ${WRKSRC}/service/log/run ${CONFDIR}/imap.sample/log
.if !defined(WITHOUT_OPENSSL)
@${MKDIR} ${CONFDIR}/imaps.sample
${INSTALL_SCRIPT} ${WRKSRC}/service/run-ssl ${CONFDIR}/imaps.sample/run
@${MKDIR} ${CONFDIR}/imaps.sample/log
${INSTALL_SCRIPT} ${WRKSRC}/service/log/run ${CONFDIR}/imaps.sample/log
.endif
.endif
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${CONTRIB} ${EXAMPLESDIR}/contrib
cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1 cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN5} ${MANPREFIX}/man/man5 cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN5} ${MANPREFIX}/man/man5
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)

View file

@ -1,2 +1,2 @@
MD5 (bincimap-1.2.9final.tar.bz2) = 0fa92216715a540f5f405118cc92d994 MD5 (bincimap-1.2.10final.tar.bz2) = c33f8ae5018c4d3166f52190c270cddc
SIZE (bincimap-1.2.9final.tar.bz2) = 412006 SIZE (bincimap-1.2.10final.tar.bz2) = 412289

View file

@ -2,16 +2,6 @@
bin/bincimapd bin/bincimapd
bin/bincimap-up bin/bincimap-up
etc/bincimap/bincimap.conf.sample etc/bincimap/bincimap.conf.sample
%%XINETD%%etc/bincimap/imap.sample
%%XINETD%%%%SSL%%etc/bincimap/imaps.sample
%%DJB%%etc/bincimap/imap.sample/run
%%DJB%%etc/bincimap/imap.sample/log/run
%%DJB%%@dirrm etc/bincimap/imap.sample/log
%%DJB%%@dirrm etc/bincimap/imap.sample
%%DJB%%%%SSL%%etc/bincimap/imaps.sample/run
%%DJB%%%%SSL%%etc/bincimap/imaps.sample/log/run
%%DJB%%%%SSL%%@dirrm etc/bincimap/imaps.sample/log
%%DJB%%%%SSL%%@dirrm etc/bincimap/imaps.sample
@unexec rmdir %D/etc/bincimap 2>/dev/null || true @unexec rmdir %D/etc/bincimap 2>/dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
@ -23,9 +13,13 @@ etc/bincimap/bincimap.conf.sample
%%PORTDOCS%%%%DOCSDIR%%/bincimap-tech.html %%PORTDOCS%%%%DOCSDIR%%/bincimap-tech.html
%%PORTDOCS%%%%DOCSDIR%%/bincimap.css %%PORTDOCS%%%%DOCSDIR%%/bincimap.css
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/README %%EXAMPLESDIR%%/contrib/README
%%EXAMPLESDIR%%/bincimap-auth-teapop.sh %%EXAMPLESDIR%%/contrib/bincimap-auth-teapop.sh
%%EXAMPLESDIR%%/bincimap.conf
%%EXAMPLESDIR%%/checkpassword.pl %%EXAMPLESDIR%%/checkpassword.pl
%%EXAMPLESDIR%%/toimapdir %%EXAMPLESDIR%%/toimapdir
%%EXAMPLESDIR%%/tomaildir++ %%EXAMPLESDIR%%/tomaildir++
%%EXAMPLESDIR%%/xinetd-bincimap
%%EXAMPLESDIR%%/xinetd-bincimaps
@dirrm %%EXAMPLESDIR%%/contrib
@dirrm %%EXAMPLESDIR%% @dirrm %%EXAMPLESDIR%%