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: Author: amdmi3 Date: Tue Feb 16 01:33:06 UTC 2021 New revision: 565381 URL: https://svnweb.freebsd.org/changeset/ports/565381 Log: - Update to the latest commit [1] - Fetch source from GitHub [1] - Trim unnecessary parts of pkg-descr [2] - Add WWW [2] PR: 251805 [1] Submitted by: ykasap@gmail.com [1], amdmi3 [2] Changes: head/mail/mailagent/Makefile head/mail/mailagent/distinfo head/mail/mailagent/files/patch-Configure head/mail/mailagent/pkg-descr