diff options
author | pav <pav@FreeBSD.org> | 2005-01-20 23:11:08 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-01-20 23:11:08 +0800 |
commit | 46093f1321444d54c4d2075e1dc4642c5f448ca5 (patch) | |
tree | 742f79a583be1a4a8d94853be6be2964797ab6fd /databases | |
parent | e0aceb95c447b9fe0370cc8c0c680e75d38c312a (diff) | |
download | freebsd-ports-gnome-46093f1321444d54c4d2075e1dc4642c5f448ca5.tar.gz freebsd-ports-gnome-46093f1321444d54c4d2075e1dc4642c5f448ca5.tar.zst freebsd-ports-gnome-46093f1321444d54c4d2075e1dc4642c5f448ca5.zip |
ACAP (Application Configuration Access Protol) is an Internet standards-track
protocol for remote preferences and other storage for Internet applications
such as web browsers or mail readers.
PR: ports/76456
Submitted by: Gerhard Gonter <g.gonter@ieee.org>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/Makefile | 65 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/distinfo | 2 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/acapd.conf-sample | 2 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/cyrus_smlacapd_backend | 53 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/patch-actest-Makefile.in | 20 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/patch-backend-Makefile.in | 12 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/patch-frontend-Makefile.in | 20 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/files/pkg-message.in | 15 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/pkg-descr | 5 | ||||
-rw-r--r-- | databases/cyrus-smlacapd/pkg-plist | 42 |
11 files changed, 237 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index c89dde78439a..8293127d07ab 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -11,6 +11,7 @@ SUBDIR += cdb SUBDIR += clip SUBDIR += cyrus-imspd + SUBDIR += cyrus-smlacapd SUBDIR += db SUBDIR += db2 SUBDIR += db3 diff --git a/databases/cyrus-smlacapd/Makefile b/databases/cyrus-smlacapd/Makefile new file mode 100644 index 000000000000..025f51f37069 --- /dev/null +++ b/databases/cyrus-smlacapd/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: cyrus-smlacapd +# Date created: May 11th 2004 +# Whom: g.gonter@ieee.org +# +# $FreeBSD$ +# + +PORTNAME= cyrus-smlacapd +PORTVERSION= 0.5 +CATEGORIES= databases mail +MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ + ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ + +MAINTAINER= g.gonter@ieee.org +COMMENT= The cyrus ACAP (Application Configuration Access Protocol) server + +LIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl +BUILD_DEPENDS= sml:${PORTSDIR}/lang/sml-nj + +USE_REINPLACE= YES +GNU_CONFIGURE= YES +CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \ + --with-sasldir=${LOCALBASE}/lib + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message + +ACAPD_DOC= ${PREFIX}/share/doc/acapd + +pre-configure: + ${REINPLACE_CMD} -e "s#sasl.h#sasl1/sasl.h#" ${WRKSRC}/configure + ${REINPLACE_CMD} -e "s#<sasl.h>#<sasl1/sasl.h>#" \ + ${WRKSRC}/actest/actest.c ${WRKSRC}/api/acap.c \ + ${WRKSRC}/api/acap.h ${WRKSRC}/frontend/frontend.c \ + ${WRKSRC}/lib/imclient.c ${WRKSRC}/lib/prot.h + +pre-su-install: + ${MKDIR} -m 0755 -p ${PREFIX}/cyrus + ${MKDIR} -m 0755 -p ${PREFIX}/include/cyrus + +post-install: + ${INSTALL} ${LOCALBASE}/lib/sml-nj/bin/.run/run.x86-freebsd ${PREFIX}/cyrus/bin + ${INSTALL_SCRIPT} ${FILESDIR}/cyrus_smlacapd_backend \ + ${PREFIX}/etc/rc.d/cyrus_smlacapd_backend.sample + + ${MKDIR} ${ACAPD_DOC} + ${INSTALL_DATA} ${FILESDIR}/acapd.conf-sample ${ACAPD_DOC} +.if !defined(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/doc/install.html ${ACAPD_DOC} + ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-book-03.txt \ + > ${ACAPD_DOC}/draft-ietf-acap-book-03.txt + ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-email-03.txt \ + > ${ACAPD_DOC}/draft-ietf-acap-email-03.txt + ${TR} '\r' '\n' < ${WRKSRC}/doc/draft-ietf-acap-pers-03.txt \ + > ${ACAPD_DOC}/draft-ietf-acap-pers-03.txt + ${INSTALL_DATA} ${WRKSRC}/doc/rfc2244.txt ${ACAPD_DOC} +.endif + +.if !defined(BATCH) + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} +.endif + +.include <bsd.port.mk> diff --git a/databases/cyrus-smlacapd/distinfo b/databases/cyrus-smlacapd/distinfo new file mode 100644 index 000000000000..a8be5b8d6e6b --- /dev/null +++ b/databases/cyrus-smlacapd/distinfo @@ -0,0 +1,2 @@ +MD5 (cyrus-smlacapd-0.5.tar.gz) = 289534b37a2df156f917d6b38d87b354 +SIZE (cyrus-smlacapd-0.5.tar.gz) = 652828 diff --git a/databases/cyrus-smlacapd/files/acapd.conf-sample b/databases/cyrus-smlacapd/files/acapd.conf-sample new file mode 100644 index 000000000000..13e0b4996c30 --- /dev/null +++ b/databases/cyrus-smlacapd/files/acapd.conf-sample @@ -0,0 +1,2 @@ +configdirectory: /var/acap +datadirectory: /var/spool/acap diff --git a/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend b/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend new file mode 100644 index 000000000000..a58e5375f5d0 --- /dev/null +++ b/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend @@ -0,0 +1,53 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/databases/cyrus-smlacapd/files/Attic/cyrus_smlacapd_backend,v 1.1 2005-01-20 15:11:08 pav Exp $ +# + +# PROVIDE: cyrus_smlacapd_backend +# REQUIRE: DAEMON cyrus_pwcheck +# KEYWORD: FreeBSD shutdown + +# +# Add the following line to /etc/rc.conf to enable cyrus_smlacapd_backend: +# cyrus_smlacapd_backend_enable="YES" +# +. /etc/rc.subr + +name="cyrus_smlacapd_backend" +rcvar=`set_rcvar` + +[ -z "$cyrus_smlacapd_backend_enable" ] && cyrus_smlacapd_backend_enable="NO" +[ -z "$cyrus_smlacapd_backend_runtime" ] && cyrus_smlacapd_backend_runtime="/usr/local/cyrus/bin/run.x86-freebsd" +[ -z "$cyrus_smlacapd_backend_heap" ] && cyrus_smlacapd_backend_heap="/usr/local/cyrus/bin/backend.x86-bsd" + +required_dirs="/var/acap /var/spool/acap" +pidfile=/var/run/cyrus_smlacapd_backend.pid +procname=$cyrus_smlacapd_backend_runtime +start_precmd="cyrus_smlacapd_backend_precmd" +start_postcmd="cyrus_smlacapd_backend_postcmd" +command=/usr/sbin/daemon +command_args="-f $cyrus_smlacapd_backend_runtime @SMLload=$cyrus_smlacapd_backend_heap" + +cyrus_smlacapd_backend_precmd() +{ + SOCKET=/var/acap/socke + if [ -e ${SOCKET} ] + then + rm ${SOCKET} + fi +} + +cyrus_smlacapd_backend_postcmd() +{ + sleep 1 + pid=`ps -o pid,command -axww | \ + awk '$2 == "'$cyrus_smlacapd_backend_runtime'" && $3 == "@SMLload='$cyrus_smlacapd_backend_heap'" { print $1 }'` + if [ -n "$pid" ] + then + echo "$pid" > $pidfile + fi +} + +load_rc_config $name + +run_rc_command "$1" diff --git a/databases/cyrus-smlacapd/files/patch-actest-Makefile.in b/databases/cyrus-smlacapd/files/patch-actest-Makefile.in new file mode 100644 index 000000000000..612a0f4c8fbc --- /dev/null +++ b/databases/cyrus-smlacapd/files/patch-actest-Makefile.in @@ -0,0 +1,20 @@ +--- actest/Makefile.in.orig Thu Apr 20 03:32:58 2000 ++++ actest/Makefile.in Tue May 11 03:54:34 2004 +@@ -37,7 +37,7 @@ + RANLIB = @RANLIB@ + + DEFS = @DEFS@ @LOCALDEFS@ +-CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/../lib ++CPPFLAGS = -I/usr/local/include -I$(srcdir) -I$(srcdir)/../lib + DEPLIBS = ../lib/libcyrus.a @DEPLIBS@ + LIBS = @LIBS@ $(DEPLIBS) @LIB_SASL@ + +@@ -46,7 +46,7 @@ + + prefix = /usr/local + exec_prefix = ${prefix} +-cyrus_prefix = /usr/cyrus ++cyrus_prefix = ${prefix}/cyrus + + SHELL = /bin/sh + MAKEDEPEND = @MAKEDEPEND@ diff --git a/databases/cyrus-smlacapd/files/patch-backend-Makefile.in b/databases/cyrus-smlacapd/files/patch-backend-Makefile.in new file mode 100644 index 000000000000..ffb5136f871f --- /dev/null +++ b/databases/cyrus-smlacapd/files/patch-backend-Makefile.in @@ -0,0 +1,12 @@ +--- backend/Makefile.in.orig Wed Mar 8 22:51:42 2000 ++++ backend/Makefile.in Tue May 11 03:54:34 2004 +@@ -48,7 +48,8 @@ + INSTALL = @INSTALL@ + + SML=@SMLNJ@ +-cyrus_prefix = /usr/cyrus ++prefix = /usr/local ++cyrus_prefix = ${prefix}/cyrus + + PROGS = backend + diff --git a/databases/cyrus-smlacapd/files/patch-frontend-Makefile.in b/databases/cyrus-smlacapd/files/patch-frontend-Makefile.in new file mode 100644 index 000000000000..3db3e25c4d78 --- /dev/null +++ b/databases/cyrus-smlacapd/files/patch-frontend-Makefile.in @@ -0,0 +1,20 @@ +--- frontend/Makefile.in.orig Fri Mar 3 06:05:00 2000 ++++ frontend/Makefile.in Tue May 11 03:54:34 2004 +@@ -37,7 +37,7 @@ + RANLIB = @RANLIB@ + + DEFS = @DEFS@ @LOCALDEFS@ +-CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/../lib ++CPPFLAGS = -I/usr/local/include -I$(srcdir) -I$(srcdir)/../lib + DEPLIBS = ../lib/libcyrus.a @DEPLIBS@ + LIBS = @LIBS@ $(DEPLIBS) @LIB_SASL@ + +@@ -46,7 +46,7 @@ + + prefix = /usr/local + exec_prefix = ${prefix} +-cyrus_prefix = /usr/cyrus ++cyrus_prefix = ${prefix}/cyrus + + SHELL = /bin/sh + MAKEDEPEND = @MAKEDEPEND@ diff --git a/databases/cyrus-smlacapd/files/pkg-message.in b/databases/cyrus-smlacapd/files/pkg-message.in new file mode 100644 index 000000000000..367abfd631ac --- /dev/null +++ b/databases/cyrus-smlacapd/files/pkg-message.in @@ -0,0 +1,15 @@ +To enable the acap server, add this line to /etc/inetd.conf : + +acap stream tcp nowait root /usr/local/cyrus/bin/frontend frontend + +You also need the configuration file /etc/acapd.conf. A +sample can be found in %%PREFIX%%/share/doc/acapd + +The configuration file contains the path names for the +directories where the ACAP daemon stores it's data files, +you should create them e.g. by + +mkdir /var/acap +mkdir /var/spool/acap +mkdir /var/spool/log + diff --git a/databases/cyrus-smlacapd/pkg-descr b/databases/cyrus-smlacapd/pkg-descr new file mode 100644 index 000000000000..69207bb2b85d --- /dev/null +++ b/databases/cyrus-smlacapd/pkg-descr @@ -0,0 +1,5 @@ +ACAP (Application Configuration Access Protol) is an Internet +standards-track protocol for remote preferences and other storage +for Internet applications such as web browsers or mail readers. + +WWW: http://asg.web.cmu.edu/cyrus/smlacapd/ diff --git a/databases/cyrus-smlacapd/pkg-plist b/databases/cyrus-smlacapd/pkg-plist new file mode 100644 index 000000000000..c422598b5161 --- /dev/null +++ b/databases/cyrus-smlacapd/pkg-plist @@ -0,0 +1,42 @@ +etc/rc.d/cyrus_smlacapd_backend.sample +cyrus/bin/frontend +cyrus/bin/backend-acapd +cyrus/bin/backend.x86-bsd +cyrus/bin/actest +cyrus/bin/run.x86-freebsd +include/cyrus/acl.h +include/cyrus/assert.h +include/cyrus/auth.h +include/cyrus/bsearch.h +include/cyrus/charset.h +include/cyrus/glob.h +include/cyrus/gmtoff.h +include/cyrus/imclient.h +include/cyrus/imparse.h +include/cyrus/lock.h +include/cyrus/map.h +include/cyrus/mkgmtime.h +include/cyrus/nonblock.h +include/cyrus/parseaddr.h +include/cyrus/prot.h +include/cyrus/retry.h +include/cyrus/sysexits.h +include/cyrus/lsort.h +include/cyrus/stristr.h +include/cyrus/hash.h +include/cyrus/util.h +include/cyrus/xmalloc.h +include/cyrus/imapurl.h +include/cyrus/acap.h +lib/libacap.a +lib/libcyrus.a +@dirrm cyrus/bin +@dirrm cyrus +@dirrm include/cyrus +%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-book-03.txt +%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-email-03.txt +%%PORTDOCS%%share/doc/acapd/draft-ietf-acap-pers-03.txt +%%PORTDOCS%%share/doc/acapd/install.html +%%PORTDOCS%%share/doc/acapd/rfc2244.txt +share/doc/acapd/acapd.conf-sample +@dirrm share/doc/acapd |