Sample client for SamDrucker, which will store lists of packages installed on
hosts.
SamDrucker is a collection of small components which create a centralized list
of all packages on all hosts.
Each component is designed to be:
* small
* simple
* easily written
* flexiable
* few, if any, dependencies
Affects: users of www/samdruckerserver and sysutils/samdruckerclientshell
Author: dvl@FreeBSD.org
Reason:
SamDrucker 0.3.0 records every pkg repository a host uses, as with
pkgbase, and which repository each package came from. This changes
the database.
Upgrade the server first. After installing the new
www/samdruckerserver, back up the database, then run these scripts,
in this order, as the owner of the tables (replace samdrucker with
the name of your database):
# cd /usr/local/share/samdrucker/PostgreSQL
# psql samdrucker -f updates-2026.11.19.sql
# psql samdrucker -f procedures.sql
If you are upgrading from a release before 0.2.4, run
updates-2020.08.28.sql first.
Until this is done, check-ins from 0.3.0 clients are still accepted,
but their repositories are not recorded.
The 0.3.0 client, sysutils/samdruckerclientshell, now reports failed
check-ins on stderr and to syslog. To do this it needs the server's
reply, so it ignores any --output in CURL_OPTIONS in
/usr/local/etc/samdrucker/samdrucker.conf. You can remove
"--output /dev/null" from that file. The client now requires
/usr/libexec/flua, which is in the base system; on pkgbase hosts it
is in the FreeBSD-flua package.
sysutils/samdruckerclientshell: Update to 0.3.2
The client is one script again. samdrucker.repo-to-json.stdin, which
converted the pkg repos output to JSON, has been folded into
samdrucker.sh, which now runs that Lua itself with flua -e. The helper
is no longer installed.
What the client sends, and how it reports a failed check-in, are
unchanged. It still needs /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).
0.3.1 was tagged upstream before these changes were committed, so it
was the same code as 0.3.0.
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.2
sysutils/samdruckerclientshell: Update to 0.3.1
The client is one script again. samdrucker.repo-to-json.stdin, which
converted the pkg repos output to JSON, has been folded into
samdrucker.sh, which now runs that Lua itself with flua -e. The helper
is no longer installed.
What the client sends, and how it reports a failed check-in, are
unchanged. It still needs /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.1
sysutils/samdruckerclientshell: Update to 0.3.0
The client now sends every enabled pkg repository (pkg repos -e) and
which repository each installed package came from. It still sends the
single repository URL that 0.2.x servers read, so it works with old
servers too.
Failed check-ins are no longer silent: the reason goes to stderr, which
periodic(8) includes in the daily mail, and to syslog, and the client
exits non-zero. Any --output in CURL_OPTIONS is now ignored, because
the client needs the server's reply.
The client now uses /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.0
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
chmod 0640 etc/samdrucker/samdrucker.conf.sample
I was thinking of another project when I did 550
Why chmod g= ?
Because we never know what might go in there one day.
Update to 0.0.2
* fixes url encoding issue which mangled 'pkg+http. to .pkg http'
* some comment typos fixed
In the port itself:
* patch /usr/local to %%PREFIX%% in upstream code
* use %%PREFIX%% in periodic script
* correct LICENSE_FILE
Add the first SamDrucker client.
SamDrucker is a collection of small components which create a centralized list
of all packages on all hosts.
samdruckerclientshell is a small client shell, installed on a host, which
submits package information to the SamDrucker host you have already
configured.