removing a dir, regardless of content

Dan Langille dan at langille.org
Sun Dec 21 01:29:33 UTC 2014


> On Dec 20, 2014, at 8:04 PM, A.J. 'Fonz' van Werven <freebsd at skysmurf.nl> wrote:
> 
> Dan Langille wrote:
> 
>>> 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}
> 
> Yes. And it seems to be okay, but if I'm not mistaken pkg-plist must also
> be added to SUB_FILES.
> 
> I don't have this port installed, but can you say what actually happens
> when trying to uninstall it? If it is indeed a PLIST_SUB/SUB_FILES issue
> then surely there must be an error message of some kind.

There is no error.

After install:

$ ls -l /usr/local/www/bacula-web/application/view/cache
total 10
-r--r--r--  1 www  www  51 Jul 29 12:23 README



Add a file:

[dan at empty ~]$ sudo touch /usr/local/www/bacula-web/application/view/cache/things

[dan at empty ~]$ ls -l /usr/local/www/bacula-web/application/view/cache
total 10
-r--r--r--  1 www   www  51 Jul 29 12:23 README
-rw-r--r--  1 root  www   0 Dec 20 23:25 things

Delete the pkg:

[dan at empty ~]$ sudo pkg delete www/bacula-web
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	bacula-web-6.0.1_1

The operation will free 1 MB.

Proceed with deinstalling packages? [y/N]: y
[empty] [1/1] Deinstalling bacula-web-6.0.1_1...
[empty] [1/1] Deleting files for bacula-web-6.0.1_1: 100%

And our file is still there:


[dan at empty ~]$ ls -l /usr/local/www/bacula-web/application/view/cache
total 1
-rw-r--r--  1 root  www  0 Dec 20 23:25 things



— 
Dan Langille
http://langille.org/







More information about the freebsd-ports mailing list