1. # Contributor: Nathan Owe <ndowens.aur at gmail dot com>
  2. # Updated by starfry
  3. pkgname=dcc
  4. pkgver=1.3.140
  5. pkgrel=1
  6. pkgdesc="Distributed Checksum Clearinghouse spam tool"
  7. url="http://www.rhyolite.com/anti-spam/dcc/"
  8. arch=('i686' 'x86_64')
  9. license="custom"
  10. depends=('sh')
  11. source=(http://www.rhyolite.com/anti-spam/dcc/source/old/$pkgname-$pkgver.tar.Z \
  12. http://www.rhyolite.com/dcc/LICENSE)
  13. md5sums=('ca00aa80ed2afd0f5182d3e61373291b'
  14. 'b88af7cf9c6a5c7ec47e8df22d2ffe69')
  15.  
  16.  
  17. build() {
  18. cd $srcdir/$pkgname-$pkgver
  19. ./configure --with-installroot=${pkgdir} \
  20. --mandir=/usr/share/man --homedir=/opt/dcc \
  21. --bindir=/usr/bin --libexecdir=/usr/lib/dcc
  22. make
  23. }
  24.  
  25. package() {
  26. cd $srcdir/$pkgname-$pkgver
  27. make DESTDIR=${pkgdir}/ install
  28. install -d $pkgdir/usr/share/licenses/$pkgname
  29. install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  30.  
  31. #Fix file permissions
  32. find $pkgdir/ -group bin -exec chgrp root {} \;
  33. find $pkgdir/ -user bin -exec chown root {} \;
  34. find $pkgdir/opt/dcc -type f -exec chmod 644 {} \;
  35. chmod 755 $pkgdir/opt/dcc/log
  36.  
  37.  
  38. }