1 # Contributor: Andreas W. Hauser <andy-aur@splashground.de>
5 pkgdesc="DragonFly BSD tool to mirror filesystems retaining permissions, flags, ownership, and utimes"
6 url="http://apollo.backplane.com/FreeBSDPorts/"
9 source=(http://apollo.backplane.com/FreeBSDPorts/cpdup-$pkgver.tar.gz)
12 cd $startdir/src/$pkgname
14 # The Makefile is a BSD Makefile, so don't use it.
15 export CFLAGS="$CFLAGS -D__unused= -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5 -DUSE_PTHREADS -pthread"
16 for f in fsmid.o hclink.o hcproto.o misc.o; do
19 export LDFLAGS="$LDFLAGS fsmid.o hclink.o hcproto.o misc.o"
20 make -f /dev/null cpdup
21 mkdir -p $startdir/pkg/usr/bin
22 install cpdup -m 755 $startdir/pkg/usr/bin/cpdup
23 mkdir -p $startdir/pkg/usr/share/man/man1
24 install -m 644 cpdup.1 $startdir/pkg/usr/share/man/man1
26 md5sums=('39854050225ad0fc8cdeea60e8b81e74')