X-Original-To: alpine-aports@lists.alpinelinux.org Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lists.alpinelinux.org (Postfix) with ESMTP id 9BE4BF831BA for ; Sun, 5 May 2019 09:41:42 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1366921FED; Sun, 5 May 2019 05:41:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 05 May 2019 05:41:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=VkwV4BnQKVIGBnyDV9W2QVqCxX afZuubKLDIBC21JXU=; b=cG8AbItgrT/deyAc1MxhAKraeZdmjBUZIkqUcQKGjO z8nAhehMR9QMtIai6phFAa9FmIcCzDmWne2YH+rPtXrOwQCQDezIIlriVul5InKb xwPxCc/fCUJCWtnFmbo2LoUgMU/GVTNIGhs3jkfykNSQRt7QG7G2rDY6hinjJL7l z0oIvpajbAkyyXDg0ZmYp4xTkh3QTLnLAJ2d4o4T3Jh3g3AlY+Q8HXqNf5Ruxlp2 PdPpx0GhHou2f2/quO1HfQ8anGSwsgMuxpoDd+feqGDPF9+Eg3jal79WBXgiZ3M5 IiU2atv6ngPXtc9tvUp4xxogWWLcS9qTgfzI5Oy32UDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=VkwV4BnQKVIGBnyDV 9W2QVqCxXafZuubKLDIBC21JXU=; b=bNjBf48At5mMQtrnY1ue7+ABKRiKEh0hc ikLNcBncTiZrOsgS8xvNmL+RRiONft4lnXfh5pXASsuJlYiBqJwE81glc++c6W5l vHmnG0yVZS3u004xbLlQlu840bylx3QG9bxC4SLEAMvudxzW1OkhYen5HOODbPaX 4Lc1SApmsIAEpCIg0l9sQ2nr4j18KkmkgWeRvzp4gU49DUZzHsEYi57q/BTZPnAm sJOgjcQvFDKqldHN+hfGk3iY+Y0KcVOJd+p5P+gzzOgrA5+JUZDKHR8ca1f53a+q /2sGuNCbMbPwusctERauXRBckq9oqbmBw0qH6GJUSbdnYrbmL0dMA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjeehgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefrrghulhcuuehrvggusghurhihuceosghrvggsshesshgvnhhtrdgt ohhmqeenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucfkphepkedtrd eguddrudegtddruddtkeenucfrrghrrghmpehmrghilhhfrhhomhepsghrvggsshesshgv nhhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from brebsc.lan (host-80-41-140-108.as13285.net [80.41.140.108]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E9ABE424F for ; Sun, 5 May 2019 05:41:41 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=brebsc.lan) by brebsc.lan with esmtp (Exim 4.92) (envelope-from ) id 1hNDeM-0001CE-8G; Sun, 05 May 2019 10:41:38 +0100 From: Paul Bredbury To: alpine-aports@lists.alpinelinux.org Cc: Paul Bredbury Subject: [alpine-aports] [PATCH] main/polkit: add user/group in pre-upgrade also Date: Sun, 5 May 2019 10:41:33 +0100 Message-Id: <20190505094133.4553-1-brebs@sent.com> X-Mailer: git-send-email 2.21.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ... to prevent e.g. mate-panel from failing to start, for users who are *upgrading* polkit. As done in the s6 package. Is an ugly file duplication, but the package manager does not currently support a more elegant method. --- main/polkit/APKBUILD | 4 ++-- main/polkit/polkit.pre-upgrade | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 main/polkit/polkit.pre-upgrade diff --git a/main/polkit/APKBUILD b/main/polkit/APKBUILD index d7a19d5a97..f97514ba6f 100644 --- a/main/polkit/APKBUILD +++ b/main/polkit/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=polkit pkgver=0.115 -pkgrel=0 +pkgrel=1 pkgdesc="Application development toolkit for controlling system-wide privileges" url="https://www.freedesktop.org/wiki/Software/polkit/" arch="all !armhf !armv7 !sx390" # limited by mozjs60 @@ -19,7 +19,7 @@ source="https://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar. mozjs60-2.patch alpine-pam.patch " -install="polkit.pre-install" +install="polkit.pre-install polkit.pre-upgrade" pkgusers="polkitd" pkggroups="polkitd" diff --git a/main/polkit/polkit.pre-upgrade b/main/polkit/polkit.pre-upgrade new file mode 100644 index 0000000000..7c4e3eff88 --- /dev/null +++ b/main/polkit/polkit.pre-upgrade @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S polkitd 2>/dev/null +adduser -S -D -H -h /var/empty -s /sbin/nologin -G polkitd -g polkitd polkitd 2>/dev/null + +exit 0 -- 2.21.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---