Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137487957
D19866.id56377.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.id56377.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,36 @@
+# $FreeBSD$
+
+PORTNAME= etc_os-release
+PORTVERSION= 0.1
+CATEGORIES= sysutils kde gnome
+MASTER_SITES= #
+DISTFILES= #
+EXTRACT_ONLY= #
+
+MAINTAINER= tcberner@FreeBSD.org
+COMMENT= Operating system identification file
+
+NO_BUILD= yes
+
+PLIST_FILES= etc/os-release
+
+VERSION!= freebsd-version -u
+VERSION_ID= ${VERSION:C/^([0-9\.]+).*/\1/}
+
+CONTENTS= 'NAME="FreeBSD"' \
+ 'VERSION="${VERSION}"' \
+ 'ID="${VERSION_ID}"' \
+ 'VERSION_ID="freebsd"' \
+ 'ANSI_COLIR="0;31"' \
+ 'PRETTY_NAME="FreeBSD ${VERSION}"' \
+ 'CPE_NAME="cpe:/o:freebsd:freebsd:${VERSION_ID}"' \
+ 'HOME_URL="https://freebsd.org/"' \
+ 'BUG_REPORT_URL="https://bugs.freebsd.org"'
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc
+. for line in ${CONTENTS}
+ ${ECHO} -e ${line} >> ${STAGEDIR}${PREFIX}/${PLIST_FILES}
+. endfor
+
+.include <bsd.port.mk>
Index: sysutils/etc_os-release/pkg-descr
===================================================================
--- /dev/null
+++ sysutils/etc_os-release/pkg-descr
@@ -0,0 +1,4 @@
+This package installs ${PREFIX}/etc/os-release file which contains version and
+other information about installed operating system.
+
+WWW: https://www.freedesktop.org/software/systemd/man/os-release.html
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 24, 10:24 PM (15 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26077757
Default Alt Text
D19866.id56377.diff (2 KB)
Attached To
Mode
D19866: os-release: draft of os-release port
Attached
Detach File
Event Timeline
Log In to Comment