ports/net/netatalk3/pkg-install
Joe Marcus Clarke e04cb53f10 Truncate the trailing newlines.
This syncs the README files that are produced during pkg-install with those installed from source.
This prevents a checksum issue.

Reported by:	vova@fbsd.ru
2019-10-13 16:09:08 +00:00

14 lines
306 B
Bash

#!/bin/sh
#
PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin
DBDIR=/var/netatalk
case $2 in
POST-INSTALL)
tee $DBDIR/README > $DBDIR/CNID/README <<-'EOF'
This directory contains modifiable Netatalk configuration files and the CNID databases.
EOF
truncate -s -1 $DBDIR/README $DBDIR/CNID/README
;;
esac