git: f305cf6bd080 - main - audio/alsa-utils: Switch master site to GitHub.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Wed, 13 Oct 2021 15:14:31 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f305cf6bd080353d4a3b44d1573b4455c12e2f92

commit f305cf6bd080353d4a3b44d1573b4455c12e2f92
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2021-10-13 00:21:23 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2021-10-13 15:14:24 +0000

    audio/alsa-utils: Switch master site to GitHub.
    
    The original distfiles are getting hard to come by for some reason, so
    switch to pulling source tarballs directly from GitHub.  Replace
    patches that apply to generated files with patches that apply to their
    sources.
---
 audio/alsa-utils/Makefile                        |  9 +++++++--
 audio/alsa-utils/distinfo                        |  6 +++---
 audio/alsa-utils/files/patch-alsactl_Makefile.am |  8 ++++++++
 audio/alsa-utils/files/patch-alsactl_Makefile.in | 11 -----------
 4 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/audio/alsa-utils/Makefile b/audio/alsa-utils/Makefile
index e32433bd854c..a5ce784d9bfd 100644
--- a/audio/alsa-utils/Makefile
+++ b/audio/alsa-utils/Makefile
@@ -2,9 +2,14 @@
 
 PORTNAME=	alsa-utils
 PORTVERSION=	1.2.2
+PORTREVISION=	1
+DISTVERSIONPREFIX=	v
 CATEGORIES=	audio
-MASTER_SITES=	ftp://ftp.alsa-project.org/pub/utils/ \
-		GENTOO
+MASTER_SITES=	GH
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	alsa-project
+GH_PROJECT=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	ALSA compatibility utilities
diff --git a/audio/alsa-utils/distinfo b/audio/alsa-utils/distinfo
index 55464f24cd0b..7af3684defc2 100644
--- a/audio/alsa-utils/distinfo
+++ b/audio/alsa-utils/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1615527978
-SHA256 (alsa-utils-1.2.2.tar.bz2) = 44807bd578c5f6df6e91a11b8d37e546424a5a1ea8d8e659ee359fe01730e4f3
-SIZE (alsa-utils-1.2.2.tar.bz2) = 1274821
+TIMESTAMP = 1634081670
+SHA256 (alsa-project-alsa-utils-v1.2.2_GH0.tar.gz) = 9da1ce4f12a4dd56d55cd5a8f6ae7d56ac91397c3d37fdfcd737adeeb34fce1c
+SIZE (alsa-project-alsa-utils-v1.2.2_GH0.tar.gz) = 1252639
diff --git a/audio/alsa-utils/files/patch-alsactl_Makefile.am b/audio/alsa-utils/files/patch-alsactl_Makefile.am
new file mode 100644
index 000000000000..43e54d03abe3
--- /dev/null
+++ b/audio/alsa-utils/files/patch-alsactl_Makefile.am
@@ -0,0 +1,8 @@
+--- alsactl/Makefile.am.orig	2020-02-19 12:02:10 UTC
++++ alsactl/Makefile.am
+@@ -66,4 +66,4 @@ CLEANFILES = \
+ 	90-alsa-restore.rules
+ 
+ %.7: %.xml
+-	xmlto man $?
++	$(xmlto) man $?
diff --git a/audio/alsa-utils/files/patch-alsactl_Makefile.in b/audio/alsa-utils/files/patch-alsactl_Makefile.in
deleted file mode 100644
index 298b89b22cd8..000000000000
--- a/audio/alsa-utils/files/patch-alsactl_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- alsactl/Makefile.in.orig	2021-03-12 04:46:51 UTC
-+++ alsactl/Makefile.in
-@@ -1110,7 +1110,7 @@ alsa-restore.service: alsa-restore.service.in
- 	$(edit)
- 
- %.7: %.xml
--	xmlto man $?
-+	$(xmlto) man $?
- 
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.