*BSD News Article 75115


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!in3.uu.net!hoho.quake.net!jupiter.dnai.com!news
From: dornfest@mars.dnai.com (Rael Dornfest)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: building an abort into pkg_create
Date: 30 Jul 1996 19:39:37 -0700
Organization: DNAI
Lines: 20
Sender: dornfest@mars.dnai.com
Message-ID: <8520htqh7a.fsf@mars.dnai.com>
NNTP-Posting-Host: mars.dnai.com
X-Newsreader: Gnus v5.1

In my package, I run a shell script which checks a few
things and returns either a 0 or 1.  How do I build
an abort into my package if a 0 is returned.

In other words, if my checks fail, I want the entire
pkg_add to terminate and not actually install anything.

How do I do this using pkg_create?  What is the
syntax (if indeed possible) for my packinglist file?

TIA,

Rael
-- 

--------------------------------------------------------------------------
Rael Dornfest      Direct Network Access        Email.   dornfest@dnai.com   
                   2039 Shattuck Avenue                  webmaven@dnai.com   
                   Suite 206                    Web.   http://www.dnai.com
                   Berkeley, California 94704   Voice.        510.649.6110