Index: head/sysutils/osquery/Makefile =================================================================== --- head/sysutils/osquery/Makefile (revision 448061) +++ head/sysutils/osquery/Makefile (revision 448062) @@ -1,94 +1,94 @@ # Created by: Ryan Steinmetz # $FreeBSD$ PORTNAME= osquery -PORTVERSION= 2.6.0 +PORTVERSION= 2.6.1 CATEGORIES= sysutils MAINTAINER= zi@FreeBSD.org COMMENT= SQL powered OS instrumentation, monitoring, and analytics LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= thrift>0:devel/thrift \ bash>0:shells/bash \ linenoise-ng>0:devel/linenoise-ng \ asio>0:net/asio \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 LIB_DEPENDS= libaugeas.so:textproc/augeas \ libboost_regex.so:devel/boost-libs \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libicuuc.so:devel/icu \ liblz4.so:archivers/liblz4 \ libsnappy.so:archivers/snappy \ librocksdb-lite.so:databases/rocksdb-lite \ libthrift.so:devel/thrift-cpp \ libcppnetlib-uri.so:devel/cpp-netlib \ libzstd.so:archivers/zstd RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss USES= cmake:outsource libtool python:build compiler:c++11-lib \ libarchive ssl USE_GNOME= libxml2 CONFIGURE_ENV+= OSQUERY_BUILD_VERSION="${PORTVERSION}" HOME="${WRKDIR}" \ SKIP_TESTS="yes" CC="${CC}" CXX="${CXX}" CMAKE_ARGS+= -DFREEBSD=awesome -DCMAKE_SYSTEM_NAME="FreeBSD" BLDDIR= ${WRKDIR}/.build/${PORTNAME} USE_RC_SUBR= ${PORTNAME}d USE_GITHUB= yes GH_ACCOUNT= facebook ${PORTNAME}:tp GH_PROJECT= third-party:tp GH_SUBDIR= third-party:tp -GH_TAGNAME= 2.5.2:tp +GH_TAGNAME= ${PORTVERSION}:tp # Some options for things that bring in many dependencies OPTIONS_DEFINE= TSK AWS YARA LLDPD TSK_DESC= Build with sleuthkit support TSK_LIB_DEPENDS= libtsk.so:sysutils/sleuthkit TSK_CONFIGURE_ENV_OFF= SKIP_TSK=1 AWS_DESC= Support logging to AWS Kinesis AWS_LIB_DEPENDS= libaws-cpp-sdk-core.so:devel/aws-sdk-cpp AWS_CONFIGURE_ENV_OFF= SKIP_AWS=1 YARA_DESC= Build with YARA malware identification support YARA_LIB_DEPENDS= libyara.so:security/yara YARA_CONFIGURE_ENV_OFF= SKIP_YARA=1 LLDPD_DESC= Support Link Layer Discovery Protocol LLDPD_LIB_DEPENDS= liblldpctl.so:net-mgmt/lldpd LLDPD_CONFIGURE_ENV_OFF=SKIP_LLDPD=1 .include .if ${OSVERSION} < 1100000 BUILD_DEPENDS+= clang38:devel/llvm38 CC= clang38 CXX= clang++38 .endif post-patch: ${REINPLACE_CMD} -e 's|/var/osquery/|/var/db/osquery/|g' \ ${WRKSRC}/tools/deployment/osquery.example.conf ${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|g' \ ${WRKSRC}/CMakeLists.txt \ ${WRKSRC}/tools/get_platform.py do-install: ${INSTALL_PROGRAM} ${BLDDIR}/osqueryi ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${BLDDIR}/osqueryd ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${BLDDIR}/libosquery.a ${STAGEDIR}${PREFIX}/lib (cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include) ${INSTALL_DATA} ${WRKSRC}/tools/deployment/osquery.example.conf \ ${STAGEDIR}${PREFIX}/etc/osquery.conf.sample ${MKDIR} ${STAGEDIR}/var/db/osquery ${STAGEDIR}/var/log/osquery # The flags file must exist, even if empty. Using @sample # prevents a populated flags file from being nuked on upgrade. ${TOUCH} ${STAGEDIR}${PREFIX}/etc/osquery.flags.sample \ ${STAGEDIR}${PREFIX}/etc/osquery.flags .include Index: head/sysutils/osquery/distinfo =================================================================== --- head/sysutils/osquery/distinfo (revision 448061) +++ head/sysutils/osquery/distinfo (revision 448062) @@ -1,5 +1,5 @@ -TIMESTAMP = 1501352226 -SHA256 (facebook-osquery-2.6.0_GH0.tar.gz) = e2db49604a11ecf9eb5a73b6222bd944cfa0848bd18c25f0cfc3b55629f89cc5 -SIZE (facebook-osquery-2.6.0_GH0.tar.gz) = 946062 -SHA256 (osquery-third-party-2.5.2_GH0.tar.gz) = 71f5ee127e5a15e14593174a83944fb31c581f96c377c1faa10a50e0549b9c53 -SIZE (osquery-third-party-2.5.2_GH0.tar.gz) = 3229295 +TIMESTAMP = 1502739110 +SHA256 (facebook-osquery-2.6.1_GH0.tar.gz) = 288e5455fedd4e7d5ea2ee123477b3f75630db14979205717268c25cbdca04fd +SIZE (facebook-osquery-2.6.1_GH0.tar.gz) = 957008 +SHA256 (osquery-third-party-2.6.1_GH0.tar.gz) = 1c58ad711f08656184e0d5b3fa53ecf5e9fef6034143e4c41c2989b54f6d5381 +SIZE (osquery-third-party-2.6.1_GH0.tar.gz) = 3264472 Index: head/sysutils/osquery/files/osqueryd.in =================================================================== --- head/sysutils/osquery/files/osqueryd.in (revision 448061) +++ head/sysutils/osquery/files/osqueryd.in (revision 448062) @@ -1,41 +1,41 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: osqueryd # REQUIRE: %%REQUIRE%% # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable osqueryd: # # osqueryd_enable="YES" # . /etc/rc.subr name=osqueryd rcvar=osqueryd_enable load_rc_config $name command=%%PREFIX%%/sbin/osqueryd osqueryd_enable=${osqueryd_enable-"NO"} osqueryd_flags=${osqueryd_flags-""} osqueryd_config=${osqueryd_config-"%%PREFIX%%/etc/osquery.conf"} required_files=${osqueryd_config} -command_args="--pidfile /var/run/osqueryd.pid --disable_watchdog --daemonize=true --database_path /var/db/osquery/osqueryd --tls_server_certs /etc/ssl/cert.pem --flagfile %%PREFIX%%/etc/osquery.flags --config_path=${osqueryd_config}" +command_args="--pidfile /var/run/osqueryd.pid --daemonize=true --database_path /var/db/osquery/osqueryd --tls_server_certs /etc/ssl/cert.pem --flagfile %%PREFIX%%/etc/osquery.flags --config_path=${osqueryd_config}" extra_commands="configtest" configtest_cmd="configtest" pidfile="/var/run/osqueryd.pid" start_precmd=prestart configtest() { ${command} ${osqueryd_flags} --config_check --config_path=${osqueryd_config} --verbose } prestart() { install -d /var/db/osquery } run_rc_command "$1"