community/distcc to 3.2rc1-3

This commit is contained in:
Kevin Mihelich 2018-01-10 13:45:42 +00:00
parent 3b9c0805fb
commit ff1ea73630
3 changed files with 37 additions and 35 deletions

View file

@ -1,6 +1,7 @@
# $Id: PKGBUILD 57046 2011-10-19 10:30:08Z spupykin $ # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Maintainer: Judd Vinet <jvinet@zeroflux.org> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Giovanni Scafora <giovanni@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
@ -10,34 +11,37 @@
pkgname=distcc pkgname=distcc
pkgver=3.2rc1 pkgver=3.2rc1
pkgrel=2 pkgrel=3
pkgdesc="A distributed C, C++, Obj C compiler" pkgdesc='Distributed C, C++ and Objective-C compiler'
arch=('i686' 'x86_64') arch=('x86_64')
url="https://github.com/distcc/distcc" url='https://github.com/distcc/distcc'
license=('GPL') license=('GPL')
depends=('gcc' 'popt') depends=('popt')
makedepends=('gtk2' 'pkgconfig' 'python2') makedepends=('gtk2' 'python2')
optdepends=('python2') optdepends=('python2')
backup=('etc/conf.d/distccd' backup=('etc/conf.d/distccd'
'etc/distcc/hosts') 'etc/distcc/hosts')
source=(http://distcc.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
distccd.conf.d distccd.conf.d
distccd.service distccd.service
allow-zero-timeout.patch) allow-zero-timeout.patch)
md5sums=('18cd4f33f5cfc3e75675cafc568fb9cf' sha256sums=('33e85981ff6afd94efc38b23b2d8b9036b3dff2dc6eac6982b9ff0ae1de64caa'
'239aae53250e3e35288cba566bc0bbf1' '43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
'09f0688da9c1840e518d2593bd5c3830' '0f18ffb58647eeba643f28e9029a5d307100df3470eb228097f2b3f4196d8098'
'6d6abde46f321355eb0eaafc03c2ad1d') '73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
prepare() { prepare() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../allow-zero-timeout.patch patch -p1 -i ../allow-zero-timeout.patch
./autogen.sh
} }
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "$srcdir/$pkgname-$pkgver"
[ -f Makefile ] || PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ [ -f Makefile ] || PYTHON=/usr/bin/python2 \
./configure \
--prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--enable-rfc2553 \ --enable-rfc2553 \
@ -46,22 +50,18 @@ build() {
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python2 make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python2
} }
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
# make TEST_PYTHON=/usr/bin/python2 check
}
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="${pkgdir}/" INCLUDESERVER_PYTHON=/usr/bin/python2 install
install -D -m644 ${srcdir}/distccd.conf.d ${pkgdir}/etc/conf.d/distccd
install -d ${pkgdir}/usr/lib/${pkgname}/bin make DESTDIR="$pkgdir" INCLUDESERVER_PYTHON=/usr/bin/python2 install
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/cc
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/gcc
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/g++
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/c++
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/cpp
install -Dm0644 $srcdir/distccd.service $pkgdir/usr/lib/systemd/system/distccd.service install -d "$pkgdir/usr/lib/$pkgname/bin"
for bin in cc gcc g++ c++ cpp; do
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
done
install -Dm644 "$srcdir/distccd.conf.d" "$pkgdir/etc/conf.d/distccd"
install -Dm644 "$srcdir/distccd.service" "$pkgdir/usr/lib/systemd/system/distccd.service"
} }
# vim:set ts=2 sw=2 et:

View file

@ -4,4 +4,6 @@
# You must explicitly add IPs (or subnets) that are allowed to connect, # You must explicitly add IPs (or subnets) that are allowed to connect,
# using the --allow switch. See the distccd manpage for more info. # using the --allow switch. See the distccd manpage for more info.
# #
DISTCC_ARGS="--allow 127.0.0.1" DISTCC_ARGS="--allow 127.0.0.1"
#DISTCC_ARGS="--allow 192.168.0.0/24 --log-level error --log-file /tmp/distccd.log"

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=A distributed C/C++ compiler Description=Distributed C, C++ and Objective-C compiler
Documentation=man:distccd(1) Documentation=man:distccd(1)
After=network.target After=network.target