Bug 251805 - mail/mailagent: fetch source from github
Summary: mail/mailagent: fetch source from github
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
Keywords: buildisok
Depends on:
Reported: 2020-12-13 13:44 UTC by Yoshiaki Kasahara
Modified: 2021-02-16 01:34 UTC (History)
1 user (show)

See Also:

a patch to fetch source from github, and generate revision.h (1.74 KB, patch)
2020-12-13 13:44 UTC, Yoshiaki Kasahara
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yoshiaki Kasahara 2020-12-13 13:44:46 UTC
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.
Comment 1 Automation User 2021-02-14 00:32:08 UTC
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/255917614
Comment 2 commit-hook freebsd_committer 2021-02-16 01:33:24 UTC
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

  - 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]