aboutsummaryrefslogtreecommitdiffstats
path: root/databases/cyrus-smlacapd/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-01-20 23:11:08 +0800
committerpav <pav@FreeBSD.org>2005-01-20 23:11:08 +0800
commit46093f1321444d54c4d2075e1dc4642c5f448ca5 (patch)
tree742f79a583be1a4a8d94853be6be2964797ab6fd /databases/cyrus-smlacapd/files
parente0aceb95c447b9fe0370cc8c0c680e75d38c312a (diff)
downloadfreebsd-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/cyrus-smlacapd/files')
-rw-r--r--databases/cyrus-smlacapd/files/acapd.conf-sample2
-rw-r--r--databases/cyrus-smlacapd/files/cyrus_smlacapd_backend53
-rw-r--r--databases/cyrus-smlacapd/files/patch-actest-Makefile.in20
-rw-r--r--databases/cyrus-smlacapd/files/patch-backend-Makefile.in12
-rw-r--r--databases/cyrus-smlacapd/files/patch-frontend-Makefile.in20
-rw-r--r--databases/cyrus-smlacapd/files/pkg-message.in15
6 files changed, 122 insertions, 0 deletions
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
+