mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
- Update to 0.9.9
- Fix error when changing ownership of spool directory Changelog prelude-manager 0.9.9: - Update configuration template, add documentation for Prelude generic TCP options. - Implement modified patch from Pierre Chifflier <chifflier@inl.fr> to fix the example log path (fix #224). - Move IDMEF message normalization in the scheduler, rather than doing it upon reception. This remove some load from the server and allow Prelude-Manager own IDMEF messages to go through the normalizer path. - Implement heartbeat->analyzer normalization. - Improve IPv4 / IPv6 address normalization. IPv4 mapped IPv6 addresses are now mapped back to IPv4. Additionally, the Normalize plugin now provide two additionals option: ipv6-only: Map any incoming IPv4 address to IPv6. keep-ipv4-mapped-ipv6: do not map IPv4 mapped IPv6 addresses back to IPv4. - Make a difference between exceptional report plugin failure (example: a single message couldn't be processed) and "global" plugin failure (example: database server is down). We use a different failover for 'exceptional' failure, so that we don't try to reinsert a bogus message (fix #247). - Start of a Prelude-Manager manpages (#236). - Various bug fixes. PR: ports/115233 Submitted by: maintainer (Robin Gruyters)
This commit is contained in:
parent
40974845b4
commit
3a8f5e82e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197718
@ -5,8 +5,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= prelude-manager
|
||||
PORTVERSION= 0.9.8
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.9.9
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
||||
http://www.prelude-ids.org/download/releases/old/
|
||||
@ -32,10 +31,21 @@ PRELUDEDIR?= /nonexistent
|
||||
PRELUDEUID= 281
|
||||
PRELUDEGID= ${PRELUDEUID}
|
||||
|
||||
MAN1= prelude-manager.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
PLIST_SUB+= PRELUDEDIR=${PRELUDEDIR} \
|
||||
PRELUDEUSER=${PRELUDEUSER} \
|
||||
PRELUDEGROUP=${PRELUDEGROUP}
|
||||
|
||||
SUB_FILES= pkg-install \
|
||||
pkg-deinstall
|
||||
|
||||
SUB_LIST= ${PLIST_SUB}
|
||||
|
||||
.if defined(WITHOUT_XML)
|
||||
PLIST_SUB+= WITH_XML="@comment "
|
||||
PLIST_SUB+= WITH_XML="@comment "
|
||||
CONFIGURE_ARGS+= --disable-xmltest --without-xml
|
||||
.else
|
||||
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (prelude-manager-0.9.8.tar.gz) = be73ee46a7279200c5b9fcc4a2f9b7ad
|
||||
SHA256 (prelude-manager-0.9.8.tar.gz) = c5a41ba98ff05d4c75f237e7e8c01efb8c086362b0713736d4d3451a1c023f15
|
||||
SIZE (prelude-manager-0.9.8.tar.gz) = 617261
|
||||
MD5 (prelude-manager-0.9.9.tar.gz) = ca9258faadb7306863dffeac8f855161
|
||||
SHA256 (prelude-manager-0.9.9.tar.gz) = 734bd844df4e337cb989ea9700d60ca2d0eae03a5b0e97a5559b3addb2498ec6
|
||||
SIZE (prelude-manager-0.9.9.tar.gz) = 647696
|
||||
|
17
security/prelude-manager/files/pkg-deinstall.in
Normal file
17
security/prelude-manager/files/pkg-deinstall.in
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PRELUDEUSER=%%PRELUDEUSER%%
|
||||
PRELUDEGROUP=%%PRELUDEGROUP%%
|
||||
|
||||
if [ "$2" = "POST-DEINSTALL" ]; then
|
||||
if /usr/sbin/pw group show "${PRELUDEGROUP}" 2>&1 >/dev/null; then
|
||||
echo "You should manually remove the \"${PRELUDEGROUP}\" group."
|
||||
fi
|
||||
|
||||
if /usr/sbin/pw user show "${PRELUDEUSER}" 2>&1 >/dev/null; then
|
||||
echo "You should manually remove the \"${PRELUDEUSER}\" user."
|
||||
fi
|
||||
fi
|
74
security/prelude-manager/files/pkg-install.in
Normal file
74
security/prelude-manager/files/pkg-install.in
Normal file
@ -0,0 +1,74 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PRELUDEDIR=%%PRELUDEDIR%%
|
||||
PRELUDEUSER=%%PRELUDEUSER%%
|
||||
PRELUDEGROUP=%%PRELUDEGROUP%%
|
||||
PRELUDEUID=%%PRELUDEUID%%
|
||||
PRELUDEGID=%%PRELUDEGID%%
|
||||
|
||||
ask() {
|
||||
local question default answer
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
if [ -z "${PACKAGE_BUILDING}" ]; then
|
||||
read -p "${question} [${default}]? " answer
|
||||
fi
|
||||
if [ "x${answer}" = "x" ]; then
|
||||
answer=${default}
|
||||
fi
|
||||
echo ${answer}
|
||||
}
|
||||
|
||||
yesno() {
|
||||
local default question answer
|
||||
|
||||
question=$1
|
||||
default=$2
|
||||
while :; do
|
||||
answer=$(ask "${question}" "${default}")
|
||||
case "${answer}" in
|
||||
[Yy][Ee][Ss]|[Yy])
|
||||
return 0
|
||||
;;
|
||||
[Nn][Oo]|[Nn])
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
echo "Please answer yes or no."
|
||||
done
|
||||
}
|
||||
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
if /usr/sbin/pw group show "${PRELUDEGROUP}" 2>&1 >/dev/null; then
|
||||
echo "You already have a \"${PRELUDEGROUP}\" group, so I will use it."
|
||||
else
|
||||
echo "You need a \"${PRELUDEGROUP}\" group."
|
||||
if yesno "Would you like me to create it" "YES"; then
|
||||
/usr/sbin/pw groupadd "${PRELUDEGROUP}" -g "${PRELUDEGID}" -h - || \
|
||||
/usr/sbin/pw groupadd "${PRELUDEGROUP}" -h - || exit
|
||||
echo "Done."
|
||||
else
|
||||
echo "Please create the \"${PRELUDEGROUP}\" group manually and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if /usr/sbin/pw user show "${PRELUDEUSER}" 2>&1 >/dev/null; then
|
||||
echo "You already have a \"${PRELUDEUSER}\" user, so I will use it."
|
||||
else
|
||||
echo "You need a \"${PRELUDEUSER}\" user."
|
||||
if yesno "Would you like me to create it" "YES"; then
|
||||
/usr/sbin/pw useradd "${PRELUDEUSER}" -u "${PRELUDEUID}" -g "${PRELUDEGROUP}" -h - -d "${PRELUDEDIR}" \
|
||||
-s /sbin/nologin -c "Prelude pseudo-user" || \
|
||||
/usr/sbin/pw useradd "${PRELUDEUSER}" -g "${PRELUDEGROUP}" -h - -d "${PRELUDEDIR}" \
|
||||
-s /sbin/nologin -c "Prelude pseudo-user" || exit
|
||||
else
|
||||
echo "Please create the \"${PRELUDEUSER}\" user manually and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user