Skip to content
Permalink
Browse files

security/wazuh-agent: Update to 3.9.2 and latest patch from the PR

PR:	237900
  • Loading branch information...
decke committed Sep 11, 2019
1 parent 87b1bf0 commit 4cbe8d08d58b4c303a80157fe8641518b6b42a0e
@@ -2,7 +2,7 @@

PORTNAME= wazuh
DISTVERSIONPREFIX= v
DISTVERSION= 3.9.0
DISTVERSION= 3.9.2
CATEGORIES= security
MASTER_SITES= https://packages.wazuh.com/deps/3.9/
PKGNAMESUFFIX= -agent
@@ -21,13 +21,32 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= curl:ftp/curl
RUN_DEPENDS= curl:ftp/curl

USES= gmake perl5 readline ssl
USES= gmake perl5 readline shebangfix uidfix

USE_GITHUB= yes

CONFLICTS_INSTALL= ossec-*

SHEBANG_FILES= ${WRKSRC}/contrib/util.sh \
${WRKSRC}/src/init/ossec-client.sh \
${WRKSRC}/wodles/oscap/oscap.py \
${WRKSRC}/active-response/*.sh \

USERS= ossec ossecm ossecr
GROUPS= ossec

OSSEC_GROUP= ossec
OSSEC_USER= ossec

WAZUHPREFIX= /var/ossec

WAZUHMOD750= / /logs/ossec /bin /lib /queue /queue/diff /ruleset /ruleset/sca /wodles \
/active-response /active-response/bin /agentless /var /backup /queue/rids \
/wodles/oscap /wodles/oscap/content

WAZUHMOD770= /logs /queue/alerts /queue/ossec /etc /etc/shared /.ssh /var/run /var/upgrade \
/var/wodles /var/incoming

# extract all extra distfiles in src/external
post-extract:
@for file in ${DISTFILES}; do \
@@ -38,9 +57,42 @@ post-extract:
done

do-build:
@cd ${WRKSRC}/src && ${GMAKE}
@cd ${WRKSRC}/src && ${GMAKE} TARGET=agent

do-install:
@cd ${WRKSRC} && ${SH} install.sh
@for mod750 in ${WAZUHMOD750}; do \
${MKDIR} -m 0750 ${STAGEDIR}${WAZUHPREFIX}$$mod750; \
done

@for mod770 in ${WAZUHMOD770}; do \
${MKDIR} -m 0770 ${STAGEDIR}${WAZUHPREFIX}$$mod770; \
done

${MKDIR} -m 1770 ${STAGEDIR}${WAZUHPREFIX}/tmp
${INSTALL_PROGRAM} ${WRKSRC}/src/ossec-logcollector ${STAGEDIR}${WAZUHPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/ossec-syscheckd ${STAGEDIR}${WAZUHPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/ossec-execd ${STAGEDIR}${WAZUHPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/manage_agents ${STAGEDIR}${WAZUHPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/wazuh-modulesd ${STAGEDIR}${WAZUHPREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/src/ossec-agentd ${STAGEDIR}${WAZUHPREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/libwazuhext.so ${STAGEDIR}${WAZUHPREFIX}/lib
${INSTALL_PROGRAM} ${WRKSRC}/src/agent-auth ${STAGEDIR}${WAZUHPREFIX}/bin
${CP} ${WRKSRC}/active-response/*.sh ${STAGEDIR}${WAZUHPREFIX}/active-response/bin/
${CP} ${WRKSRC}/active-response/firewalls/*.sh ${STAGEDIR}${WAZUHPREFIX}/active-response/bin/
${CP} ${WRKSRC}/etc/internal_options.conf ${STAGEDIR}${WAZUHPREFIX}/etc/
${CP} ${WRKSRC}/etc/local_internal_options.conf ${STAGEDIR}${WAZUHPREFIX}/etc/local_internal_options.conf
${CP} ${WRKSRC}/etc/ossec-agent.conf ${STAGEDIR}${WAZUHPREFIX}/etc/ossec.conf
${CP} ${WRKSRC}/etc/ossec-agent.conf ${STAGEDIR}${WAZUHPREFIX}/etc/ossec.conf.sample
${CP} /dev/null ${STAGEDIR}${WAZUHPREFIX}/etc/client.keys
${INSTALL_SCRIPT} /dev/null ${STAGEDIR}${WAZUHPREFIX}/logs/ossec.log
${INSTALL_SCRIPT} /dev/null ${STAGEDIR}${WAZUHPREFIX}/logs/ossec.json
${INSTALL_SCRIPT} /dev/null ${STAGEDIR}${WAZUHPREFIX}/logs/active-responses.log
${INSTALL_SCRIPT} ${WRKSRC}/contrib/util.sh ${STAGEDIR}${WAZUHPREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/src/init/ossec-client.sh ${STAGEDIR}${WAZUHPREFIX}/bin/ossec-control
${INSTALL_SCRIPT} ${WRKSRC}/src/agentlessd/scripts/* ${STAGEDIR}${WAZUHPREFIX}/agentless/
${INSTALL_SCRIPT} ${WRKSRC}/src/rootcheck/db/*.txt ${STAGEDIR}${WAZUHPREFIX}/etc/shared/
${INSTALL_SCRIPT} ${WRKSRC}/etc/wpk_root.pem ${STAGEDIR}${WAZUHPREFIX}/etc/
${INSTALL_SCRIPT} ${WRKSRC}/wodles/oscap/oscap.py ${STAGEDIR}${WAZUHPREFIX}/wodles/oscap
${INSTALL_SCRIPT} ${WRKSRC}/wodles/oscap/template_*.xsl ${STAGEDIR}${WAZUHPREFIX}/wodles/oscap

.include <bsd.port.mk>
@@ -1,27 +1,27 @@
TIMESTAMP = 1558358067
SHA256 (wazuh-3.9.0/cJSON.tar.gz) = 8c517c658209cb96c2dcdfdd6bf7bb434adfb2fff3484b3464d2750cafd74e76
SIZE (wazuh-3.9.0/cJSON.tar.gz) = 20001
SHA256 (wazuh-3.9.0/src_cpython.tar.gz) = c82f7b62c086379bfd3f91d0a36293f889e66d7ae2aca122a16af3dbb67fd32f
SIZE (wazuh-3.9.0/src_cpython.tar.gz) = 78216338
SHA256 (wazuh-3.9.0/curl.tar.gz) = 78ad4a75fec89dd83c75cf35203c1c757c21cb2a6ff574647b13bf86c8798d66
SIZE (wazuh-3.9.0/curl.tar.gz) = 3692998
SHA256 (wazuh-3.9.0/libdb.tar.gz) = 885f01aebcca995bcef48d8dc47acb8c4bd5eab06ec188e76cb5863e4f9b2d9b
SIZE (wazuh-3.9.0/libdb.tar.gz) = 4283467
SHA256 (wazuh-3.9.0/libffi.tar.gz) = 0e971f64bacc22094e89f034bba075b40ecc2c2c2900eecd7ae85815fd6c9f69
SIZE (wazuh-3.9.0/libffi.tar.gz) = 964576
SHA256 (wazuh-3.9.0/libyaml.tar.gz) = 35daad608b372d5ce099f738c0f21bfcc03d6920d92f448386c584e664f1376a
SIZE (wazuh-3.9.0/libyaml.tar.gz) = 424656
SHA256 (wazuh-3.9.0/openssl.tar.gz) = ed55973f4b604b9c27bb660fcdf85f69335b80b07c3bf4c63528ed8fcd74a678
SIZE (wazuh-3.9.0/openssl.tar.gz) = 5603935
SHA256 (wazuh-3.9.0/procps.tar.gz) = 87336a7860f5116ac5c5222b6b0d5c892e202ce136947e4776037bb7670ce6e2
SIZE (wazuh-3.9.0/procps.tar.gz) = 55692
SHA256 (wazuh-3.9.0/sqlite.tar.gz) = 23e109ee91ed16b4a95b2d361ecfd82820842fc337a80aa8032590b96eebddd2
SIZE (wazuh-3.9.0/sqlite.tar.gz) = 1980218
SHA256 (wazuh-3.9.0/zlib.tar.gz) = ddbeac924cc7fc3274ad0d5cfcf2a72792f0500e9607c65d02e8753f3a510a01
SIZE (wazuh-3.9.0/zlib.tar.gz) = 643568
SHA256 (wazuh-3.9.0/audit-userspace.tar.gz) = e82a32e5edf93b055160e14bc97f41dead39287925851dc80a7638e2d4d30434
SIZE (wazuh-3.9.0/audit-userspace.tar.gz) = 1682820
SHA256 (wazuh-3.9.0/msgpack.tar.gz) = 06d63bcf32896cd0af5480c401134b1ad1c166fd84ebe5b486e792101ee854e2
SIZE (wazuh-3.9.0/msgpack.tar.gz) = 591294
SHA256 (wazuh-3.9.0/wazuh-wazuh-v3.9.0_GH0.tar.gz) = 1ae46fefa2f2910b150c6b502c36a7e4a8488ddede2e44f33506a9b0d8d1741c
SIZE (wazuh-3.9.0/wazuh-wazuh-v3.9.0_GH0.tar.gz) = 14788827
TIMESTAMP = 1561290425
SHA256 (wazuh-3.9.2/cJSON.tar.gz) = 8c517c658209cb96c2dcdfdd6bf7bb434adfb2fff3484b3464d2750cafd74e76
SIZE (wazuh-3.9.2/cJSON.tar.gz) = 20001
SHA256 (wazuh-3.9.2/src_cpython.tar.gz) = c82f7b62c086379bfd3f91d0a36293f889e66d7ae2aca122a16af3dbb67fd32f
SIZE (wazuh-3.9.2/src_cpython.tar.gz) = 78216338
SHA256 (wazuh-3.9.2/curl.tar.gz) = 78ad4a75fec89dd83c75cf35203c1c757c21cb2a6ff574647b13bf86c8798d66
SIZE (wazuh-3.9.2/curl.tar.gz) = 3692998
SHA256 (wazuh-3.9.2/libdb.tar.gz) = 885f01aebcca995bcef48d8dc47acb8c4bd5eab06ec188e76cb5863e4f9b2d9b
SIZE (wazuh-3.9.2/libdb.tar.gz) = 4283467
SHA256 (wazuh-3.9.2/libffi.tar.gz) = 0e971f64bacc22094e89f034bba075b40ecc2c2c2900eecd7ae85815fd6c9f69
SIZE (wazuh-3.9.2/libffi.tar.gz) = 964576
SHA256 (wazuh-3.9.2/libyaml.tar.gz) = 35daad608b372d5ce099f738c0f21bfcc03d6920d92f448386c584e664f1376a
SIZE (wazuh-3.9.2/libyaml.tar.gz) = 424656
SHA256 (wazuh-3.9.2/openssl.tar.gz) = ed55973f4b604b9c27bb660fcdf85f69335b80b07c3bf4c63528ed8fcd74a678
SIZE (wazuh-3.9.2/openssl.tar.gz) = 5603935
SHA256 (wazuh-3.9.2/procps.tar.gz) = 87336a7860f5116ac5c5222b6b0d5c892e202ce136947e4776037bb7670ce6e2
SIZE (wazuh-3.9.2/procps.tar.gz) = 55692
SHA256 (wazuh-3.9.2/sqlite.tar.gz) = 23e109ee91ed16b4a95b2d361ecfd82820842fc337a80aa8032590b96eebddd2
SIZE (wazuh-3.9.2/sqlite.tar.gz) = 1980218
SHA256 (wazuh-3.9.2/zlib.tar.gz) = ddbeac924cc7fc3274ad0d5cfcf2a72792f0500e9607c65d02e8753f3a510a01
SIZE (wazuh-3.9.2/zlib.tar.gz) = 643568
SHA256 (wazuh-3.9.2/audit-userspace.tar.gz) = e82a32e5edf93b055160e14bc97f41dead39287925851dc80a7638e2d4d30434
SIZE (wazuh-3.9.2/audit-userspace.tar.gz) = 1682820
SHA256 (wazuh-3.9.2/msgpack.tar.gz) = 06d63bcf32896cd0af5480c401134b1ad1c166fd84ebe5b486e792101ee854e2
SIZE (wazuh-3.9.2/msgpack.tar.gz) = 591294
SHA256 (wazuh-3.9.2/wazuh-wazuh-v3.9.2_GH0.tar.gz) = 6014009740967ff2cc768471577a97e72fe5c4ec950aba82937d26fb36a4f10e
SIZE (wazuh-3.9.2/wazuh-wazuh-v3.9.2_GH0.tar.gz) = 14779485

This file was deleted.

This file was deleted.

0 comments on commit 4cbe8d0

Please sign in to comment.
You can’t perform that action at this time.