Subject: pkg/7090: ssleay's pkg_add show a erorr.
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 03/06/1999 16:10:56
>Number:         7090
>Category:       pkg
>Synopsis:       ssleay's pkg_add show a erorr.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar  5 23:20:00 1999
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
>Release:        NetBSD-current 1999/3/4
>Environment:
System: NetBSD ns.sky.yamashina.kyoto.jp 1.3K NetBSD 1.3K (NS) #2: Fri Mar 5 08:29:16 JST 1999 taca@ns.sky.yamashina.kyoto.jp:/usr/local/current/src/sys/arch/i386/compile/NS i386


>Description:
	Adding ssleay package with pkg_add show a error;

root@ns[54]:pkg_add ssleay-0.9.0b.tgz 
Syntax error: ";" unexpected
pkg_add: command 'if [ -f /usr/pkg/etc/ssleay.cnf ]; then; else cp -p /usr/pkg/etc/ssleay.cnf.example /usr/pkg/etc/ssleay.cnf; fi' failed

>How-To-Repeat:
	Create the package of ssleay and pkg_add with it.
>Fix:
	Fix ssleay/pkg/PLIST.  I've not test this patch but should be OK.


--- pkg/PLIST	Sun Feb 14 23:42:21 1999
+++ /tmp/PLIST	Sat Mar  6 16:09:58 1999
@@ -79,7 +79,7 @@
 bin/version
 bin/x509
 etc/ssleay.cnf.example
-@exec if [ -f %D/etc/ssleay.cnf ]; then; else cp -p %D/%F %D/etc/ssleay.cnf; fi
+@exec if [ ! -f %D/etc/ssleay.cnf ]; then cp -p %D/%F %D/etc/ssleay.cnf; fi
 include/ssleay/asn1.h
 include/ssleay/asn1_mac.h
 include/ssleay/bio.h

>Audit-Trail:
>Unformatted: