Date: Wed, 19 Jan 2005 10:24:37 +0100 (CET) From: Gerhard Gonter <g.gonter@ieee.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Gerhard Gonter <g.gonter@ieee.org> Subject: ports/76456: new port: databases/cyrus-smlacapd Message-ID: <200501190924.j0J9ObhV038675@alcoholix.wu-wien.ac.at> Resent-Message-ID: <200501190920.j0J9KR8Q085090@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76456 >Category: ports >Synopsis: new port: databases/cyrus-smlacapd >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: Wed Jan 19 09:20:26 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Gerhard Gonter >Release: FreeBSD 5.3-STABLE i386 >Organization: none >Environment: System: FreeBSD alcoholix.wu-wien.ac.at 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Dec 26 12:56:10 CET 2004 root@alcoholix.wu-wien.ac.at:/usr/obj/usr/src/sys/GENERIC i386 Architecture: i386 >Description: This is a new port for the Cyrus ACAP server. It replaces the port that was submitted in PR ports/68572 and fixes a build/run dependency with lang/sml-nj. Please close PR ports/68572. Thank you! >How-To-Repeat: >Fix: # 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: # # cyrus-smlacapd/Makefile # cyrus-smlacapd/files/acapd.conf-sample # cyrus-smlacapd/files/cyrus_smlacapd_backend # cyrus-smlacapd/files/patch-aa # cyrus-smlacapd/files/patch-ab # cyrus-smlacapd/files/patch-ac # cyrus-smlacapd/distinfo # cyrus-smlacapd/pkg-descr # cyrus-smlacapd/pkg-message # cyrus-smlacapd/pkg-plist # echo x - cyrus-smlacapd/Makefile sed 's/^X//' >cyrus-smlacapd/Makefile << 'END-of-cyrus-smlacapd/Makefile' X# New ports collection makefile for: cyrus-smlacapd X# Date created: May 11th 2004 X# Whom: g.gonter@ieee.org X# X# $FreeBSD: $ X# X XPORTNAME= cyrus-smlacapd XPORTVERSION= 0.5 XPORTREVISION= 1 XCATEGORIES= databases mail XMASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ X ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ X XMAINTAINER= g.gonter@ieee.org XCOMMENT= The cyrus ACAP (Application Configuration Access Protocol) server X XLIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl XBUILD_DEPENDS= ${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl \ X ${LOCALBASE}/bin/sml:${PORTSDIR}/lang/sml-nj X XUSE_REINPLACE= YES XGNU_CONFIGURE= YES XCONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \ X --with-sasldir=${LOCALBASE}/lib X XMSG_FILE= ${PKGDIR}/pkg-message XPKGMESSAGE= ${WRKDIR}/pkg-message X XACAPD_DOC= ${PREFIX}/share/doc/acapd X Xpre-configure: X ${REINPLACE_CMD} -e "s#sasl.h#sasl1/sasl.h#" ${WRKSRC}/configure X ${REINPLACE_CMD} -e "s#<sasl.h>#<sasl1/sasl.h>#" \ X ${WRKSRC}/actest/actest.c ${WRKSRC}/api/acap.c \ X ${WRKSRC}/api/acap.h ${WRKSRC}/frontend/frontend.c \ X ${WRKSRC}/lib/imclient.c ${WRKSRC}/lib/prot.h X Xpost-patch: patch-pkgmessage X Xpre-install: X ${MKDIR} -m 0755 -p ${PREFIX}/cyrus X ${MKDIR} -m 0755 -p ${PREFIX}/include/cyrus X Xpost-install: install-runtime install-startup install-docs display-message Xinstall-runtime: X ${INSTALL} ${LOCALBASE}/lib/sml-nj/bin/.run/run.x86-freebsd \ X ${PREFIX}/cyrus/bin X Xinstall-startup: X ${INSTALL_SCRIPT} ${FILESDIR}/cyrus_smlacapd_backend \ X ${PREFIX}/etc/rc.d/cyrus_smlacapd_backend.sample X Xinstall-docs: X ${MKDIR} ${ACAPD_DOC} X ${INSTALL_DATA} ${FILESDIR}/acapd.conf-sample ${ACAPD_DOC} X.if !defined(NOPORTDOCS) X ${INSTALL_DATA} ${WRKSRC}/doc/install.html ${ACAPD_DOC} X ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-book-03.txt \ X > ${ACAPD_DOC}/draft-ietf-acap-book-03.txt X ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-email-03.txt \ X > ${ACAPD_DOC}/draft-ietf-acap-email-03.txt X ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-pers-03.txt \ X > ${ACAPD_DOC}/draft-ietf-acap-pers-03.txt X ${INSTALL_DATA} ${WRKSRC}/doc/rfc2244.txt \ X ${ACAPD_DOC} X.endif X Xpatch-pkgmessage: X @${SED} 's|%%PREFIX%%|${PREFIX}|g;' ${MSG_FILE} > ${PKGMESSAGE} X Xdisplay-message: X.if !defined(BATCH) X @${ECHO_MSG} X @${CAT} ${PKGMESSAGE} X @${ECHO_MSG} X.endif X X.include <bsd.port.mk> END-of-cyrus-smlacapd/Makefile echo x - cyrus-smlacapd/files/acapd.conf-sample sed 's/^X//' >cyrus-smlacapd/files/acapd.conf-sample << 'END-of-cyrus-smlacapd/files/acapd.conf-sample' Xconfigdirectory: /var/acap Xdatadirectory: /var/spool/acap END-of-cyrus-smlacapd/files/acapd.conf-sample echo x - cyrus-smlacapd/files/cyrus_smlacapd_backend sed 's/^X//' >cyrus-smlacapd/files/cyrus_smlacapd_backend << 'END-of-cyrus-smlacapd/files/cyrus_smlacapd_backend' X#!/bin/sh X# X# $FreeBSD: $ X# X X# PROVIDE: cyrus_smlacapd_backend X# REQUIRE: DAEMON cyrus_pwcheck X# KEYWORD: FreeBSD shutdown X X# X# Add the following line to /etc/rc.conf to enable cyrus_smlacapd_backend: X# cyrus_smlacapd_backend_enable="YES" X# X. /etc/rc.subr X Xname="cyrus_smlacapd_backend" Xrcvar=`set_rcvar` X X[ -z "$cyrus_smlacapd_backend_enable" ] && cyrus_smlacapd_backend_enable="NO" X[ -z "$cyrus_smlacapd_backend_runtime" ] && cyrus_smlacapd_backend_runtime="/usr/local/cyrus/bin/run.x86-freebsd" X[ -z "$cyrus_smlacapd_backend_heap" ] && cyrus_smlacapd_backend_heap="/usr/local/cyrus/bin/backend.x86-bsd" X Xrequired_dirs="/var/acap /var/spool/acap" Xpidfile=/var/run/cyrus_smlacapd_backend.pid Xprocname=$cyrus_smlacapd_backend_runtime Xstart_precmd="cyrus_smlacapd_backend_precmd" Xstart_postcmd="cyrus_smlacapd_backend_postcmd" Xcommand=/usr/sbin/daemon Xcommand_args="-f $cyrus_smlacapd_backend_runtime @SMLload=$cyrus_smlacapd_backend_heap" X Xcyrus_smlacapd_backend_precmd() X{ X SOCKET=/var/acap/socke X if [ -e ${SOCKET} ] X then X rm ${SOCKET} X fi X} X Xcyrus_smlacapd_backend_postcmd() X{ X sleep 1 X pid=`ps -o pid,command -axww | \ X awk '$2 == "'$cyrus_smlacapd_backend_runtime'" && $3 == "@SMLload='$cyrus_smlacapd_backend_heap'" { print $1 }'` X if [ -n "$pid" ] X then X echo "$pid" > $pidfile X fi X} X Xload_rc_config $name X Xrun_rc_command "$1" END-of-cyrus-smlacapd/files/cyrus_smlacapd_backend echo x - cyrus-smlacapd/files/patch-aa sed 's/^X//' >cyrus-smlacapd/files/patch-aa << 'END-of-cyrus-smlacapd/files/patch-aa' X--- frontend/Makefile.in.orig Fri Mar 3 06:05:00 2000 X+++ frontend/Makefile.in Tue May 11 03:54:34 2004 X@@ -37,7 +37,7 @@ X RANLIB = @RANLIB@ X X DEFS = @DEFS@ @LOCALDEFS@ X-CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/../lib X+CPPFLAGS = -I/usr/local/include -I$(srcdir) -I$(srcdir)/../lib X DEPLIBS = ../lib/libcyrus.a @DEPLIBS@ X LIBS = @LIBS@ $(DEPLIBS) @LIB_SASL@ X X@@ -46,7 +46,7 @@ X X prefix = /usr/local X exec_prefix = ${prefix} X-cyrus_prefix = /usr/cyrus X+cyrus_prefix = ${prefix}/cyrus X X SHELL = /bin/sh X MAKEDEPEND = @MAKEDEPEND@ END-of-cyrus-smlacapd/files/patch-aa echo x - cyrus-smlacapd/files/patch-ab sed 's/^X//' >cyrus-smlacapd/files/patch-ab << 'END-of-cyrus-smlacapd/files/patch-ab' X--- backend/Makefile.in.orig Wed Mar 8 22:51:42 2000 X+++ backend/Makefile.in Tue May 11 03:54:34 2004 X@@ -48,7 +48,8 @@ X INSTALL = @INSTALL@ X X SML=@SMLNJ@ X-cyrus_prefix = /usr/cyrus X+prefix = /usr/local X+cyrus_prefix = ${prefix}/cyrus X X PROGS = backend X END-of-cyrus-smlacapd/files/patch-ab echo x - cyrus-smlacapd/files/patch-ac sed 's/^X//' >cyrus-smlacapd/files/patch-ac << 'END-of-cyrus-smlacapd/files/patch-ac' X--- actest/Makefile.in.orig Thu Apr 20 03:32:58 2000 X+++ actest/Makefile.in Tue May 11 03:54:34 2004 X@@ -37,7 +37,7 @@ X RANLIB = @RANLIB@ X X DEFS = @DEFS@ @LOCALDEFS@ X-CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/../lib X+CPPFLAGS = -I/usr/local/include -I$(srcdir) -I$(srcdir)/../lib X DEPLIBS = ../lib/libcyrus.a @DEPLIBS@ X LIBS = @LIBS@ $(DEPLIBS) @LIB_SASL@ X X@@ -46,7 +46,7 @@ X X prefix = /usr/local X exec_prefix = ${prefix} X-cyrus_prefix = /usr/cyrus X+cyrus_prefix = ${prefix}/cyrus X X SHELL = /bin/sh X MAKEDEPEND = @MAKEDEPEND@ END-of-cyrus-smlacapd/files/patch-ac echo x - cyrus-smlacapd/distinfo sed 's/^X//' >cyrus-smlacapd/distinfo << 'END-of-cyrus-smlacapd/distinfo' XMD5 (cyrus-smlacapd-0.5.tar.gz) = 289534b37a2df156f917d6b38d87b354 XSIZE (cyrus-smlacapd-0.5.tar.gz) = 652828 END-of-cyrus-smlacapd/distinfo echo x - cyrus-smlacapd/pkg-descr sed 's/^X//' >cyrus-smlacapd/pkg-descr << 'END-of-cyrus-smlacapd/pkg-descr' XACAP (Application Configuration Access Protol) is an Internet Xstandards-track protocol for remote preferences and other storage Xfor Internet applications such as web browsers or mail readers. X XWWW: http://asg.web.cmu.edu/cyrus/smlacapd/ END-of-cyrus-smlacapd/pkg-descr echo x - cyrus-smlacapd/pkg-message sed 's/^X//' >cyrus-smlacapd/pkg-message << 'END-of-cyrus-smlacapd/pkg-message' XTo enable the acap server, add this line to /etc/inetd.conf : X Xacap stream tcp nowait root /usr/local/cyrus/bin/frontend frontend X XYou also need the configuration file /etc/acapd.conf. A Xsample can be found in %%PREFIX%%/share/doc/acapd X XThe configuration file contains the path names for the Xdirectories where the ACAP daemon stores it's data files, Xyou should create them e.g. by X Xmkdir /var/acap Xmkdir /var/spool/acap Xmkdir /var/spool/log X END-of-cyrus-smlacapd/pkg-message echo x - cyrus-smlacapd/pkg-plist sed 's/^X//' >cyrus-smlacapd/pkg-plist << 'END-of-cyrus-smlacapd/pkg-plist' Xetc/rc.d/cyrus_smlacapd_backend.sample Xcyrus/bin/frontend Xcyrus/bin/backend-acapd Xcyrus/bin/backend.x86-bsd Xcyrus/bin/actest Xcyrus/bin/run.x86-freebsd Xinclude/cyrus/acl.h Xinclude/cyrus/assert.h Xinclude/cyrus/auth.h Xinclude/cyrus/bsearch.h Xinclude/cyrus/charset.h Xinclude/cyrus/glob.h Xinclude/cyrus/gmtoff.h Xinclude/cyrus/imclient.h Xinclude/cyrus/imparse.h Xinclude/cyrus/lock.h Xinclude/cyrus/map.h Xinclude/cyrus/mkgmtime.h Xinclude/cyrus/nonblock.h Xinclude/cyrus/parseaddr.h Xinclude/cyrus/prot.h Xinclude/cyrus/retry.h Xinclude/cyrus/sysexits.h Xinclude/cyrus/lsort.h Xinclude/cyrus/stristr.h Xinclude/cyrus/hash.h Xinclude/cyrus/util.h Xinclude/cyrus/xmalloc.h Xinclude/cyrus/imapurl.h Xinclude/cyrus/acap.h X@dirrm cyrus/bin X@dirrm cyrus X@dirrm include/cyrus X%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-book-03.txt X%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-email-03.txt X%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-pers-03.txt X%%PORTDOCS%%share/doc/acapd/install.html X%%PORTDOCS%%share/doc/acapd/rfc2244.txt Xshare/doc/acapd/acapd.conf-sample X@dirrm share/doc/acapd END-of-cyrus-smlacapd/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501190924.j0J9ObhV038675>