diff options
Diffstat (limited to 'roles/host/templates/usr_local_bin_update_ports.sh.j2')
| -rw-r--r-- | roles/host/templates/usr_local_bin_update_ports.sh.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/host/templates/usr_local_bin_update_ports.sh.j2 b/roles/host/templates/usr_local_bin_update_ports.sh.j2 index ad4102d..7063652 100644 --- a/roles/host/templates/usr_local_bin_update_ports.sh.j2 +++ b/roles/host/templates/usr_local_bin_update_ports.sh.j2 @@ -53,6 +53,13 @@ custom) rm -rf "${BASEDIR}/custom" git clone "$REMOTE_CUSTOM" "${BASEDIR}/custom" fi + + # Regenerate poudriere pkglist from all ports in the overlay + echo "Regenerating poudriere pkglist..." + find "${BASEDIR}/custom" -name Makefile -mindepth 3 -maxdepth 3 | \ + sed "s|${BASEDIR}/custom/||; s|/Makefile||" | \ + sort > /usr/local/etc/poudriere-pkglist + echo "Pkglist updated: $(wc -l < /usr/local/etc/poudriere-pkglist) ports." echo "Done. Custom ports overlay updated." ;; *) |
