For the record (in case somebody googles this thread in six months), I was able to solve this problem by adding the following to the pkg-deinstall script:

if [ "$2" != "POST-DEINSTALL" ]; then
       exit 0
fi

So, the script, in toto, now is:

#!/bin/sh

# Since pkg-plist prepends PREFIX to SITE_PERL,
# we can't remove this file in the normal way

if [ "$2" != "POST-DEINSTALL" ]; then
       exit 0
fi

/bin/rm %%SITE_PERL%%/mach/IP4.pm

And the perl module is removed without errors.

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

Reply via email to