X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 4FFA5DC0186 for ; Wed, 23 Jul 2014 04:01:47 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id lf10so878210pab.2 for ; Tue, 22 Jul 2014 21:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=lvn+Ezx/EAzpkfnpZEyqGM/ioGtTyVSvF92S8ja5UK4=; b=P0DObH0+WS3gQh0+lJb4XtjD1PG80GTViYXA3taQW9dJTqm+rgEiIciuyrA1s3pPiw QX3/rHPbsVEmp8+XHjmyVb5U2DJ0wOQ8hPOeUuTfIGzpI7E0WYL9TmJOrtojcnxsVXDT gpkxc7L89uaZ/A2vNTXAtfCp5qutycw9YftO8NBdwkiAFX1JOvpJOJ+7Bfxg8P9vHz5Z ylsI9qpWqDm24jBUdZ4xeyj0VJJ+liVUVjbuhJx+iKTi35KRko5oI7RL35kSeVxH0s8g uxOkfyzidCPV6rJFprWYZ4xTIi7ur0UqQLJy275NQAYg4fzL6cootFWqASdCuxfLQ/JP YAow== X-Received: by 10.68.94.225 with SMTP id df1mr28276056pbb.86.1406088106500; Tue, 22 Jul 2014 21:01:46 -0700 (PDT) Received: from newbook ([50.0.224.39]) by mx.google.com with ESMTPSA id dk1sm1173943pdb.20.2014.07.22.21.01.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jul 2014 21:01:45 -0700 (PDT) Date: Tue, 22 Jul 2014 21:01:42 -0700 From: Isaac Dunham To: Natanael Copa Cc: William Pitcock , alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] testing/sword: add new package Message-ID: <20140723040141.GA3905@newbook> References: <1405457044-3186-1-git-send-email-ibid.ag@gmail.com> <20140715162818.0f5adca9@ncopa-desktop.alpinelinux.org> <20140716212248.GA1780@newbook> <20140722142728.6a7efbbe@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140722142728.6a7efbbe@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) On Tue, Jul 22, 2014 at 02:27:28PM +0200, Natanael Copa wrote: > On Wed, 16 Jul 2014 14:22:49 -0700 > Isaac Dunham wrote: > > installmgr installs "modules" to a configured location. > > This location is set by DataPath and extended by AddDataPath in the > > [INSTALL] section. > > /etc/sword.conf points it at /usr/share/sword; this is not writeable. > > I'm not aware of any way to point it at a sane default that everyone can use. > > If there are NO config files, it will look for ~/.sword/mods.d, and install > > into ~/.sword/modules. > > > > installmgr won't work right unless it can find mods.conf or a writeable > > mods.d directory in the DataPath. > > If it can figure out where it /should/ put modules, it will run, > > downloading the modules to a per-repository location. > > Then it will move them into location or silently delete them. > > > > Now I need to figure out what's the right fix. > > I guess installmgr should error out if it can't write somewhere. > > Debian's approach is to require at least one package containing a > > SWORD module. > > How about using /var/lib/sword as default and have a > 'sword' group with write permissions there? > > They you can just add your users to the sword group to be able to > install the data files. > That should work. One question/minor issue: abuild warns about chown in the post-install script. But it would seem that there's no other sane way to make sure that /var/lib/sword belongs to the "sword" group: to make it belong to root:sword in the package, this group must exist when the package is built and when it is extracted. I presume pre-install could do the latter, but manipulating groups in a build script is insanity. If I can ignore that warning (assuming it belongs in abuild), I have a script ready to go. What's the preferred approach? Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---