2020

My ansible changes when deploying a new host

This is more for my own sanity for the next time I deploy a new FreshPorts host. There is no useful information here for anyone else. Base this upon the existing host: svn cp host_vars/foo.example.org host_vars/NEWHOST svn cp roles/postgresql-server/templates/hosts/foo.example.org roles/postgresql-server/templates/hosts/NEWHOST Edit these files: host_vars/NEWHOST roles/postgresql-server/templates/hosts/NEWHOST/pg_hba.conf.j2 roles/postgresql-server/templates/hosts/NEWHOST/postgresql.conf.j2 Create ssl certs for: NEWHOST.freshports.org NEWHOST.freshsource.org NEWHOST

My ansible changes when deploying a new host Read More »

Getting the pkg-plist contents for a FreeBSD port/package

One of the lesser known FreshPorts features is searching pkg-plist. You want nslookup and dig but you can’t find the package which installs that. The FreshPorts search can find it for you. When a new commit occurs for a given port, FreshPorts extracts and store the pkg-plist information. This allows you to search. How does

Getting the pkg-plist contents for a FreeBSD port/package Read More »

ignore case when browsing to a cat/port – the details of how to do that

This idea came to me today from swills: stupid question, would it be possible to make the urls on freshports case insensitive? so that like https://www.freshports.org/x11/libx11 would go to https://www.freshports.org/x11/libX11 After confirming this was for manually typed URLs (as opposed to generated links), I started looking into it. This is what I found. In this

ignore case when browsing to a cat/port – the details of how to do that Read More »

for git commits which is better: ‘Rename A to B’ or’ Delete A; Add B’

In my recent post, my conclusion preferred Rename over Delete & Add. Now I’ve changed my mind. I looked at the code, and the database. Now I prefer Delete & Add. The database In the database, there is no way to represent the Rename action without modifying the structure of the commit_log_elements table: The change_type

for git commits which is better: ‘Rename A to B’ or’ Delete A; Add B’ Read More »

subversion vs git – in the database

I want to document some of the not-visible differences between a git commit and a subversion commit when in the database. subversion git id 808224 808303 message_id 202007091812.069IC6QK044004@repo.freebsd.org a1d2d5b40fba4186daf29b2b2e9ff2dd8b7d8039 message_date 2020-07-09 18:12:06+00 2020-07-09 18:12:06+00 message_subject svn commit: r541803 – in head/devel: . py-absl-py [null] date_added 2020-07-09 18:39:53.510006+00 2020-07-09 18:59:49.863092+00 commit_date 2020-07-09 18:12:06+00 2020-07-09 18:12:06+00 committer

subversion vs git – in the database Read More »

Manual initiation of git commit processing

This is another post in the FreshPorts-git series. Yesterday was good progress. This morning (at Sat Jul 4 13:05:10 UTC 2020) I manually initiated another import of commits from git. It looked like this: This created one XML file for each git commit. The files are dropped into the ~freshports/messages-queues/incoming directory. The freshports-git daemon (well,

Manual initiation of git commit processing Read More »

Scroll to Top