portscout is a tool which looks for new versions of software in the FreeBSD ports tree, and potentially other software repositories.
Various factors make this task a bit more difficult than it might initially seem. In particular, the array of weird and wonderful versioning schemes software vendors manage to come up with.
portscout spawns several child processes and does its version checking in parallel, while attempting to best-guess strange-looking version numbers, navigate around unhelpful sites and web servers, and contend with the CPU-heavy rapidly-expanding FreeBSD ports system.
In addition to all this, it is possible to generate nice HTML reports and send reminder mails to interested parties.
$ cd /usr/ports/databases/postgresql82-server ; sudo make install clean
這邊的 PostgreSQL 沒有硬性規定只能用 82 的版本,可以依自己喜好來選擇。
$ cd /usr/ports/ports-mgmt/portscout ; sudo make install clean
$ createuser -U pgsql -P portscout # 輸入兩次密碼 Enter password for new role: Enter it again: # 問是不是要變成超級使用者 Shall the new role be a superuser? (y/n) n # 提不提供開資料庫的權限 Shall the new role be allowed to create databases? (y/n) n # 這個帳號是有有新增帳號的權限 Shall the new role be allowed to create more new roles? (y/n) n CREATE ROLE
$ createdb -U pgsql -E UNICODE portscout
$ psql portscout portscout < /usr/local/share/portscout/sql/pgsql_init.sql
$ cd /usr/ports ; sodu make update && sudo portsdb -U
設定檔位置: /usr/local/etc/portscout.conf 網頁模板: /usr/local/share/portscout/templates
$ sudo portscout build
$ sudo portscout check
$ sudo portscout generate
$ sudo csup -L1 -h cvsup3.tw.FreeBSD.org/usr/share/examples/cvsup/ports-supfile \ > /var/log/cvsup/_supdata/cvsup-`date '+%Y%m%d'`.log $ sudo portscout rebuild
#!/bin/sh mkdir -p /var/log/cvsup/_supdata touch /var/log/cvsup/_supdata/cvsup-`date '+%Y%m%d'`.log cd /usr/ports csup -L1 -h cvsup3.tw.FreeBSD.org /usr/share/examples/cvsup/ports-supfile > \ /var/log/cvsup/_supdata/cvsup-`date '+%Y%m%d'`.log portsdb -U cd /var/log/cvsup portscout rebuild portscout check portscout generate
預設安裝是在 /usr/local/etc 下面。