Created attachment 220521 [details]
a patch to fetch source from github, and generate revision.h
I'm hosting the tarball of mailagent at https://eron.info/ (from ports/144204), but I'll have to retire this server really soon, so I want to change where to fetch source.
The original author of mailagent had moved the source repository from sourceforge svn to github, so I made a patch to fetch source from github. There is no usable tag, so I put the hash of current HEAD, and regenerated distinfo.
The file 'revision.h' is generated by files/patch-revision.h, because the revision number is dynamically generated by the line count of 'git log --oneline master' in bin/svn-revision, and it cannot be done in the ports tree (the fetched tarball doesn't contain git metadata). I generated the file locally and made the patch file.
There are several commits after revision 78(svn) to 106(git), but I believe there are no significant changes in functionality of mailagent.
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/255917614
A commit references this bug:
Date: Tue Feb 16 01:33:06 UTC 2021
New revision: 565381
- Update to the latest commit 
- Fetch source from GitHub 
- Trim unnecessary parts of pkg-descr 
- Add WWW 
PR: 251805 
Submitted by: email@example.com , amdmi3