From owner-freebsd-ports@FreeBSD.ORG Wed Feb 16 19:07:44 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 EDF6416A4CE for ; Wed, 16 Feb 2005 19:07:44 +0000 (GMT) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B08743D3F for ; Wed, 16 Feb 2005 19:07:42 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id D87F01162D; Wed, 16 Feb 2005 20:08:31 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 37051-07; Wed, 16 Feb 2005 20:08:18 +0100 (CET) Received: from [192.168.42.3] (innercity.xbsd.org [192.168.42.3]) by smtp.xbsd.org (Postfix) with ESMTP id 958DA11628; Wed, 16 Feb 2005 20:08:17 +0100 (CET) Message-ID: <421399EC.7090904@xbsd.org> Date: Wed, 16 Feb 2005 20:07:24 +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> <200502161918.43275.michaelnottebrock@gmx.net> <20050216204814.164a794b@it.buh.cameradicommercio.ro> In-Reply-To: <20050216204814.164a794b@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="------------enig214E45EC52EF939E48A646C4" X-Virus-Scanned: amavisd-new at xbsd.org cc: freebsd-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 19:07:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig214E45EC52EF939E48A646C4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ion-Mihai Tetcu wrote: > # cat work/.PLIST.mktmp > bin/sbl_server > etc/sbl_server.conf.sample > @unexec if cmp -s %D/etc/sbl_server.conf %D/etc/sbl_server.conf.sample; then rm -f %D/etc/sbl_server.conf; fi > @unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi > @unexec rmdir %D/info 2> /dev/null || true > share/doc/sbl-server/CHANGE > share/doc/sbl-server/README > share/doc/sbl-server/RELEASE.NOTES > @dirrm share/doc/sbl-server > @unexec rmdir %D 2> /dev/null || true > > Q1: Why the info stuff ? I'm not really into INFO but if I had to say, I'll tell add-plist-info lacks a .if defined(INFO) or something to only add this when needed. > Q2: Why doesn't it remove etc/sbl_server.conf ? Because when @unexec is executed, etc/sbl_server.conf.sample is already gone, so cmp will return 2. -- Florent Thoumie flz@xbsd.org --------------enig214E45EC52EF939E48A646C4 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 iD8DBQFCE5nsMxEkbVFH3PQRAoVcAJ9fRwBPWRs1cQLbxr2ZEm+jo4oNUwCfYjW7 6K0OVLtEWT1+SBCMFPi6tLU= =HM22 -----END PGP SIGNATURE----- --------------enig214E45EC52EF939E48A646C4--