packaging up the git-specific code

This documents the git specific code which I need to package and deploy.

/usr/local/libexec/freshports

This is installed by freshports-scripts-git, and I have the directory symlinked to ~/scripts on devgit.freshports.org for convenience.

In this directory, we have the following symlinks to other directories:

[dan@devgit-ingress01:~/scripts] $ find . -type l | xargs ls -l
lrwxr-xr-x  1 dan   dan    14 Dec  6 23:21 ./.#freebsd-cvs.sh -> dan@here.92757
lrwxr-xr-x  1 root  dan    64 Jul  4  2020 ./check_git.sh -> /usr/home/dan/src/git_proc_commit/git-to-freshports/check_git.sh
lrwxr-xr-x  1 root  wheel  35 Nov 26 04:20 ./config.sh -> /usr/local/etc/freshports/config.sh
lrwxr-xr-x  1 dan   dan    64 Jul  3  2020 ./git-delta.sh -> /usr/home/dan/src/git_proc_commit/git-to-freshports/git-delta.sh
lrwxr-xr-x  1 dan   dan    75 Aug  6 21:16 ./git-range-of-commits.sh -> /usr/home/dan/src/git_proc_commit/git-to-freshports/git-range-of-commits.sh
lrwxr-xr-x  1 root  dan    72 Jul  5  2020 ./git-single-commit.sh -> /usr/home/dan/src/git_proc_commit/git-to-freshports/git-single-commit.sh
lrwxr-xr-x  1 root  dan    76 Jul  5  2020 ./git-to-freshports-xml.py -> /usr/home/dan/src/git_proc_commit/git-to-freshports/git-to-freshports-xml.py
[dan@devgit-ingress01:~/scripts] $ 

Ignoring lines 2 and 4 which are not relevant, we have this list of files, all of which reside in /usr/home/dan/src/git_proc_commit/git-to-freshports/:

  1. check_git.sh
  2. git-delta.sh
  3. git-range-of-commits.sh
  4. git-single-commit.sh
  5. git-to-freshports-xml.py

What repo is this?

[dan@devgit-ingress01:~/src/git_proc_commit/git-to-freshports] $ git remote -v
origin	git@github.com:FreshPorts/git_proc_commit.git (fetch)
origin	git@git.langille.org:FreshPorts/git_proc_commit.git (push)
origin	git@github.com:FreshPorts/git_proc_commit.git (push)

OK, we do that.

/usr/local/lib/perl5/site_perl/FreshPorts

This directory is populated by p5-freshports-modules-git, and I have the directory symlinked to ~/modules on devgit.freshports.org for convenience.

[dan@devgit-ingress01:/usr/local/lib/perl5/site_perl/FreshPorts] $ find . -type l | xargs ls -l 
lrwxr-xr-x  1 root  freshports  35 Jul 18 17:12 ./config.pm -> /usr/local/etc/freshports/config.pm

We have nothing installed here.

Which makes sense, it’s all on the ingress side – collecting of commits and creating XML.

This makes it easier. Just one package, and I’ll just install it into that single directory.

EDIT: 2021-01-08 Package has been created and this is what it installs:

[dan@empty:/usr/local/libexec/freshports] $ ls -l
total 57
-r-xr-xr-x  1 root  wheel   505 Jan  9 02:03 check_git.sh
-r-xr-xr-x  1 root  wheel  2947 Jan  9 02:03 git-delta.sh
-r-xr-xr-x  1 root  wheel  1663 Jan  9 02:03 git-range-of-commits.sh
-r-xr-xr-x  1 root  wheel  1589 Jan  9 02:03 git-single-commit.sh
-r-xr-xr-x  1 root  wheel  9359 Jan  9 02:03 git-to-freshports-xml.py
[dan@empty:/usr/local/libexec/freshports] $ pkg info -l freshports-git-proc-commit
freshports-git-proc-commit-0.0.1:
	/usr/local/libexec/freshports/check_git.sh
	/usr/local/libexec/freshports/git-delta.sh
	/usr/local/libexec/freshports/git-range-of-commits.sh
	/usr/local/libexec/freshports/git-single-commit.sh
	/usr/local/libexec/freshports/git-to-freshports-xml.py
[dan@empty:/usr/local/libexec/freshports] $ 
[dan@empty:~] $ pkg info -d freshports-git-proc-commit
freshports-git-proc-commit-0.0.1_1:
	python37-3.7.9_1
	py37-pygit2-1.3.0
	py37-lxml-4.6.2
	git-2.30.0
[dan@empty:~] $ 
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top