mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
16469b1d7c
- Fix timeout in updater script - Silence warnings in updater script - Fix periodic script - Fix default directory permissions - Bump PORTREVISION
25 lines
800 B
Plaintext
25 lines
800 B
Plaintext
This port requires additional tasks before it will function properly.
|
|
|
|
1. Create and initialize the database:
|
|
mysql> create database pwhois;
|
|
mysql> create user 'pwhois'@'localhost' identified by 'secret-password';
|
|
mysql> grant all privileges on pwhois.* to 'pwhois'@'localhost';
|
|
mysql> use pwhois;
|
|
mysql> \. %%DATADIR%%/createdb.sql
|
|
|
|
2. Edit %%ETCDIR%%/pwhoisd.conf and update:
|
|
* Database connection information
|
|
* RouteView servers (some may be slower than others)
|
|
|
|
3. Populate the database with data for the first time by running:
|
|
%%PREFIX%%/sbin/pwhois-updatedb
|
|
|
|
4. Add the following to /etc/rc.conf:
|
|
pwhoisd_enable="YES"
|
|
|
|
5. Start pwhoisd for the first time by running:
|
|
service pwhoisd start
|
|
|
|
6. To enable daily updates, edit /etc/periodic.conf and add:
|
|
daily_pwhois_updatedb_enable="YES"
|