[arch-commits] Commit in distcc/repos (5 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:38:48 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:38:48
  Author: felixonmars
Revision: 752743

archrelease: copy trunk to community-staging-x86_64

Added:
  distcc/repos/community-staging-x86_64/
  distcc/repos/community-staging-x86_64/PKGBUILD
    (from rev 752740, distcc/trunk/PKGBUILD)
  distcc/repos/community-staging-x86_64/distccd.conf.d
    (from rev 752740, distcc/trunk/distccd.conf.d)
  distcc/repos/community-staging-x86_64/distccd.service
    (from rev 752740, distcc/trunk/distccd.service)
  distcc/repos/community-staging-x86_64/sysusers.conf
    (from rev 752740, distcc/trunk/sysusers.conf)

-----------------+
 PKGBUILD        |   86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 distccd.conf.d  |    9 +++++
 distccd.service |   12 +++++++
 sysusers.conf   |    2 +
 4 files changed, 109 insertions(+)

Copied: distcc/repos/community-staging-x86_64/PKGBUILD (from rev 752740, distcc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:38:48 UTC (rev 752743)
@@ -0,0 +1,86 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: John <graysky at archlinux.us>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Judd Vinet <jvinet at zeroflux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+
+pkgname=distcc
+pkgver=3.3.3
+pkgrel=7
+pkgdesc='Distributed compilation service for C, C++ and Objective-C'
+arch=(x86_64)
+url='https://github.com/distcc/distcc'
+license=(GPL)
+depends=(avahi popt python)
+makedepends=(git gtk2 setconf)
+optdepends=('gtk2: for distccmon-gnome')
+backup=(etc/conf.d/distccd
+        etc/distcc/hosts)
+source=("git+$url#commit=4cde9bcfbda589abd842e3bbc652ce369085eaae" # tag: v3.3.3
+        distccd.conf.d
+        distccd.service
+        sysusers.conf)
+sha256sums=('SKIP'
+            '43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
+            '360493245590d8c1480ff93cd30c9e81cb86efebacd78e45f37e7d6cdbcc2136'
+            '4e037a6225f498b51d6902d117be979454ac78ec5fd2f65f1d5a38e10859612a')
+
+prepare() {
+  cd "$pkgname"
+
+  ./autogen.sh
+  setconf gnome/distccmon-gnome.desktop Name 'DistCC Monitor'
+  sed -i 's/ install-gnome-data//g' Makefile.in
+
+  # FS#66418, support Python 3.9
+  find . -name "*.py" -type f -exec sed -i 's/time.clock()/time.perf_counter()/g' {} \;
+}
+
+build() {
+  cd "$pkgname"
+
+  export CFLAGS+=' -fcommon'
+  ./configure \
+    --enable-rfc2553 \
+    --mandir=/usr/share/man \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --with-gtk
+  make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python
+}
+
+package() {
+  make -C "$pkgname" \
+    DESTDIR="$pkgdir" \
+    INCLUDESERVER_PYTHON=/usr/bin/python \
+    install
+
+  # Configuration
+  install -Dm644 distccd.conf.d "$pkgdir/etc/conf.d/distccd"
+  install -Dm644 distccd.service \
+    "$pkgdir/usr/lib/systemd/system/distccd.service"
+
+  # Desktop shortcut
+  install -Dm644 "$pkgname/gnome/distccmon-gnome-icon.png" \
+    "$pkgdir/usr/share/pixmaps/distccmon-gnome-icon.png"
+  install -Dm644 "$pkgname/gnome/distccmon-gnome.desktop" \
+    "$pkgdir/usr/share/applications/distccmon-gnome.desktop"
+
+  # Symlinks
+  _targets=(c++ c89 c99 cc clang clang++ cpp g++ gcc x86_64-pc-linux-gnu-g++
+            x86_64-pc-linux-gnu-gcc x86_64-pc-linux-gnu-gcc-9.2.0)
+  install -d "$pkgdir/usr/lib/$pkgname/bin"
+  for bin in "${_targets[@]}"; do
+    # For whitelist since version 3.3, see FS#57978
+    ln -sf "../../bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$bin"
+    # 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
+# vim: ts=2 sw=2 et:

Copied: distcc/repos/community-staging-x86_64/distccd.conf.d (from rev 752740, distcc/trunk/distccd.conf.d)
===================================================================
--- community-staging-x86_64/distccd.conf.d	                        (rev 0)
+++ community-staging-x86_64/distccd.conf.d	2020-11-12 17:38:48 UTC (rev 752743)
@@ -0,0 +1,9 @@
+#
+# Parameters to be passed to distccd
+#
+# You must explicitly add IPs (or subnets) that are allowed to connect,
+# using the --allow switch.  See the distccd manpage for more info.
+#
+
+DISTCC_ARGS="--allow 127.0.0.1"
+#DISTCC_ARGS="--allow 192.168.0.0/24 --log-level error --log-file /tmp/distccd.log"

Copied: distcc/repos/community-staging-x86_64/distccd.service (from rev 752740, distcc/trunk/distccd.service)
===================================================================
--- community-staging-x86_64/distccd.service	                        (rev 0)
+++ community-staging-x86_64/distccd.service	2020-11-12 17:38:48 UTC (rev 752743)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Distributed C, C++ and Objective-C compiler
+Documentation=man:distccd(1)
+After=network.target
+
+[Service]
+User=distcc
+EnvironmentFile=/etc/conf.d/distccd
+ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS
+
+[Install]
+WantedBy=multi-user.target

Copied: distcc/repos/community-staging-x86_64/sysusers.conf (from rev 752740, distcc/trunk/sysusers.conf)
===================================================================
--- community-staging-x86_64/sysusers.conf	                        (rev 0)
+++ community-staging-x86_64/sysusers.conf	2020-11-12 17:38:48 UTC (rev 752743)
@@ -0,0 +1,2 @@
+g distcc - -
+u distcc - "distcc user" /usr/bin/nologin


More information about the arch-commits mailing list