Mail archive
alpine-aports

[alpine-aports] [PATCH 1/2] main/distcc: create distcc user in .pre-install script

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
Date: Fri, 20 Nov 2015 21:43:24 +0100

---
 main/distcc/APKBUILD           | 6 ++++--
 main/distcc/distcc.pre-install | 5 +++++
 2 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 main/distcc/distcc.pre-install
diff --git a/main/distcc/APKBUILD b/main/distcc/APKBUILD
index ea0198f..a685904 100644
--- a/main/distcc/APKBUILD
+++ b/main/distcc/APKBUILD
_at_@ -1,13 +1,15 @@
+# Contributor: Sören Tempel <soeren+alpine_at_soeren-tempel.net>
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=distcc
 pkgver=3.1
-pkgrel=9
+pkgrel=10
 pkgdesc="A distributed C, C++, Obj C compiler"
 url="http://distcc.org"
 arch="all"
 license="GPL2"
-depends=
+depends=""
 makedepends="popt-dev python-dev"
+install="$pkgname.pre-install"
 source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2
 	distcc-3.1-clone.patch
 	distcc-hardened.patch
diff --git a/main/distcc/distcc.pre-install b/main/distcc/distcc.pre-install
new file mode 100644
index 0000000..bd7fba2
--- /dev/null
+++ b/main/distcc/distcc.pre-install
_at_@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -S distcc 2>/dev/null
+adduser -H -h /dev/null -s /sbin/nologin -G distcc -D distcc 2>/dev/null
+exit 0
-- 
2.6.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Nov 20 2015 - 21:43:24 GMT