Skip to content
forked from zeek/zeek-pkg-web

Web viewer for packages maintained by the Bro Package Manager

Notifications You must be signed in to change notification settings

bro/bro-pkg-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INSTALLATION

Check out code

cd ~
git clone [email protected]:bro/bro-pkg-web.git
cd bro-pkg-web

Copy files/directories

sudo cp -a bropkg /var/www
### Modify salt, database password, and CILogon client id/key in 
###     secrets/.env to something suitable for your installation
cp secrets/.env /var/www/bropkg/config/
chmod 640 /var/www/bropkg/config/.env
cd /var/www/bropkg
composer update
sudo chgrp -R apache /var/www/bropkg

Set up HTTPD

Edit /etc/httpd/conf.d/ssl.conf :

<VirtualHost _default_:443>
DocumentRoot "/var/www/bropkg"

...

<Directory />
  Options FollowSymLinks
  AllowOverride All
</Directory>

</VirtualHost>

Edit /etc/httpd/conf.d/virthost.conf :

<VirtualHost *:80>
DocumentRoot /var/www/bropkg

Restart httpd process:

sudo service httpd restart

Initialize database

mysql_secure_installation    # only needed once

Enter current password for root (enter for none): <none>
OK, successfully used password, moving on...
Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!
Remove anonymous users? [Y/n] y
 ... Success!
Disallow root login remotely? [Y/n] y
 ... Success!
Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reload privilege tables now? [Y/n] y
 ... Success!
Cleaning up...
All done!

Load bropkg user and associated tables. Change BRO_USER_PASSWORD to something suitable for the installation.

mysql -u root -p < secrets/database.sql

Set up cronjob to read bro pkg info

Note: Change [email protected] to the email that should receive emails about the output of the bro-pkg-web-updater script.

sudo su
pip install bro-pkg
yum install python34-pip
python3 -m pip install https://github.com/bro/bro-package-ci/archive/master.zip
cp cronjob/bro-pkg-web-updater.php /usr/local/sbin/
chmod 700 /usr/local/sbin/bro-pkg-web-updater.php
echo '[email protected]
# Read the list of Bro packages and update database at 4am daily
0 4 * * *    root    /usr/local/sbin/bro-pkg-web-updater.php' > \
/etc/cron.d/bro-pkg-web.cron
exit

Run the script at least once!

sudo php /usr/local/sbin/bro-pkg-web-updater.php

About

Web viewer for packages maintained by the Bro Package Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.0%
  • CSS 7.1%
  • Shell 2.5%
  • Batchfile 0.4%