Date: Wed, 16 Feb 2005 20:48:14 +0200 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Michael Nottebrock <michaelnottebrock@gmx.net> Cc: Florent Thoumie <flz@xbsd.org> Subject: Re: @unexec equivalent in Makefile ? Message-ID: <20050216204814.164a794b@it.buh.cameradicommercio.ro> In-Reply-To: <200502161918.43275.michaelnottebrock@gmx.net> References: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> <200502161918.43275.michaelnottebrock@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Feb 2005 19:18:39 +0100 Michael Nottebrock <michaelnottebrock@gmx.net> wrote: > On Wednesday, 16. February 2005 14:42, 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. > > There's no prize to be won for saving one inode (and some people actually are > getting rather agitated over missing pkg-plist files, too), so why not just > use it. Learning exercise, but I will use a the plist file in the end. But maybe someone could explain this to me: Makefile snip: ....... PORTNAME?= sbl-server _BIN_NAME= ${PORTNAME:S/-/_/} ........ PLIST_FILES= bin/${_BIN_NAME} etc/${_BIN_NAME}.conf.sample PLIST_FILES+= "@unexec if cmp -s %D/etc/${_BIN_NAME}.conf %D/etc/${_BIN_NAME}.conf.sample; then rm -f %D/etc/${_BIN_NAME}.conf; fi" PORTDOCS= CHANGE README RELEASE.NOTES ....... # 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 ? Q2: Why doesn't it remove etc/sbl_server.conf ? Thanks, -- IOnut Unregistered ;) FreeBSD "user"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050216204814.164a794b>