From owner-freebsd-ports@FreeBSD.ORG Mon Jul 16 17:50:06 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B426916A401 for ; Mon, 16 Jul 2007 17:50:06 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 97C8F13C441 for ; Mon, 16 Jul 2007 17:50:06 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 1915A654A6 for ; Mon, 16 Jul 2007 12:50:06 -0500 (CDT) Date: Mon, 16 Jul 2007 12:50:05 -0500 From: Paul Schmehl To: ports@freebsd.org Message-ID: X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========78B7C5989EFC56BE83C9==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Continued problems with pkg-plist X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 17:50:06 -0000 --==========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==========--