Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2005 20:07:24 +0100
From:      Florent Thoumie <flz@xbsd.org>
To:        Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: @unexec equivalent in Makefile ?
Message-ID:  <421399EC.7090904@xbsd.org>
In-Reply-To: <20050216204814.164a794b@it.buh.cameradicommercio.ro>
References:  <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> <200502161918.43275.michaelnottebrock@gmx.net> <20050216204814.164a794b@it.buh.cameradicommercio.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?421399EC.7090904>