diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-04-26 16:10:35 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-01 15:35:38 +0000 |
commit | 9c6c4d09686c4d43f34fc0cbaadc7eb8cfbad963 (patch) | |
tree | 7e21cfc835644aa3e2f28034837fe534f1816007 /community/colord | |
parent | 07527e9196c53c99c60e07f470dd5a8178c8de60 (diff) | |
download | aports-9c6c4d09686c4d43f34fc0cbaadc7eb8cfbad963.tar.bz2 aports-9c6c4d09686c4d43f34fc0cbaadc7eb8cfbad963.tar.xz |
community/colord: add colord user in pre-install
Diffstat (limited to 'community/colord')
-rw-r--r-- | community/colord/APKBUILD | 6 | ||||
-rw-r--r-- | community/colord/colord.pre-install | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/community/colord/APKBUILD b/community/colord/APKBUILD index 5794aa6985..5666a7dab8 100644 --- a/community/colord/APKBUILD +++ b/community/colord/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> pkgname=colord pkgver=1.4.4 -pkgrel=0 +pkgrel=1 pkgdesc="System daemon for managing color devices" url="http://www.freedesktop.org/software/colord" arch="all" @@ -15,11 +15,12 @@ makedepends="$depends_dev meson ninja intltool bash-completion libgusb-dev lcms2 subpackages="$pkgname-dev $pkgname-lang" source="https://www.freedesktop.org/software/colord/releases/colord-$pkgver.tar.xz disable-udev-hwdb-tests.patch" +install="colord.pre-install" builddir="$srcdir/$pkgname-$pkgver" build() { mkdir build && cd build - meson --prefix=/usr \ + meson --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -47,6 +48,7 @@ package() { cd build DESTDIR="$pkgdir" ninja install + chown -R colord:colord "$pkgdir"/var/lib/colord } sha512sums="0187a363c41ae5102dc3b454fcd84df83d71ac0dc32d88b33651edc1df15cbf1f47218caee3037c876e892613a2301226886a73b39759cfb709d0fef8e168628 colord-1.4.4.tar.xz diff --git a/community/colord/colord.pre-install b/community/colord/colord.pre-install new file mode 100644 index 0000000000..59b278adfa --- /dev/null +++ b/community/colord/colord.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S colord 2>/dev/null +adduser -S -D -h /var/lib/colord -s /sbin/nologin -G colord -g colord colord 2>/dev/null + +exit 0 |