Add an extra check to make sure syslogd is correctly configured when
using chroot. Sponsored by: Absolight
This commit is contained in:
@@ -8,7 +8,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
|
||||
PORTREVISION= 0
|
||||
.else
|
||||
# dns/bind9xx here
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
.endif
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= LOCAL/mat/bind
|
||||
|
||||
@@ -322,6 +322,15 @@ named_prestart()
|
||||
if [ -n "${named_chrootdir}" ]; then
|
||||
rc_flags="${rc_flags} -t ${named_chrootdir}"
|
||||
checkyesno named_chroot_autoupdate && chroot_autoupdate
|
||||
|
||||
case "${altlog_proglist}" in
|
||||
named)
|
||||
;;
|
||||
*)
|
||||
warn 'Using chroot without setting altlog_proglist, logging may not'
|
||||
warn 'work correctly. Run sysrc altlog_proglist+=named'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
named_symlink_enable=NO
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= bind
|
||||
PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= ISC/bind9/${ISCVERSION}
|
||||
PKGNAMESUFFIX= 910
|
||||
|
||||
@@ -322,6 +322,15 @@ named_prestart()
|
||||
if [ -n "${named_chrootdir}" ]; then
|
||||
rc_flags="${rc_flags} -t ${named_chrootdir}"
|
||||
checkyesno named_chroot_autoupdate && chroot_autoupdate
|
||||
|
||||
case "${altlog_proglist}" in
|
||||
named)
|
||||
;;
|
||||
*)
|
||||
warn 'Using chroot without setting altlog_proglist, logging may not'
|
||||
warn 'work correctly. Run sysrc altlog_proglist+=named'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
named_symlink_enable=NO
|
||||
fi
|
||||
|
||||
@@ -7,8 +7,8 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
|
||||
# dns/bind-tools here
|
||||
PORTREVISION= 1
|
||||
.else
|
||||
# dns/bind9xx here
|
||||
PORTREVISION= 3
|
||||
# dns/bind911 here
|
||||
PORTREVISION= 4
|
||||
.endif
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= ISC/bind9/${ISCVERSION}
|
||||
|
||||
@@ -322,6 +322,15 @@ named_prestart()
|
||||
if [ -n "${named_chrootdir}" ]; then
|
||||
rc_flags="${rc_flags} -t ${named_chrootdir}"
|
||||
checkyesno named_chroot_autoupdate && chroot_autoupdate
|
||||
|
||||
case "${altlog_proglist}" in
|
||||
named)
|
||||
;;
|
||||
*)
|
||||
warn 'Using chroot without setting altlog_proglist, logging may not'
|
||||
warn 'work correctly. Run sysrc altlog_proglist+=named'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
named_symlink_enable=NO
|
||||
fi
|
||||
|
||||
@@ -7,8 +7,8 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
|
||||
# dns/bind-tools here
|
||||
PORTREVISION= 0
|
||||
.else
|
||||
# dns/bind9xx here
|
||||
PORTREVISION= 0
|
||||
# dns/bind912 here
|
||||
PORTREVISION= 1
|
||||
.endif
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= ISC/bind9/${ISCVERSION}
|
||||
|
||||
@@ -322,6 +322,15 @@ named_prestart()
|
||||
if [ -n "${named_chrootdir}" ]; then
|
||||
rc_flags="${rc_flags} -t ${named_chrootdir}"
|
||||
checkyesno named_chroot_autoupdate && chroot_autoupdate
|
||||
|
||||
case "${altlog_proglist}" in
|
||||
named)
|
||||
;;
|
||||
*)
|
||||
warn 'Using chroot without setting altlog_proglist, logging may not'
|
||||
warn 'work correctly. Run sysrc altlog_proglist+=named'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
named_symlink_enable=NO
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= bind
|
||||
PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= ISC/bind9/${ISCVERSION}
|
||||
PKGNAMESUFFIX= 99
|
||||
|
||||
@@ -310,6 +310,15 @@ named_prestart()
|
||||
if [ -n "${named_chrootdir}" ]; then
|
||||
rc_flags="${rc_flags} -t ${named_chrootdir}"
|
||||
checkyesno named_chroot_autoupdate && chroot_autoupdate
|
||||
|
||||
case "${altlog_proglist}" in
|
||||
named)
|
||||
;;
|
||||
*)
|
||||
warn 'Using chroot without setting altlog_proglist, logging may not'
|
||||
warn 'work correctly. Run sysrc altlog_proglist+=named'
|
||||
;;
|
||||
esac
|
||||
else
|
||||
named_symlink_enable=NO
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user