Revision
6126 -
Directory Listing
-
[select for diffs]
Modified
Sun Nov 10 19:49:33 2024 UTC
(4 months, 3 weeks ago)
by
dvl
Diff to
previous 6120
'missing-port-categories.sh - make it OFFLINE aware, change get-list-of-current-categories.sh so it no longer observes OFFLINE.'
Revision
6077 -
Directory Listing
-
[select for diffs]
Modified
Sat Aug 24 00:17:37 2024 UTC
(7 months, 1 week ago)
by
dvl
Diff to
previous 6076
dump-package_imports.sh: order by repo_date
- the processed date is relevant
- But repo_date will be the same on all FreshPorts nodes
Revision
6068 -
Directory Listing
-
[select for diffs]
Modified
Mon Aug 19 23:40:56 2024 UTC
(7 months, 2 weeks ago)
by
dvl
Diff to
previous 6067
Adjust for new package importing strategy
see: https://github.com/FreshPorts/packages-import/releases/tag/2.7.0
job-waiting.pl
* remove references to FreshPorts::Config::NewRepoImported
* start logging to FreshPorts::Config::LogJobsWaiting
* no need to launch after report-notification-packages.pl after UpdatePackagesFromRawPackages.py
* that is done by import-via-copy-packagesite-all-raw-fields.py
* wow, in hindsight, I should have created a wrapper script
which invokes import-via-copy-packagesite-all-raw-fields.py, and
UpdatePackagesFromRawPackages.py, and then report-notification-packages.pl
* Perhaps later.
report-notification-packages.pl
* If there is nothing to report upon, don't error out
* no need to remove NewRepoImported any more
Revision
6055 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 31 12:05:02 2024 UTC
(12 months ago)
by
dvl
Diff to
previous 6054
Standardize all report emails.
Subject will be:
FreshPorts Notification: <topic>
Hopefully this will help people to filter easily.
Revision
6054 -
Directory Listing
-
[select for diffs]
Modified
Tue Mar 12 13:07:29 2024 UTC
(12 months, 3 weeks ago)
by
dvl
Diff to
previous 6052
'loop detections added to job-waiting.pl; missing-port-categories.sh will log better; add in report-notification-packages.pl'
Revision
6049 -
Directory Listing
-
[select for diffs]
Modified
Sat Mar 9 20:03:52 2024 UTC
(12 months, 3 weeks ago)
by
dvl
Diff to
previous 6048
Attempt to standardize on one name for emails:
FreshPorts notification
Start keeping stats
Explain what update, delete, insert will mean.
Revision
6037 -
Directory Listing
-
[select for diffs]
Modified
Sat Feb 17 18:44:14 2024 UTC
(13 months, 2 weeks ago)
by
dan
Diff to
previous 6033
Change the rm to rm -f when removing the flag
This script is invoked by a periodic script. The FLAG won't be present then.
Revision
5988 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 20:29:13 2024 UTC
(15 months ago)
by
dan
Diff to
previous 5987
Adjust to use STDIN
add-new-abi.sh and delete-depcreated-abi.sh now take their input from STDIN
(via cat) instead of seprately invoking current_list_of_valid_abi.sh
This save an extra fetch.
Revision
5963 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 24 18:58:21 2023 UTC
(15 months, 1 week ago)
by
dan
Diff to
previous 5962
Use grep -c
ls *.xml will result in ./system_status.sh: /bin/ls: Argument list too long
... when there are large numbers of commits.
Revision
5936 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 10 18:19:01 2023 UTC
(15 months, 3 weeks ago)
by
dan
Diff to
previous 5929
job-waiting.pl
* remove FreshPorts::Config::WWWENPortsCategoriesFlag => 'process_www_en_ports_categories.sh
* add FreshPorts::Config::DefaultVersionsFlag => 'process_default_versions.pl
remove:
* process_CVSROOT_approvers.sh
* process_www_en_ports_categories.sh
add process_default_versions.pl
Revision
5871 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 11 14:45:48 2022 UTC
(2 years, 3 months ago)
by
dan
Diff to
previous 5862
'refresh-ports.sh & process_updating.sh now log to DIRLOG, process_updating.pl looks for AFFECTS and avoids duplicates in cache_clearing_ports, add show-config.sh'
Revision
5858 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 29 12:46:46 2022 UTC
(2 years, 6 months ago)
by
dan
Diff to
previous 5857
Fix UPDATING
With 20220623 and 20220620, 20220620 appears in column one.
That caused failures because of a faulty regex.
https://regex101.com to the rescue for this one
It was broken anyway, because the directory was wrong.
For cache clearing, we need to use the cache_clearing_ports table
The caching module is good only on webservers, not on ingress nodes,
which is where this script runs.
Revision
5802 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 2 14:11:59 2021 UTC
(3 years, 7 months ago)
by
dan
Diff to
previous 5801
Add in long options:
dryrun y/n
debug y/n
limit How many rows to process
offset Where to start int the result set
Stop using syslog, because output is now logged to a file
Revision
5774 -
Directory Listing
-
[select for diffs]
Modified
Wed Aug 11 07:32:13 2021 UTC
(3 years, 7 months ago)
by
dan
Diff to
previous 5773
Move from chroot to jexec.
The ports-tree at ~freshports/ports-jail is no longer used.
Instead, we use one in a true proper jail.
Revision
5756 -
Directory Listing
-
[select for diffs]
Modified
Fri Jul 16 16:17:17 2021 UTC
(3 years, 8 months ago)
by
dan
Diff to
previous 5748
Update to check ports_categories when not processing commits.
Add this to /usr/local/etc/freshports/config.sh:
CHECKPORTSCATEGORIESFILE="${BASEDIR}/signals/check_port_categories"
Revision
5734 -
Directory Listing
-
[select for diffs]
Modified
Sat Jun 26 16:59:56 2021 UTC
(3 years, 9 months ago)
by
dan
Diff to
previous 5733
make-apply-slist.sh is not required in the port jail.
This functionality is carried out by get-list-of-current-categories.sh
Revision
5715 -
Directory Listing
-
[select for diffs]
Modified
Mon May 31 11:03:28 2021 UTC
(3 years, 10 months ago)
by
dan
Diff to
previous 5714
Remove get-list-of-current-categories.pl, not used.
Add get-list-of-current-categories.sh back in, removed via 5713
I really should have waited. Kept this only on dev for a few days.
Then test, staging, and prod would not have been affected.
Revision
5653 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 21 22:39:49 2021 UTC
(4 years ago)
by
dan
Diff to
previous 5652
'freebsd-cvs.sh: say if config.sh is not found
queue-status.pl: stop using the database, sort the queue keys so Nagios output is consistent, look only for files > 5 minutes old.
config.sh.sample: mention PORTSDIRBASE is best without a trailing slash
Add the monitoring directory, but I am not sure it is used yet.
process_vuxml.pl: improve spacing'
Revision
5629 -
Directory Listing
-
[select for diffs]
Modified
Thu Feb 25 00:20:20 2021 UTC
(4 years, 1 month ago)
by
dan
Diff to
previous 5628
Pull in the vuxml code from the main branch, because we need the new vuxml
code here too. While here, do some betting debugging.
Revision
5620 -
Directory Listing
-
[select for diffs]
Modified
Thu Feb 18 18:36:21 2021 UTC
(4 years, 1 month ago)
by
dan
Diff to
previous 5618
'K IW svn-commit.tmp (Modified) Row 3 Col 1
Stop using FreshPorts::Utilities::CommitCountPeriod because we are counting
only file more than 5 minutes old.'
Revision
5590 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 30 20:30:01 2021 UTC
(4 years, 2 months ago)
by
dan
Diff to
previous 5588
Add three new paramaters:
* dryrun - do not update the database
* showchecksums - show the checksums
* printnodes - print the node we are processing
Change from IO::File to IO::String for the $nodeString = $node->toString();
XML. This means the fh->open($nodeString) succeeds.
Revision
5551 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 21 16:00:32 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5550
load_xml_into_db.pl
* modified to check the source repo for this XML
* then invoke one of FreshPorts::xml_munge_git or FreshPorts::xml_munge_svn
load_xml_into_db_git.pl
load_xml_into_db_svn.pl
Modified to invoke the approviaate XML munging class:
* my $Munger = FreshPorts::XML_Munge_git->new($dbh);
* my $Munger = FreshPorts::XML_Munge_svn->new($dbh);
Revision
5549 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 21 15:57:02 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5548
I started to modify these scripts to work with git, then realized they are
no longer used.
email and commit processing is handled by services:
[dan@devgit-ingress01:/usr/local/libexec/freshports-service] $ ls -l
total 26
-r-xr-xr-x 1 root wheel 7267 Dec 6 22:17 freshports.sh
-r-xr-xr-x 1 root wheel 1387 Dec 6 20:16 ingress.sh
-r-xr-xr-x 1 root wheel 4109 Dec 6 22:13 ingress_svn.sh
Look there for invoking the xml processing scripts
Revision
5511 -
Directory Listing
-
[select for diffs]
Modified
Sat Dec 5 13:46:01 2020 UTC
(4 years, 3 months ago)
by
dan
Diff to
previous 5492
Now that I've realized the website should process both svn and git commits,
I wanted a way to inspect an XML file and determine which type of repo it
came from. This is vital because we have two different sets of code to deal
with each origin:
[dan@devgit-ingress01:~/scripts] $ ls -l load_xml_into_db*
-rwxr-xr-x 1 dan dan 1251 Dec 5 03:00 load_xml_into_db.pl
-rwxr-xr-x 1 dan dan 1404 Jul 3 20:40 load_xml_into_db_git.pl
-rwxr-xr-x 1 dan dan 1404 Jul 3 20:40 load_xml_into_db_svn.pl
Invoke load_xml_into_db.pl and it determine the type of XML and then invoke
one of load_xml_into_db_git.pl and load_xml_into_db_svn.pl
In turn, each of those scripts will use one of these modules:
[dan@devgit-ingress01:~/scripts] $ ls -l ~/modules/xml_munge*
-rwxr-xr-x 1 dan dan 5392 Dec 5 02:51 /usr/home/dan/modules/xml_munge.pm
-rwxr-xr-x 1 dan dan 36848 Dec 5 02:24 /usr/home/dan/modules/xml_munge_git.pm
-rwxr-xr-x 1 dan dan 31944 Dec 5 02:37 /usr/home/dan/modules/xml_munge_svn.pm
xml_munge.pm determines the type of repository this commit came from. This
is important because there are slightly different data in the XML. For
example, subversion does not have a commit_hash.
load_xml_into_db.pl learns the type from this data in the XML file:
<UPDATES Version="1.4.0.1" Source="git">
<UPDATES Source="subversion" Version="1.3.2.2">
The Version numbers refer to the code module and is used. Yet.
Revision
5490 -
Directory Listing
-
[select for diffs]
Modified
Sat Nov 14 20:31:30 2020 UTC
(4 years, 4 months ago)
by
dan
Diff to
previous 5483
remove FreshPorts::Branches::GetPathToRepoForBranchCHROOT which seems
outdated for git and does not work
Add FreshPorts::Constants::GitRepos & FreshPorts::Constants::RepoLabelsToGitRepoNames
Revision
5454 -
Directory Listing
-
[select for diffs]
Modified
Sun Jul 26 23:29:33 2020 UTC
(4 years, 8 months ago)
by
dan
Diff to
previous 5453
Add two functions needed for processing git commands.
Perhaps they should be in another file, but config.sh is included by thoese
that need these.
Revision
5304 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 26 22:28:42 2020 UTC
(4 years, 11 months ago)
by
dan
Diff to
previous 5270
Change our job-waiting loop.
When the job_waiting signal is set, run the waiting jobs and keep
runnint them until we don't find anything more to run.
Revision
5215 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 4 13:48:11 2019 UTC
(6 years, 1 month ago)
by
dan
Diff to
previous 5214
'We have two scripts which check master-slave. One queries the databse (.pl), the other queries the Makefile (.sh). Fix both and comment appropriately'
Revision
5157 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 13 19:24:23 2018 UTC
(6 years, 5 months ago)
by
dan
Diff to
previous 5156
'Convert from using p5-Mail-Sender to p5-Email-Sender, Honor $FreshPorts::Config::ReportDebugging for reports, Add test-sending-email.pl'
Revision
5153 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 13 18:58:47 2018 UTC
(6 years, 5 months ago)
by
dan
Diff to
previous 5148
Convert from using p5-Mail-Sender to p5-Email-Sender
* headers are now passed in via a hash
report-new-ports.pl now takes a range, as originally intended
show-config.pl: stop using email_client and use only email_server
Revision
5133 -
Directory Listing
-
[select for diffs]
Modified
Thu Oct 4 15:39:10 2018 UTC
(6 years, 6 months ago)
by
dan
Diff to
previous 5132
Since this is now a periodic, and it's actually running now,
make it work since we need to send an email. The output goes to a log file
via:
$ grep output /etc/periodic.conf
hourly_output=/var/log/hourly.log
daily_output="/var/log/daily.log"
weekly_output="/var/log/weekly.log"
monthly_output="/var/log/monthly.log"
Revision
5093 -
Directory Listing
-
[select for diffs]
Modified
Tue Aug 14 15:08:47 2018 UTC
(6 years, 7 months ago)
by
dan
Diff to
previous 5092
All of the following deficiencies led to hiding permissions issues on a
directory.
* mention when process_vuxml.pl begins
* say vuxml_ident.pl, not vuxml ident
* say vuln_latest.pl, not vuxml latest
* toss the output of vuln_latest.pl into the log file
* if an error occurs during vuln_latest.pl, refer the reader to the logfile
Instead, now we see this in the vuxml.log file:
###
process_vuxml.pl finishes
'/var/db/freshports/cache/html' exists
trying to open '/var/db/freshports/cache/html/vuln-latest.html.tmp'
could not open '/var/db/freshports/cache/html/vuln-latest.html.tmp'
Tue Aug 14 14:59:55 UTC 2018 process_vuxml.sh vuxml finishes
####