# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-hubble # py-hubble/pkg-plist # py-hubble/files # py-hubble/files/patch-setup.py # py-hubble/files/hubble.in # py-hubble/distinfo # py-hubble/Makefile # py-hubble/pkg-descr # echo c - py-hubble mkdir -p py-hubble > /dev/null 2>&1 echo x - py-hubble/pkg-plist sed 's/^X//' >py-hubble/pkg-plist << '58b080e9c98eec642cef2dcaf274fe76' X%%ETCDIR%%/hubble.sample 58b080e9c98eec642cef2dcaf274fe76 echo c - py-hubble/files mkdir -p py-hubble/files > /dev/null 2>&1 echo x - py-hubble/files/patch-setup.py sed 's/^X//' >py-hubble/files/patch-setup.py << '49c915e97ca30412bc322f39785bf84b' X--- setup.py 2017-07-28 16:37:05.000000000 -0600 X+++ setup.py.new 2017-07-29 20:34:10.404461000 -0600 X@@ -6,21 +6,6 @@ X if not distro: X distro, version, _ = platform.linux_distribution(supported_dists=['system']) X X-# Default to cent7 X-data_files = [('/usr/lib/systemd/system', ['pkg/hubble.service']), X- ('/etc/hubble', ['conf/hubble']),] X- X-if distro == 'redhat' or distro == 'centos': X- if version.startswith('6'): X- data_files = [('/etc/init.d', ['pkg/hubble']), X- ('/etc/hubble', ['conf/hubble']),] X- elif version.startswith('7'): X- data_files = [('/usr/lib/systemd/system', ['pkg/hubble.service']), X- ('/etc/hubble', ['conf/hubble']),] X-elif distro == 'Amazon Linux AMI': X- data_files = [('/etc/init.d', ['pkg/hubble']), X- ('/etc/hubble', ['conf/hubble']),] X- X with open('hubblestack/__init__.py', 'r') as fd: X version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', X fd.read(), re.MULTILINE).group(1) X@@ -41,20 +26,6 @@ X 'hubble = hubblestack.daemon:run', X ], X }, X- install_requires=[ X- 'salt-ssh >= 2015.8.0', X- 'gitpython', X- 'pyinotify', X- ], X- data_files=data_files, X- options={ X-# 'build_scripts': { X-# 'executable': '/usr/bin/env python', X-# }, X- 'bdist_rpm': { X- 'requires': 'salt python-argparse python-inotify python-pygit2 python-setuptools', X- }, X- }, X classifiers=[ X 'Development Status :: 4 - Beta', X 'Environment :: Console', 49c915e97ca30412bc322f39785bf84b echo x - py-hubble/files/hubble.in sed 's/^X//' >py-hubble/files/hubble.in << '9cf9eb01058cf9849b7c162990a5ec30' X#!/bin/sh X X# X# Hubble Startup Script X# X# PROVIDE: hubble X# REQUIRE: LOGIN X# KEYWORD: shutdown X X# Add the following to /etc/rc.conf[.local] to enable this service X# X# hubble_enable (bool): Set to NO by default. X# Set it to YES to enable hubble X# hubble_paths (string): Set to "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin" by default. X# Default $PATH for hubble X# hubble_eggcache (string): Set to "/tmp" by default. X# Allows defining egg cache directory to fix runtime on diskless systems. X# X X. /etc/rc.subr X Xname=hubble Xrcvar=hubble_enable X Xload_rc_config ${name} X X: ${hubble_enable:=NO} X: ${hubble_paths=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin} X: ${hubble_pidfile:=/var/run/hubble.pid} X: ${hubble_eggcache=/tmp} X Xcommand="/usr/local/bin/hubble" Xcommand_interpreter="/usr/local/bin/python2.7" Xrequired_files="/usr/local/etc/hubble/hubble" Xcommand_args="-c ${required_files} -d" Xpidfile=${hubble_pidfile} X Xexport PATH="${hubble_paths}" Xexport PYTHON_EGG_CACHE="${hubble_eggcache}" X Xrun_rc_command "$1" 9cf9eb01058cf9849b7c162990a5ec30 echo x - py-hubble/distinfo sed 's/^X//' >py-hubble/distinfo << '5be36f776583ab3d4d7f81cc0aa1d541' XTIMESTAMP = 1502233766 XSHA256 (hubblestack-hubble-2.2.1-0c60e38_GH0.tar.gz) = 6e7c0763c90143a5ef2b5406af45fde97a1f26a4637993ccb816c7574aaa72f4 XSIZE (hubblestack-hubble-2.2.1-0c60e38_GH0.tar.gz) = 259666 5be36f776583ab3d4d7f81cc0aa1d541 echo x - py-hubble/Makefile sed 's/^X//' >py-hubble/Makefile << '5e07bd2ff187b715f2c13fde0bf17968' X# Created by: Christer Edwards X# $FreeBSD: head/security/hubble/Makefile $ X XPORTNAME= hubble XPORTVERSION= 2.2.1 XCATEGORIES= security python XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= christer.edwards@gmail.com XCOMMENT= Security & Compliance Auditing Toolkit X XLICENSE= APACHE20 XLICENSE_FILE= ${WRKSRC}/LICENSE X XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}salt-common>=2017.7.1:sysutils/py-salt-common \ X ${PYTHON_PKGNAMEPREFIX}GitPython>=1:devel/py-gitpython \ X osquery>2.5.0:sysutils/osquery X XUSE_GITHUB= yes XGH_ACCOUNT= hubblestack XGH_PROJECT= hubble XGH_TAGNAME= 0c60e38 X XUSES= python:2 X XUSE_PYTHON= autoplist distutils XNO_ARCH= yes X XPLIST_SUB= PORTVERSION=${PORTVERSION} SHLIB_VER=${PORTVERSION:R:E} X XUSE_RC_SUBR= hubble XSUB_LIST+= PYTHON_CMD=${PYTHON_CMD} X Xpost-patch: X @${REINPLACE_CMD} -e 's|/etc/hubble|${ETCDIR}|' ${WRKSRC}/hubblestack/daemon.py X Xpost-install: X @${MKDIR} ${STAGEDIR}${ETCDIR} X ${INSTALL_DATA} ${WRKSRC}/conf/hubble ${STAGEDIR}${ETCDIR}/hubble.sample X X.include 5e07bd2ff187b715f2c13fde0bf17968 echo x - py-hubble/pkg-descr sed 's/^X//' >py-hubble/pkg-descr << '0f82c13f5e816a4a675b19121ee7a62e' XHubbleStack X=========== X XSecurity & Compliance Auditing Toolkit X XWWW: https://hubblestack.io 0f82c13f5e816a4a675b19121ee7a62e exit