From owner-freebsd-ports@FreeBSD.ORG Wed Aug 30 14:30:51 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55EDB16A4DA for ; Wed, 30 Aug 2006 14:30:51 +0000 (UTC) (envelope-from pirzyk@FreeBSD.org) Received: from zoot.intenex.net (zoot.intenex.net [216.93.182.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A3243D6E for ; Wed, 30 Aug 2006 14:30:46 +0000 (GMT) (envelope-from pirzyk@FreeBSD.org) Received: from [192.17.25.126] (snoopy.ci.uiuc.edu [192.17.25.126]) (authenticated bits=0) by zoot.intenex.net (8.12.11.20060308/8.12.11) with ESMTP id k7UEUeCj005974 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Wed, 30 Aug 2006 07:30:41 -0700 In-Reply-To: <44F4B8DE.109@FreeBSD.org> References: <20060825125030.GB73712@xor.obsecurity.org> <09A569F7-DFAA-4963-A1A8-935488F0C955@freebsd.org> <20060830012836.4e29c4f4@localhost> <08ED4A82-2E82-4614-A09D-28B555AAC850@freebsd.org> <44F4B8DE.109@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Message-Id: <08DA55DD-3641-4D3D-ADEA-692B8534A066@FreeBSD.org> Content-Transfer-Encoding: quoted-printable From: Jim Pirzyk Date: Wed, 30 Aug 2006 09:30:25 -0500 To: freebsd-ports@FreeBSD.org X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.752.2) X-Intenex-MailScanner-Information: Please contact Intenex support for more information X-Intenex-MailScanner: Found to be clean X-MailScanner-From: pirzyk@freebsd.org Cc: Kris Kennaway Subject: Re: [ports-i386@pointyhat.freebsd.org: psgconf-3.2.1 pkg-plist errors on i386 6-exp] 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: Wed, 30 Aug 2006 14:30:51 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes, I see that. But once you install a package via make install, the pkg-plist is going to have the extra values that TMP_PLIST had. Then when you do make package, that will also have those values (as I understand make package, it will read the 'installed' version, not the one in /usr/ports/sysutils/psgconf). I need to do something special before the pkg_delete is done, and only in the case of 'make install', not in the case of pkg_delete. - - JimP On Aug 29, 2006, at 4:59 PM, G=C3=A1bor K=C3=B6vesd=C3=A1n wrote: > No, actually it is the same. If you type make deinstall in the port =20= > directory, pkg_delete is called. Look at bsd.port.mk, about line 4300. > > Cheers, > > Gabor > > Jim Pirzyk wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hmm, this is not quite the same. I need to know if I am deinstalling >> from a port install or a package install. The install/deinstall >> behavior is different. >> >> - - JimP >> >> On Aug 29, 2006, at 4:28 PM, Stanislav Sedov wrote: >> >>> On Tue, 29 Aug 2006 16:16:40 -0500 >>> Jim Pirzyk mentioned: >>> >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> I do not see any >>>> >>>> pre-deinstall: >>>> >>>> target available in bsd.ports.mk Is there a way I can have a >>>> custom action before the main deinstall script or do I have to >>>> reimplement the deinstall: target itself? >>>> >>> >>> You should not tweak any deinstall targets, just add custom entries >>> into TMP_PLIST. You can schedule any actions by using @unexec PLIST >>> entry. Just put them in approriate order. >>> >>> --=20 >>> Stanislav Sedov MBSD labs, Inc. >>> =D0=A0=D0=BE=D1=81=D1=81=D0=B8=D1=8F, =D0=9C=D0=BE=D1=81=D0=BA=D0=B2=D0= =B0 http://mbsd.msk.ru >>> >>> -------------------------------------------------------------------- >>> If the facts don't fit the theory, change the facts. -- A. Einstein >>> -------------------------------------------------------------------- >>> PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 >> >> - --- @(#) $Id: dot.signature,v 1.14 2004/02/03 02:46:26 pirzyk Exp $ >> __o pirzyk@uiuc.edu --------------------------- jim@pirzyk.org >> _'\<,_ Systems Management Group, CITES >> (*)/ (*) University of Illinois at Urbana-Champaign >> >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.2.2 (Darwin) >> >> iD8DBQFE9Ldt2EYx0U4j2soRAqOuAKCvKD+CRApzfeqKBKY8eiGg5z4c4ACeIvPr >> dW1Ds53PO5/ErgY3khMcTVA=3D >> =3DcU/H >> -----END PGP SIGNATURE----- >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-=20 >> unsubscribe@freebsd.org" - --- @(#) $Id: dot.signature,v 1.14 2004/02/03 02:46:26 pirzyk Exp $ __o pirzyk@uiuc.edu --------------------------- jim@pirzyk.org _'\<,_ Systems Management Group, CITES (*)/ (*) University of Illinois at Urbana-Champaign -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFE9aEI2EYx0U4j2soRAkcIAJ9sn43WYIiacTmcdo8Epjb5n70DQgCdEaV5 eIxiuRSjZw4ZTcaSQ0e2lkQ=3D =3DyIVL -----END PGP SIGNATURE-----