From 5ca6f376dbfcb2b42bd51fd43c61fbff8ff83c70 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 9 Mar 2011 18:30:36 +0000 Subject: testing/libgphoto2: create camera group --- testing/libgphoto2/APKBUILD | 4 ++-- testing/libgphoto2/libgphoto2.pre-install | 6 ++++++ testing/libgphoto2/libgphoto2.pre-upgrade | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 testing/libgphoto2/libgphoto2.pre-install create mode 120000 testing/libgphoto2/libgphoto2.pre-upgrade (limited to 'testing') diff --git a/testing/libgphoto2/APKBUILD b/testing/libgphoto2/APKBUILD index da6c6fc0aa..d33d2ba5d2 100644 --- a/testing/libgphoto2/APKBUILD +++ b/testing/libgphoto2/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=libgphoto2 pkgver=2.4.10.1 -pkgrel=0 +pkgrel=1 pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs." url="http://www.gphoto.org" arch="all" @@ -9,7 +9,7 @@ license="LGPL" depends="" depends_dev="libexif-dev libusb-compat-dev" makedepends="libexif-dev jpeg-dev libtool libusb-compat-dev libiconv-dev" -install= +install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2" diff --git a/testing/libgphoto2/libgphoto2.pre-install b/testing/libgphoto2/libgphoto2.pre-install new file mode 100644 index 0000000000..a7d31448b8 --- /dev/null +++ b/testing/libgphoto2/libgphoto2.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +if ! getent group camera >/dev/null; then + addgroup -S camera +fi + diff --git a/testing/libgphoto2/libgphoto2.pre-upgrade b/testing/libgphoto2/libgphoto2.pre-upgrade new file mode 120000 index 0000000000..ad0ee4f36d --- /dev/null +++ b/testing/libgphoto2/libgphoto2.pre-upgrade @@ -0,0 +1 @@ +libgphoto2.pre-upgrade \ No newline at end of file -- cgit v1.2.3