From owner-freebsd-ports@FreeBSD.ORG Sun Feb 6 09:20:57 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D2CE16A4CE for ; Sun, 6 Feb 2005 09:20:57 +0000 (GMT) Received: from chilled.skew.org (skew.org [65.101.207.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E061C43D48 for ; Sun, 6 Feb 2005 09:20:56 +0000 (GMT) (envelope-from mike@skew.org) Received: from chilled.skew.org (localhost.skew.org [127.0.0.1]) by chilled.skew.org (8.13.1/8.13.1) with ESMTP id j169Kv0b056756 for ; Sun, 6 Feb 2005 02:20:57 -0700 (MST) (envelope-from mike@chilled.skew.org) Received: (from mike@localhost) by chilled.skew.org (8.13.1/8.13.1/Submit) id j169KvTD056755 for freebsd-ports@freebsd.org; Sun, 6 Feb 2005 02:20:57 -0700 (MST) (envelope-from mike) From: Mike Brown Message-Id: <200502060920.j169KvTD056755@chilled.skew.org> To: freebsd-ports@freebsd.org Date: Sun, 6 Feb 2005 02:20:57 -0700 (MST) X-Whoa: whoa. X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Subject: empty dirs needed in package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 09:20:57 -0000 Hi again, My port creates some empty directories. They won't always be empty, if certain features of the software are used. I need installing from a pacakge to result in the creation of these directories. Apparently, 'make package' produces a package that has no idea that it needs to create these directories, since there is no way, AFAIK, to specify empty dirs in a pkg-plist. Since there are @dirrm entries for these directories in my pkg-plist, doing a 'make deinstall' after a 'pkg_add' results in complaints that the directories don't exist. What's the proper way to deal with this? Do I do something special to the pkg-plist? Do I use a custom +MTREE_DIRS somehow when making the package? Do I remove the @dirrm entries and put something in a post-deinstall target in the Makefile instead? Thanks, -Mike