mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
Make 'build' work on a Mac
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
db8092d71e
commit
f675513383
@ -111,6 +111,7 @@ SPARSE=
|
|||||||
MANDIR=${MANDIR:-"/usr/share/man"}
|
MANDIR=${MANDIR:-"/usr/share/man"}
|
||||||
[ -n "${LIBEXEC:=/usr/share}" ]
|
[ -n "${LIBEXEC:=/usr/share}" ]
|
||||||
[ -n "${PERLLIB:=/usr/share/shorewall}" ]
|
[ -n "${PERLLIB:=/usr/share/shorewall}" ]
|
||||||
|
MACHOST=
|
||||||
|
|
||||||
case "$LIBEXEC" in
|
case "$LIBEXEC" in
|
||||||
/*)
|
/*)
|
||||||
@ -152,6 +153,7 @@ case $(uname) in
|
|||||||
[ -z "$OWNER" ] && OWNER=root
|
[ -z "$OWNER" ] && OWNER=root
|
||||||
[ -z "$GROUP" ] && GROUP=wheel
|
[ -z "$GROUP" ] && GROUP=wheel
|
||||||
MAC=Yes
|
MAC=Yes
|
||||||
|
MACHOST=Yes
|
||||||
INSTALLD=
|
INSTALLD=
|
||||||
T=
|
T=
|
||||||
;;
|
;;
|
||||||
@ -280,12 +282,12 @@ if [ -z "$CYGWIN" ]; then
|
|||||||
install_file shorewall ${DESTDIR}/sbin/shorewall 0755
|
install_file shorewall ${DESTDIR}/sbin/shorewall 0755
|
||||||
echo "shorewall control program installed in ${DESTDIR}/sbin/shorewall"
|
echo "shorewall control program installed in ${DESTDIR}/sbin/shorewall"
|
||||||
|
|
||||||
if [ -z "$MAC" ]; then
|
if [ -z "$MACHOST" ]; then
|
||||||
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall
|
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall
|
||||||
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall
|
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall
|
||||||
else
|
else
|
||||||
eval sed -i -e \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall
|
eval sed -i \'\' -e \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall
|
||||||
eval sed -i -e \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall
|
eval sed -i \'\' -e \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
install_file shorewall ${DESTDIR}/bin/shorewall 0755
|
install_file shorewall ${DESTDIR}/bin/shorewall 0755
|
||||||
|
@ -110,6 +110,7 @@ ANNOTATED=
|
|||||||
DEBIAN=
|
DEBIAN=
|
||||||
CYGWIN=
|
CYGWIN=
|
||||||
MAC=
|
MAC=
|
||||||
|
MACHOST=
|
||||||
MANDIR=${MANDIR:-"/usr/share/man"}
|
MANDIR=${MANDIR:-"/usr/share/man"}
|
||||||
SPARSE=
|
SPARSE=
|
||||||
INSTALLD='-D'
|
INSTALLD='-D'
|
||||||
@ -154,6 +155,7 @@ case $(uname) in
|
|||||||
[ -z "$OWNER" ] && OWNER=root
|
[ -z "$OWNER" ] && OWNER=root
|
||||||
[ -z "$GROUP" ] && GROUP=wheel
|
[ -z "$GROUP" ] && GROUP=wheel
|
||||||
MAC=Yes
|
MAC=Yes
|
||||||
|
MACHOST=Yes
|
||||||
INSTALLD=
|
INSTALLD=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -272,12 +274,12 @@ fi
|
|||||||
|
|
||||||
if [ -z "$CYGWIN" ]; then
|
if [ -z "$CYGWIN" ]; then
|
||||||
install_file shorewall6 ${DESTDIR}/sbin/shorewall6 0755 ${DESTDIR}/var/lib/shorewall6-${VERSION}.bkout
|
install_file shorewall6 ${DESTDIR}/sbin/shorewall6 0755 ${DESTDIR}/var/lib/shorewall6-${VERSION}.bkout
|
||||||
if [ -z "$MAC" ]; then
|
if [ -z "$MACHOST" ]; then
|
||||||
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
eval sed -i \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
||||||
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
eval sed -i \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
||||||
else
|
else
|
||||||
eval sed -i -e \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
eval sed -i \'\' -e \'s\|g_libexec=.\*\|g_libexec=$LIBEXEC\|\' ${DESTDIR}/sbin/shorewall6
|
||||||
eval sed -i -e \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
eval sed -i \'\' -e \'s\|g_perllib=.\*\|g_perllib=$PERLLIB\|\' ${DESTDIR}/sbin/shorewall6
|
||||||
fi
|
fi
|
||||||
echo "shorewall6 control program installed in ${DESTDIR}/sbin/shorewall6"
|
echo "shorewall6 control program installed in ${DESTDIR}/sbin/shorewall6"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user