Date: Mon, 16 Jul 2007 12:50:05 -0500 From: Paul Schmehl <pauls@utdallas.edu> To: ports@freebsd.org Subject: Re: Continued problems with pkg-plist Message-ID: <B384C79FE8D88FC18423C3FD@utd59514.utdallas.edu>
next in thread | raw e-mail | index | archive | help
--==========78B7C5989EFC56BE83C9========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline For the record (in case somebody googles this thread in six months), I was=20 able to solve this problem by adding the following to the pkg-deinstall=20 script: if [ "$2" !=3D "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" !=3D "POST-DEINSTALL" ]; then exit 0 fi /bin/rm %%SITE_PERL%%/mach/IP4.pm And the perl module is removed without errors. --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========78B7C5989EFC56BE83C9==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B384C79FE8D88FC18423C3FD>