abinfo "Building tcp-wrappers ..."
make linux

# No install method in Makefile, so have to place the files manually.
abinfo "Installing tcp-wrappers executable binary ..."
for bin in safe_finger tcpd tcpdchk tcpdmatch try-from; do
install -Dvm755 "$SRCDIR"/$bin -t \
    "$PKGDIR"/usr/bin/
done

abinfo "Installing tcp-wrappers library ..."
install -Dvm644 "$SRCDIR"/tcpd.h -t "$PKGDIR"/usr/include/
install -Dvm755 "$SRCDIR"/shared/libwrap.so.0.${PKGVER%.*} -t "$PKGDIR"/usr/lib/
ln -sv libwrap.so.0.${PKGVER%.*} "$PKGDIR"/usr/lib/libwrap.so.0
ln -sv libwrap.so.0 "$PKGDIR"/usr/lib/libwrap.so

abinfo "Installing tcp-wrappers manual ..."
for i in 3 5 8; do
    install -Dvm644 "$SRCDIR"/*.$i -t "$PKGDIR"/usr/share/man/man$i/
done
