community/distcc 3.1-11

This commit is contained in:
Kevin Mihelich 2013-05-13 14:47:26 +00:00
parent bdcf78609a
commit 708068c2a9
2 changed files with 1 additions and 42 deletions

View file

@ -10,7 +10,7 @@
pkgname=distcc
pkgver=3.1
pkgrel=10
pkgrel=11
pkgdesc="A distributed C, C++, Obj C compiler"
arch=('i686' 'x86_64')
url="http://code.google.com/p/distcc/"
@ -21,12 +21,10 @@ optdepends=('python2')
backup=('etc/conf.d/distccd'
'etc/distcc/hosts')
source=(http://distcc.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2
distccd
distccd.conf.d
distccd.service
alarm.patch)
md5sums=('a1a9d3853df7133669fffec2a9aab9f3'
'1c918474372c09304772c20c4de484fa'
'239aae53250e3e35288cba566bc0bbf1'
'09f0688da9c1840e518d2593bd5c3830'
'5cdf2b5be232a9da1d473e36dda978a0')
@ -52,7 +50,6 @@ package() {
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 -m755 ${srcdir}/distccd ${pkgdir}/etc/rc.d/distccd
install -d ${pkgdir}/usr/lib/${pkgname}/bin
ln -sf /usr/bin/${pkgname} ${pkgdir}/usr/lib/${pkgname}/bin/cc

View file

@ -1,38 +0,0 @@
#!/bin/bash
[ -f /etc/conf.d/distccd ] && . /etc/conf.d/distccd
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/bin/distccd`
case "$1" in
start)
stat_busy "Starting distcc Daemon"
[ -z "$PID" ] && /usr/bin/distccd --daemon ${DISTCC_ARGS}
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon distccd
stat_done
fi
;;
stop)
stat_busy "Stopping distcc Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon distccd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0