Modify first attempts to allow installaton on a Mac

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-05-06 11:23:14 -07:00
parent 2ab9cc3c58
commit c7af716920
2 changed files with 12 additions and 4 deletions

View File

@ -112,6 +112,7 @@ CYGWIN=
MAC=
SPARSE=
MANDIR=${MANDIR:-"/usr/share/man"}
INSTALLD='-D'
case $(uname) in
CYGWIN*)
@ -135,6 +136,7 @@ case $(uname) in
[ -z "$GROUP" ] && GROUP=wheel
MAC=Yes
SPARSE=Yes
INSTALLD=
;;
*)
[ -z "$OWNER" ] && OWNER=root
@ -834,15 +836,17 @@ fi
cd manpages
[ -n "$INSTALLD" ] || mkdir -p ${PREFIX}${MANDIR}/man5/ ${PREFIX}${MANDIR}/man8/
for f in *.5; do
gzip -c $f > $f.gz
run_install -D -m 0644 $f.gz ${PREFIX}${MANDIR}/man5/$f.gz
run_install $INSTALLD -m 0644 $f.gz ${PREFIX}${MANDIR}/man5/$f.gz
echo "Man page $f.gz installed to ${PREFIX}${MANDIR}/man5/$f.gz"
done
for f in *.8; do
gzip -c $f > $f.gz
run_install -D -m 0644 $f.gz ${PREFIX}${MANDIR}/man8/$f.gz
run_install $INSTALLD -m 0644 $f.gz ${PREFIX}${MANDIR}/man8/$f.gz
echo "Man page $f.gz installed to ${PREFIX}${MANDIR}/man8/$f.gz"
done

View File

@ -112,6 +112,7 @@ CYGWIN=
MAC=
MANDIR=${MANDIR:-"/usr/share/man"}
SPARSE=
INSTALLD='-D'
case $(uname) in
CYGWIN*)
@ -135,6 +136,7 @@ case $(uname) in
[ -z "$GROUP" ] && GROUP=wheel
MAC=Yes
SPARSE=Yes
INSTALLD=
;;
*)
[ -z "$OWNER" ] && OWNER=root
@ -693,15 +695,17 @@ fi
cd manpages
[ -n "$INSTALLD" ] || mkdir -p ${PREFIX}${MANDIR}/man5/ ${PREFIX}${MANDIR}/man8/
for f in *.5; do
gzip -c $f > $f.gz
run_install -D -m 0644 $f.gz ${PREFIX}${MANDIR}/man5/$f.gz
run_install $INSTALLD -m 0644 $f.gz ${PREFIX}${MANDIR}/man5/$f.gz
echo "Man page $f.gz installed to ${PREFIX}${MANDIR}/man5/$f.gz"
done
for f in *.8; do
gzip -c $f > $f.gz
run_install -D -m 0644 $f.gz ${PREFIX}${MANDIR}/man8/$f.gz
run_install $INSTALLD -m 0644 $f.gz ${PREFIX}${MANDIR}/man8/$f.gz
echo "Man page $f.gz installed to ${PREFIX}${MANDIR}/man8/$f.gz"
done