mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
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>
This commit is contained in:
parent
6582298a7a
commit
082286a119
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126954
@ -11,6 +11,7 @@
|
||||
SUBDIR += cdb
|
||||
SUBDIR += clip
|
||||
SUBDIR += cyrus-imspd
|
||||
SUBDIR += cyrus-smlacapd
|
||||
SUBDIR += db
|
||||
SUBDIR += db2
|
||||
SUBDIR += db3
|
||||
|
65
databases/cyrus-smlacapd/Makefile
Normal file
65
databases/cyrus-smlacapd/Makefile
Normal file
@ -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>
|
2
databases/cyrus-smlacapd/distinfo
Normal file
2
databases/cyrus-smlacapd/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (cyrus-smlacapd-0.5.tar.gz) = 289534b37a2df156f917d6b38d87b354
|
||||
SIZE (cyrus-smlacapd-0.5.tar.gz) = 652828
|
2
databases/cyrus-smlacapd/files/acapd.conf-sample
Normal file
2
databases/cyrus-smlacapd/files/acapd.conf-sample
Normal file
@ -0,0 +1,2 @@
|
||||
configdirectory: /var/acap
|
||||
datadirectory: /var/spool/acap
|
53
databases/cyrus-smlacapd/files/cyrus_smlacapd_backend
Normal file
53
databases/cyrus-smlacapd/files/cyrus_smlacapd_backend
Normal file
@ -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"
|
20
databases/cyrus-smlacapd/files/patch-actest-Makefile.in
Normal file
20
databases/cyrus-smlacapd/files/patch-actest-Makefile.in
Normal file
@ -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@
|
12
databases/cyrus-smlacapd/files/patch-backend-Makefile.in
Normal file
12
databases/cyrus-smlacapd/files/patch-backend-Makefile.in
Normal file
@ -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
|
||||
|
20
databases/cyrus-smlacapd/files/patch-frontend-Makefile.in
Normal file
20
databases/cyrus-smlacapd/files/patch-frontend-Makefile.in
Normal file
@ -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@
|
15
databases/cyrus-smlacapd/files/pkg-message.in
Normal file
15
databases/cyrus-smlacapd/files/pkg-message.in
Normal file
@ -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
|
||||
|
5
databases/cyrus-smlacapd/pkg-descr
Normal file
5
databases/cyrus-smlacapd/pkg-descr
Normal file
@ -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/
|
42
databases/cyrus-smlacapd/pkg-plist
Normal file
42
databases/cyrus-smlacapd/pkg-plist
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user