community/distcc to 3.3.3-6

This commit is contained in:
Kevin Mihelich 2020-09-07 20:58:08 +00:00
parent ab6b233e83
commit 7357a2029f
3 changed files with 19 additions and 10 deletions

View file

@ -1,8 +1,8 @@
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: John <graysky@archlinux.us>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: John <graysky@archlinux.us>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added --without-avahi to configure
@ -11,7 +11,7 @@
pkgname=distcc
pkgver=3.3.3
pkgrel=5
pkgrel=6
pkgdesc='Distributed compilation service for C, C++ and Objective-C'
arch=(x86_64)
url='https://github.com/distcc/distcc'
@ -19,16 +19,19 @@ license=(GPL)
depends=(popt)
makedepends=(git python)
optdepends=(python)
backup=('etc/conf.d/distccd'
'etc/distcc/hosts')
backup=(etc/conf.d/distccd
etc/distcc/hosts)
source=("git+$url#commit=4cde9bcfbda589abd842e3bbc652ce369085eaae" # tag: v3.3.3
'distccd.conf.d'
'distccd.service'
distccd.conf.d
distccd.service
sysusers.conf
allow-zero-timeout.patch)
sha256sums=('SKIP'
'43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
'6d46844f0bebd56541e1a233f9f02a51cc17885120e832bfb37711217403d32f'
'360493245590d8c1480ff93cd30c9e81cb86efebacd78e45f37e7d6cdbcc2136'
'4e037a6225f498b51d6902d117be979454ac78ec5fd2f65f1d5a38e10859612a'
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
prepare() {
cd "$pkgname"
@ -44,10 +47,11 @@ prepare() {
build() {
cd "$pkgname"
export CFLAGS+=' -fcommon'
./configure \
--prefix=/usr \
--enable-rfc2553 \
--mandir=/usr/share/man \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--without-avahi
@ -80,6 +84,9 @@ package() {
# Needed for makepkg to work
ln -sf "../../../bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
done
# FS#67629
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/distccd.conf"
}
# getver: distcc.org

View file

@ -1,10 +1,10 @@
[Unit]
Description=Distributed compilation server for C, C++ and Objective-C
Description=Distributed C, C++ and Objective-C compiler
Documentation=man:distccd(1)
After=network.target
[Service]
User=nobody
User=distcc
EnvironmentFile=/etc/conf.d/distccd
ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS

View file

@ -0,0 +1,2 @@
g distcc - -
u distcc - "distcc user" /usr/bin/nologin