~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-devel] [PATCH] testing/sword: add sword group for installing modules systemwide.

Isaac Dunham <ibid.ag@gmail.com>
Details
Message ID
<1406120754-21228-1-git-send-email-ibid.ag@gmail.com>
Sender timestamp
1406120754
DKIM signature
missing
Download raw message
Patch: +12 -2
installmgr was trying to install into /usr/share/sword without permissions,
resulting in great confusion.
This change lets all members of the 'sword' group install modules systemwide.
---
 testing/sword/APKBUILD          | 11 +++++++++--
 testing/sword/sword.pre-install |  3 +++
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100755 testing/sword/sword.pre-install

diff --git a/testing/sword/APKBUILD b/testing/sword/APKBUILD
index 468fae2..10611e6 100644
--- a/testing/sword/APKBUILD
+++ b/testing/sword/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=sword
pkgver=1.7.3
pkgrel=0
pkgrel=1
pkgdesc="Library for free Bible software"
url="http://www.crosswire.org/sword/"
arch="all"
@@ -18,7 +18,8 @@ depends=""
# curl-dev is needed for standard packages.
depends_dev="zlib-dev icu-dev curl-dev clucene-dev"
makedepends="$depends_dev"
install=""
pkggroups="sword"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-utils"
source="http://www.crosswire.org/ftpmirror/pub/sword/source/v1.7/sword-$pkgver.tar.gz
	00-fflush.patch
@@ -55,6 +56,12 @@ build() {
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p -m775 "$pkgdir/var/lib/sword/modules"  && \
	mv "$pkgdir/usr/share/sword/mods.d" "$pkgdir/var/lib/sword/" && \
	chown root:sword "$pkgdir"/var/lib/sword/mod*		&& \
	chmod -R 0775 "$pkgdir/var/lib/sword/mods.d"  	&& \
	sed -e 's|\(DataPath=\).*|\1/var/lib/sword/|g' 	   \
	-i "$pkgdir/etc/sword.conf" || return 1
	rm -f "$pkgdir"/usr/lib/*.la
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	for i in INSTALL README ChangeLog; do
diff --git a/testing/sword/sword.pre-install b/testing/sword/sword.pre-install
new file mode 100755
index 0000000..0ab0d71
--- /dev/null
+++ b/testing/sword/sword.pre-install
@@ -0,0 +1,3 @@
#!/bin/sh
echo "Adding 'sword' group for installing SWORD modules systemwide"
addgroup sword 2>/dev/null >&2 || true
-- 
2.0.2



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20140724160816.5e001680@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1406120754-21228-1-git-send-email-ibid.ag@gmail.com> (view parent)
Sender timestamp
1406210896
DKIM signature
missing
Download raw message
On Wed, 23 Jul 2014 06:05:54 -0700
Isaac Dunham <ibid.ag@gmail.com> wrote:

> installmgr was trying to install into /usr/share/sword without permissions,
> resulting in great confusion.
> This change lets all members of the 'sword' group install modules systemwide.

applied. thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)