From owner-freebsd-ports@FreeBSD.ORG Sun Dec 21 01:29:33 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DF7BB9A for ; Sun, 21 Dec 2014 01:29:33 +0000 (UTC) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "nyi.unixathome.org", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E6B911FA for ; Sun, 21 Dec 2014 01:29:32 +0000 (UTC) Received: from nyi.unixathome.org (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id B9F955084A; Sun, 21 Dec 2014 01:29:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by nyi.unixathome.org (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gMLMofxUrpn8; Sun, 21 Dec 2014 01:29:21 +0000 (UTC) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 5F0C350823 ; Sun, 21 Dec 2014 01:29:21 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: removing a dir, regardless of content From: Dan Langille In-Reply-To: <20141221010433.GA61634@spectrum.skysmurf.nl> Date: Sat, 20 Dec 2014 20:29:18 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <355B8A8B-1224-4D09-9516-AEF4AAA7F2FE@langille.org> <20141220234656.GA60854@spectrum.skysmurf.nl> <067E9547-B8B1-4671-8041-203F701062AA@langille.org> <20141221010433.GA61634@spectrum.skysmurf.nl> To: "A.J. 'Fonz' van Werven" X-Mailer: Apple Mail (2.1993) Cc: ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2014 01:29:33 -0000 > On Dec 20, 2014, at 8:04 PM, A.J. 'Fonz' van Werven = wrote: >=20 > Dan Langille wrote: >=20 >>> 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. >>=20 >> Is this what you mean? >>=20 >> $ grep PLIST_SUB Makefile >> PLIST_SUB=3D WWWOWN=3D${WWWOWN} WWWGRP=3D${WWWGRP} BASE=3D${BASE} >=20 > Yes. And it seems to be okay, but if I'm not mistaken pkg-plist must = also > be added to SUB_FILES. >=20 > 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@empty ~]$ sudo touch = /usr/local/www/bacula-web/application/view/cache/things [dan@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@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@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 =E2=80=94=20 Dan Langille http://langille.org/