Continued problems with pkg-plist

Paul Schmehl pauls at utdallas.edu
Mon Jul 16 17:50:06 UTC 2007


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 (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list