MASTER

QEMU/KVM ARGUMENTS

/usr/bin/qemu-system-x86_64 -monitor stdio -smp 3 -cpu qemu64 -k de -enable-kvm 
-m 4096 -localtime -hda /home/michael/.aqemu/Arch_Linux_x86_64_HDA.img 
-boot once=c,menu=off -net nic,vlan=1,macaddr=52:54:00:5f:a9:1d,model=rtl8139 
-net user,vlan=1,hostname=archi -name "Arch Linux x86_64" -redir tcp:12222::22 
-redir tcp:13632::3632

/etc/makepkg.conf

BUILDENV=(fakeroot distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
DISTCC_HOSTS="192.168.55.11:13632"

SLAVE

mkdir -p ~/workspace/distccd-armv7h

cd ~/workspace/distccd-armv7h

nano PKGBUILD

noautobuild=1

_subarchs=(armv7h)
pkgbase='distccd-alarm'
pkgname=("${_subarchs[@]/#/$pkgbase-}")
pkgver=5.3.0
pkgrel=5
pkgdesc="An x-tools & distcc services package for Arch Linux ARM"
arch=('x86_64')
license=('GPL' )
url="http://archlinuxarm.org/developers/distcc-cross-compiling"
depends=('distcc')
options=('libtool' 'emptydirs' '!strip')
source=(http://archlinuxarm.org/builder/xtools/x-tools7h.tar.xz
        distccd-armv7h.conf
        distccd-armv7h.service
        )
md5sums=('dd899df445ce5306041807defdb3c9ce'
         '717a4bc07b1c7ad4461603a633e6a008'
         'e760b78b6d8c4d94ba1540ee0a9e33b9'
        )
_package_subarch() {
    # backup configs
    backup=("etc/conf.d/distccd-$1")
    # install symlink to distccd
    install -d "${pkgdir}/usr/bin"
    ln -sf /usr/bin/distccd "${pkgdir}/usr/bin/distccd-$1"
    # copy in toolchain
    install -d "${pkgdir}/usr/local/x-tools-$1"
    cp -ar "${srcdir}/$2" "${pkgdir}/usr/local/x-tools-$1"
    # install services
    install -Dm0644 "${srcdir}/distccd-$1.service" \
       "${pkgdir}/usr/lib/systemd/system/distccd-$1.service"
    # install config
    install -Dm0644 "${srcdir}/distccd-$1.conf" \
       "${pkgdir}/etc/conf.d/distccd-$1"
    
}

for i in "${!_subarchs[@]}"; do   
    _xtoolsdir="${source[i]##*/}"
    _xtoolsdir="${_xtoolsdir%%.*}"
    eval 'package_distccd-alarm-'${_subarchs[i]}'() {
        _package_subarch '${_subarchs[i]}' '${_xtoolsdir}'
    }'
done

makepkg

nano /etc/conf.d/distccd-armv7h.conf

/etc/conf.d/distccd-armv7h.conf

#
# 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.
#
PATH=/usr/local/x-tools-armv7h/x-tools7h/arm-unknown-linux-gnueabihf/bin:$PATH
DISTCC_ARGS="--user nobody --allow 192.168.55.0/24 --port 3632"

systemctl enable distccd-armv7h