Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170780281
D24282.id70170.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24282.id70170.diff
View Options
Index: Mk/bsd.sites.mk
===================================================================
--- Mk/bsd.sites.mk
+++ Mk/bsd.sites.mk
@@ -1046,6 +1046,41 @@
.endfor
.endif
+.if !defined(IGNORE_MASTER_SITE_SOURCEHUT)
+#
+# In order to use sourcehut your port must define USE_SOURCEHUT and the
+# following variables:
+#
+# SRHT_SITE - site URL hosting sourcehut and the project
+# default: https://git.sr.ht
+#
+# SRHT_ACCOUNT - account name of the sourcehut user hosting the project.
+# Use it without the leading '~'.
+# default: ${PORTNAME}
+#
+# SRHT_PROJECT - name of the project on sourcehut
+# default: ${PORTNAME}
+#
+# SRHT_TAGNAME - name of the tag to download (2.0.1, hash, ...)
+# Using the name of a branch here is incorrect.
+# default: ${DISTVERSIONFULL}
+#
+.if defined(USE_SOURCEHUT)
+SRHT_SITE_DEFAULT= https://git.sr.ht
+SRHT_SITE?= ${SRHT_SITE_DEFAULT}
+SRHT_ACCOUNT_DEFAULT= ${PORTNAME}
+SRHT_ACCOUNT?= ${SRHT_ACCOUNT_DEFAULT}
+SRHT_PROJECT_DEFAULT= ${PORTNAME}
+SRHT_PROJECT?= ${SRHT_PROJECT_DEFAULT}
+SRHT_TAGNAME?= ${PORTVERSION}
+
+DISTNAME:= ${SRHT_PROJECT}-${PORTVERSION}
+
+MASTER_SITES+= ${SRHT_SITE}/~${SRHT_ACCOUNT}/${SRHT_PROJECT}/archive/${SRHT_TAGNAME}.tar.gz?dummy=/
+
+.endif # defined(USE_SOURCEHUT)
+.endif # !defined(IGNORE_MASTER_SITE_SOURCEHUT)
+
.if !defined(IGNORE_MASTER_SITE_SOURCEWARE)
MASTER_SITE_SOURCEWARE+= \
https://mirrors.kernel.org/sourceware/%SUBDIR%/ \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 2:26 PM (15 m, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38441907
Default Alt Text
D24282.id70170.diff (1 KB)
Attached To
Mode
D24282: New master site: sourcehut
Attached
Detach File
Event Timeline
Log In to Comment