removing a dir, regardless of content
Dan Langille
dan at langille.org
Sun Dec 21 00:53:59 UTC 2014
> On Dec 20, 2014, at 6:46 PM, A.J. 'Fonz' van Werven <freebsd at skysmurf.nl> wrote:
>
> Dan Langille wrote:
>
>> A webapp, www/bacula-web puts cache files at
>> %%BASE%%/application/view/cache and on deinstall, that directory should
>> be removed, even though there are files there.
>>
>> Can that be done?
>>
>> I’ve tried this in pkg-plist:
>> @unexec rm -rf %%BASE%%/application/view/cache
>
> Just to be sure: did you remember to add BASE to PLIST_SUB in the
> Makefile? You probably did, but I figured I'd ask anyway.
Is this what you mean?
$ grep PLIST_SUB Makefile
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} BASE=${BASE}
—
Dan Langille
http://langille.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20141220/8cfd6c5d/attachment.sig>
More information about the freebsd-ports
mailing list