main/distcc: create distcc user in .pre-install script

This commit is contained in:
Sören Tempel 2015-11-20 21:43:24 +01:00 committed by Natanael Copa
parent f13760e393
commit 4775c2ff35
2 changed files with 9 additions and 2 deletions

View File

@ -1,13 +1,15 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@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

View File

@ -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