From owner-freebsd-ports@FreeBSD.ORG Wed Feb 16 15:39:32 2005 Return-Path: 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 EA84916A4CE for ; Wed, 16 Feb 2005 15:39:32 +0000 (GMT) Received: from gate.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FCD543D3F for ; Wed, 16 Feb 2005 15:39:32 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by gate.xbsd.org (Postfix) with ESMTP id D8ED911827; Wed, 16 Feb 2005 16:40:05 +0100 (CET) Received: from gate.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32841-05; Wed, 16 Feb 2005 16:39:57 +0100 (CET) Received: from [192.168.20.107] (ALagny-109-1-26-45.w81-49.abo.wanadoo.fr [81.49.53.45]) by gate.xbsd.org (Postfix) with ESMTP id 3F53211421; Wed, 16 Feb 2005 16:39:56 +0100 (CET) Message-ID: <42136911.308@xbsd.org> Date: Wed, 16 Feb 2005 16:38:57 +0100 From: Florent Thoumie User-Agent: Mozilla Thunderbird 1.0 (X11/20050107) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ion-Mihai Tetcu References: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> In-Reply-To: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAD8599E2582B64C4234E534E" X-Virus-Scanned: amavisd-new at xbsd.org cc: ports@FreeBSD.ORG Subject: Re: @unexec equivalent in Makefile ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 15:39:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAD8599E2582B64C4234E534E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ion-Mihai Tetcu wrote: > Hi, > > > I have a port that installs 8 files (3 of them being PORTDOCS), so I > rather not use a pkg-plist file. But I need to remove a .conf file on > deinstall if it's identical to the distributed one, and I'm not aware of > a way to do it in the Makefile; we don't have pre|post-deinstall targets > and using a pkg-deinstall doesn't make sense just for this. Since make deinstall calls pkg_delete (which use the packing list) to remove files, your choices are (no preference order) : x use pkg-plist, x echo "@unexec ..." >> ${TMPPLIST} in your Makefile x use pkg-install with DEINSTALL target or pkg-deinstall x use PLIST_FILES= @unexec ... I don't see any other way to do what you want. -- Florent Thoumie flz@xbsd.org --------------enigAD8599E2582B64C4234E534E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCE2kWMxEkbVFH3PQRAjyyAJ9vDtrkKXSghc5VBZyfQRU+v58ZpQCfZ3XO 5UEPSmSmABON5ul5tG4N+EU= =QYKz -----END PGP SIGNATURE----- --------------enigAD8599E2582B64C4234E534E--