From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 13:45:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6B0116A40B for ; Fri, 28 Apr 2006 13:45:22 +0000 (UTC) (envelope-from nospam@mgedv.net) Received: from mgedv.at (mail.mgedv.at [195.3.87.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15B3643D48 for ; Fri, 28 Apr 2006 13:45:21 +0000 (GMT) (envelope-from nospam@mgedv.net) Received: from metis (localhost [127.0.0.1]) by mgedv.at (SMTPServer) with ESMTP id 79C92186864 for ; Fri, 28 Apr 2006 15:45:15 +0200 (MEST) From: "No@SPAM@mgEDV.net" To: Date: Fri, 28 Apr 2006 15:45:18 +0200 Message-ID: <000001c66ac9$fd043540$dededede@avalon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcZqyfvo7h9IVvLzS+SfLYIJo4rpwQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: pkg_create: directory-permissions: bug or feature? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nospam@mgedv.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 13:45:23 -0000 hi, the packaging-system (pkg_create, pkg_add) uses the tar file format for creating/installing packages and some special files inside the tar. everything is really fine for me, except the handling of directories, especially if they're empty! these dir's never get installed! if they're not empty, their modes/owners are not being taken care of and they get installed with the values from the current user (mostly root) and the current umask. because of any packaging getting really weird, it does not make sense to issue hundreds of @mode or @exec chown commands inside the packing-list. also, i know it's possible to write install-scripts for everything which also changes the permissions after installing, but if the stage is setup correctly, why take care for this twice? can someone explain, why file-owners/modes, which are set inside the tarballs are being extracted correctly, and the directories not? br & cu...