Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164974460
D19866.id56020.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D19866.id56020.diff
View Options
Index: devel/qt5-core/Makefile
===================================================================
--- devel/qt5-core/Makefile
+++ devel/qt5-core/Makefile
@@ -2,6 +2,7 @@
PORTNAME= core
DISTVERSION= ${QT5_VERSION}
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
@@ -10,6 +11,7 @@
LIB_DEPENDS= libicui18n.so:devel/icu \
libpcre2-posix.so:devel/pcre2
+RUN_DEPENDS= etc_os-release>0:sysutils/etc_os-release
USES= compiler:c++11-lang gnome qmake:no_env qt-dist:5,base
USE_GNOME= glib20
@@ -50,6 +52,8 @@
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
.endfor
+ ${REINPLACE_CMD} -e '/readEtcFile/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \
+ ${WRKSRC}/src/corelib/global/qglobal.cpp
post-install:
# Allow qconfig.h to be customized by single ports.
Index: sysutils/Makefile
===================================================================
--- sysutils/Makefile
+++ sysutils/Makefile
@@ -301,6 +301,7 @@
SUBDIR += env4801
SUBDIR += envconsul
SUBDIR += epazote
+ SUBDIR += etc_os-release
SUBDIR += etcmerge
SUBDIR += etcupdate
SUBDIR += eventlog
Index: sysutils/etc_os-release/Makefile
===================================================================
--- /dev/null
+++ sysutils/etc_os-release/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME= etc_os-release
+PORTVERSION= 0.1
+CATEGORIES= sysutils kde gnome
+
+MAINTAINER= tcberner@FreeBSD.org
+COMMENT= Operating system identification file
+
+MASTER_SITES= #
+DISTFILES= #
+EXTRACT_ONLY= #
+NO_BUILD= yes
+
+VERSION!= freebsd-version -u
+VERSION_ID= ${VERSION:C/^([0-9\.]+).*/\1/}
+
+SUB_FILES= os-release
+SUB_LIST= NAME="FreeBSD" \
+ VERSION="${VERSION}" \
+ ID="freebsd" \
+ VERSION_ID="${VERSION_ID}" \
+ PRETTY_NAME="FreeBSD ${VERSION}"
+
+PLIST_FILES= etc/os-release
+
+do-install: apply-slist
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc && ${INSTALL_DATA} ${WRKDIR}/os-release ${STAGEDIR}${PREFIX}/etc
+
+.include <bsd.port.mk>
Index: sysutils/etc_os-release/files/os-release.in
===================================================================
--- /dev/null
+++ sysutils/etc_os-release/files/os-release.in
@@ -0,0 +1,9 @@
+NAME=%%NAME%%
+VERSION="%%VERSION%%"
+ID="%%ID%%"
+VERSION_ID=%%VERSION_ID%%
+PRETTY_NAME="%%PRETTY_NAME%%"
+ANSI_COLOR="0;31"
+CPE_NAME="cpe:/o:freebsd:freebsd:%%VERSION_ID%%"
+HOME_URL="https://freebsd.org/"
+BUG_REPORT_URL="https://bugs.freebsd.org"
Index: sysutils/etc_os-release/pkg-descr
===================================================================
--- /dev/null
+++ sysutils/etc_os-release/pkg-descr
@@ -0,0 +1,6 @@
+os-release — Operating system identification
+
+/usr/local/etc/os-release contains information on the version of
+the installed operating system.
+
+WWW: https://www.freedesktop.org/software/systemd/man/os-release.html
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 6, 4:40 AM (15 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36076815
Default Alt Text
D19866.id56020.diff (2 KB)
Attached To
Mode
D19866: os-release: draft of os-release port
Attached
Detach File
Event Timeline
Log In to Comment