Hello,
i am currently trying on setting up a netbsd package collection package
for OpenCa and encountered the same problem.
Reason is in the web-interfaces/* Makefiles:
They assume a directory named "access_control" to exist within
$(etc_prefix) or at least to be created by $(INSTALL).
If this is not true with your build env, the install will fail with the
error message you received.
The same problem applies to $(DEST_CGI_CONFDIR) ("server" directory).
I added a sample patch illustrating how to fix the Makefiles.
Regards
Rainer
anoath wrote:
> Hello,
>
> Today i tried openca-0.9.2.2.
> After doing a configure --with-openca-user=openca
> --with-openca-group=openca --prefix=/opt/OpenCA --with-web-host=host
> --with-httpd-user=www-data --with-httpd-group=www-data
> --with-cgi-fs-prefix=/usr/lib/cgi-bin --with-hierarchy-level=ca;
> I fired a make and make install-ca.
> make install-ca woes with cannot create regular file
> `/opt/OpenCA/OpenCA/etc/servers/ca.conf.template': No such file or
> directory -- what, after having a look in this place, is right.
> There is no dir named server.
>
> Before that it woes that it can#t copy the file
> /opt/OpenCA/OpenCA/etc/access_control/ca.xml.template, that was right
> too -- i created it manually.
>
> I now will that do in this place too.
>
> Is this a known problem ??
>
> Ps: i tried to find a search capability on the ml-archive -- in vain --
> 2 find related posts.
>
>
> regards gregor
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users
--
Managing Partner
Acrys Consult GmbH & Co. KG
Phone: +49-69-244506-0
Fax: +49-69-244506-50
http://www.acrys.com
***********Confidentiality/Limited Liability Statement***************
This email and its contents do not constitute a commitment by Acrys
Consult. This message is confidential and may contain privileged
information. The information contained in this communication is intended
solely for the use of the individual or entity to whom it is addressed
and others authorized to receive it. It may contain confidential or
legally privileged information. If you are not the intended recipient
you are hereby notified that any disclosure, copying, distribution or
taking any action in reliance on the contents of this information is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify us immediately by responding to
this email and then deleting it from your system. As reliability of the
Internet cannot be guaranteed, we are neither liable for proper nor
complete transmission of this or any other such communications.
$NetBSD$
--- src/web-interfaces/ra/Makefile.orig 2004-10-05 15:17:26.000000000 +0200
+++ src/web-interfaces/ra/Makefile
@@ -22,7 +22,8 @@ DEST_CGI_CONFDIR = $(etc_prefix)/servers
PROGS = $(AC_PROGS)
AC_CONF_SRC = access_control.xml
-AC_CONF = $(etc_prefix)/access_control/$(ra_prefix).xml.template
+AC_DIR = $(etc_prefix)/access_control
+AC_CONF = $(AC_DIR)/$(ra_prefix).xml.template
#---- variable settings above, rules below ----
@@ -33,13 +34,19 @@ default::
$(DEST_CGIDIR):
$(MAKE) __install_dir USER=${openca_user} GROUP=${openca_group}
MODE=755 DIR=$@
+$(DEST_CGI_CONFDIR):
+ $(MAKE) __install_dir USER=${openca_user} GROUP=${openca_group}
MODE=755 DIR=$@
+
+$(AC_DIR):
+ $(MAKE) __install_dir USER=${openca_user} GROUP=${openca_group}
MODE=755 DIR=$@
+
install:: $(PROGS) $(AC_CONF) $(CONF_FILE) $(COOKIE_DIR)
$(PROGS):: $(DEST_CGIDIR)
$(PROGS)::
$(INSTALL) -o ${openca_user} -g ${openca_group} -m 755 $@
$(DEST_CGIDIR)/$@
-$(AC_CONF)::
+$(AC_CONF):: $(AC_DIR)
@if [ -e $@ ]; then \
echo "$@ already exists, skipping configuration"; \
else \
@@ -47,7 +54,7 @@ $(AC_CONF)::
$(INSTALL) -o ${openca_user} -g ${openca_group} -m 644
$(AC_CONF_SRC) $@; \
fi
-$(CONF_FILE)::
+$(CONF_FILE):: $(DEST_CGI_CONFDIR)
@if [ -e $(DEST_CGI_CONFDIR)/${ra_prefix}.conf ]; then \
echo "$@ already exists, skipping configuration"; \
else \