summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2019-07-27 07:07:12 -0400
committergraysky2019-07-27 07:07:12 -0400
commitdd66cdacd1ae2dc322bfeb6a4a809851f878d808 (patch)
tree78452a86ab593f282568b7fbe0dcc8048682b420
downloadaur-dd66cdacd1ae2dc322bfeb6a4a809851f878d808.tar.gz
initial commit
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD81
-rw-r--r--distccd.conf.d9
-rw-r--r--distccd.service12
4 files changed, 130 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dc746e021db
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = distcc-git
+ pkgdesc = Distributed C, C++ and Objective-C compiler, git version
+ pkgver = v3.2rc1.r225.g6fb446f
+ pkgrel = 1
+ url = http://distcc.org
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = gtk2
+ makedepends = python
+ makedepends = setconf
+ depends = avahi
+ depends = popt
+ optdepends = gtk2: for distccmon-gnome
+ optdepends = python
+ provides = distcc
+ conflicts = distcc
+ backup = etc/conf.d/distccd
+ backup = etc/distcc/hosts
+ source = git://github.com/distcc/distcc.git
+ source = distccd.conf.d
+ source = distccd.service
+ sha256sums = SKIP
+ sha256sums = 43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f
+ sha256sums = 0f18ffb58647eeba643f28e9029a5d307100df3470eb228097f2b3f4196d8098
+
+pkgname = distcc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..03e4227b6c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=distcc-git
+_pkgname=distcc
+pkgver=v3.2rc1.r225.g6fb446f
+pkgrel=1
+pkgdesc='Distributed C, C++ and Objective-C compiler, git version'
+arch=('x86_64')
+url='http://distcc.org'
+license=('GPL')
+depends=('avahi' 'popt')
+makedepends=('git' 'gtk2' 'python' 'setconf')
+optdepends=('gtk2: for distccmon-gnome' 'python')
+conflicts=(distcc)
+provides=(distcc)
+backup=('etc/conf.d/distccd'
+ 'etc/distcc/hosts')
+source=("git://github.com/distcc/distcc.git"
+ 'distccd.conf.d'
+ 'distccd.service')
+sha256sums=('SKIP'
+ '43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
+ '0f18ffb58647eeba643f28e9029a5d307100df3470eb228097f2b3f4196d8098')
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$_pkgname"
+
+ ./autogen.sh
+ setconf gnome/distccmon-gnome.desktop Name 'DistCC Monitor'
+ sed -i 's/ install-gnome-data//g' Makefile.in
+}
+
+build() {
+ cd "$_pkgname"
+
+ ./configure \
+ --prefix=/usr \
+ --enable-rfc2553 \
+ --mandir=/usr/share/man \
+ --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
+ install -d "$pkgdir/usr/lib/$_pkgname/bin"
+ for bin in c++ cc cpp g++ gcc; do
+ ln -sf "/usr/bin/$_pkgname" "$pkgdir/usr/lib/$_pkgname/bin/$bin"
+ # Additional symlinks are needed, see FS#57978
+ ln -sf "/usr/bin/$_pkgname" "$pkgdir/usr/lib/$_pkgname/$bin"
+ done
+}
+
+# getver: distcc.org
+# vim: ts=2 sw=2 et:
diff --git a/distccd.conf.d b/distccd.conf.d
new file mode 100644
index 00000000000..a0365fecf35
--- /dev/null
+++ b/distccd.conf.d
@@ -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"
diff --git a/distccd.service b/distccd.service
new file mode 100644
index 00000000000..535ceecf4dc
--- /dev/null
+++ b/distccd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Distributed C, C++ and Objective-C compiler
+Documentation=man:distccd(1)
+After=network.target
+
+[Service]
+User=nobody
+EnvironmentFile=/etc/conf.d/distccd
+ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS
+
+[Install]
+WantedBy=multi-user.target