[csw-maintainers] i.cswinet install script failing

Ben Walton bwalton at opencsw.org
Tue Jun 15 20:08:56 CEST 2010


Excerpts from Darin Perusich's message of Tue Jun 15 09:36:44 -0400 2010:

> Installing class <cswinetd> ...
> /opt/csw/etc/pkg/CSWamanda/inetd.conf
> /usr/sadm/install/scripts/i.cswinetd: test: unknown operator ==
> pkgadd: ERROR: class action script did not complete successfully

I did slip this in at one point[1], but that was before the release in
current.  Looking at the current files that went into the package I
put in experiemental, I see:

--snip--
bwalton @ current9x : ~/packages/cswclassutils/trunk/files
$ grep '==' *
CSWcswclassutils.README.CSW:================
CSWcswclassutils.i.cswetcservices:      exists=`awk "\\\$1 ==
\"$svcname\" && \\\$2 == \"$port_proto\" { print \"found\" }"
$svcfile`
CSWcswclassutils.i.cswinetd:  exists=`awk "\\\$1 == \"$svcname\" &&
\\\$2 ~ /$proto/ {print \"found\"; exit }" /etc/services`
CSWcswclassutils.i.cswinitsmf:        set -- `/usr/bin/awk " \\\$1 ==
\"$1\" { print \\\$2 } " "$SMF_STATE_FILE"`
CSWcswclassutils.i.cswusergroup:    awk 'BEGIN { FS=":"; OFS=":" } $1
== "'$user'" { $2 = "NP" } { print }' /etc/shadow >
/etc/shadow.$PKGINST

--snip--

That looks good to me...pkgparam CSWcswclassutils ?

Thanks
-Ben

[1] It was released accidentally in this case.
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list