Hallo,
the problem is "relative_ln_s.sh"

It uses non SH conforming syntax as test does not accept C-ish "==" for
comparison.
A further BASH-ism is to be found with src/modules/Makefile: It uses the
combined 'export VAR=VALUE' syntax, while SH needs two separate statements.

Find attached a patch for both.

Regards
Rainer

Dmitrij Mironov wrote:

>I have the same problem with FreeBSD 4.11. 
>OpenCA ver. 0.9.2.2 (latest release). 
>
>On "gmake install-offline" I encountered strange error:
>
>gmake[9]: Entering directory
>`/dist/openca/openca-0.9.2.2/src/web-interfaces/node/htdocs'
>if test -z "/usr/local/openca/system/lib/stylesheets/default.css"; then
>gmake default; \
>else \
>    ../../../../relative_ln_s.sh
>/usr/local/openca/system/lib/stylesheets/default.css
>/usr/local/openca/httpd/htdocs/ca-node; \
>fi;
>test: /usr: unexpected operator
>test: /usr/local: unexpected operator
>test: /usr/local/openca: unexpected operator
>test: /usr/local/openca/httpd: unexpected operator
>test: /usr/local/openca/httpd/htdocs: unexpected operator
>test: /usr/local/openca/httpd/htdocs/ca-node: unexpected operator
>test: /usr: unexpected operator
>test: /usr/local: unexpected operator
>test: /usr/local/openca: unexpected operator
>test: /usr/local/openca/httpd: unexpected operator
>test: /usr/local/openca/httpd/htdocs: unexpected operator
>test: /usr/local/openca/httpd/htdocs/ca-node: unexpected operator
>
>What does this "test" do? And why it doesn't work in freebsd?
>
>
>
>  
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Oliver Welter
>>Sent: Monday, May 09, 2005 11:54 AM
>>To: [email protected]
>>Subject: Re: [Openca-Users] make install-ca
>>
>>Hi,
>>
>>hmm it seems that the etc directories are not created...
>>Are there any other errors or warnings before the copyiing fails ?
>>
>>Oliver
>>--
>>Diese Nachricht wurde digital unterschrieben oliwel's public 
>>key: http://www.oliwel.de/oliwel.crt
>>Basiszertifikat: http://www.ldv.ei.tum.de/page72
>>
>>    
>>


-- 

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/modules/Makefile.orig   2004-10-05 15:17:26.000000000 +0200
+++ src/modules/Makefile
@@ -108,7 +108,7 @@ $(MODULES)::
                                        
PERL5LIB="$$PERL5LIB:../$$file/blib/arch"; \
                                fi; \
                        done; \
-                       export PERL5OPT=$$PERL5OPT; \
+                       PERL5OPT=$$PERL5OPT export PERL5OPT; \
                        cd $@ && PERL5OPT=$$PERL5OPT PERL5LIB=$$PERL5LIB 
$(MAKE) $(SUBTARGET); \
                fi
$NetBSD$

--- relative_ln_s.sh.orig       2004-10-26 12:21:27.000000000 +0200
+++ relative_ln_s.sh
@@ -49,7 +49,7 @@ common="/"
 
 for path in $source_list; do
     for name in $target_list; do
-        if test $name == $path; then common=$path; fi;
+        if test $name = $path; then common=$path; fi;
     done;
 done;
 

Reply via email to