diff -Nur ipdbtools/Makefile ipdbtools.new/Makefile --- ipdbtools/Makefile 2021-04-07 10:06:21.000000000 +0200 +++ ipdbtools.new/Makefile 2022-07-19 17:36:51.563579000 +0200 @@ -15,12 +15,19 @@ GH_ACCOUNT= cyclaero GH_PROJECT= ipdb +SUB_FILES= 800.ipdb-update pkg-message PLIST_FILES= bin/ipup \ bin/ipdb \ bin/ipdb-update.sh \ man/man1/ipdbtools.1.gz \ man/man1/ipup.1.gz \ man/man1/ipdb.1.gz \ - man/man1/ipdb-update.sh.1.gz + man/man1/ipdb-update.sh.1.gz \ + etc/periodic/weekly/800.ipdb-update + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly + ${INSTALL_SCRIPT} ${WRKDIR}/800.ipdb-update \ + ${STAGEDIR}${PREFIX}/etc/periodic/weekly/800.ipdb-update .include diff -Nur ipdbtools/files/800.ipdb-update.in ipdbtools.new/files/800.ipdb-update.in --- ipdbtools/files/800.ipdb-update.in 1970-01-01 01:00:00.000000000 +0100 +++ ipdbtools.new/files/800.ipdb-update.in 2022-07-19 17:40:49.719205000 +0200 @@ -0,0 +1,33 @@ +#!/bin/sh + +# Update the ipdb database. +# +# Add the following lines to /etc/periodic.conf: +# +# weekly_ipdb_update_enable (bool): Set to "NO" by default + +# If there is a global system configuration file, suck it in. +# +if [ -r /etc/defaults/periodic.conf ] +then + . /etc/defaults/periodic.conf + source_periodic_confs +fi + +case "$weekly_ipdb_update_enable" in + [Yy][Ee][Ss]) + echo + echo "Updating ipdb database:" + + anticongestion + + %%LOCALBASE%%/bin/ipdb-update.sh + rc=$? + if [ $rc != 0 ]; then + echo "**** ipdb-update.sh exitted with $rc." + exit 3 + fi + ;; +esac + +exit 0 diff -Nur ipdbtools/files/pkg-message.in ipdbtools.new/files/pkg-message.in --- ipdbtools/files/pkg-message.in 1970-01-01 01:00:00.000000000 +0100 +++ ipdbtools.new/files/pkg-message.in 2022-07-19 17:32:36.084840000 +0200 @@ -0,0 +1,11 @@ +[ +{ type: install + message: <