commit:     9fe9799cbf6ac46173730ed88379e502f36b1415
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 19 20:37:35 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Wed Aug 20 06:37:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fe9799c

sys-apps/gentoo-wsl-config: new package, add 0.1.14

Direct stable (naughty, I know) as we've been testing this out-of-tree
for a few months, but need a keyworded package to make official images
a reality.

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 sys-apps/gentoo-wsl-config/Manifest                |  1 +
 .../gentoo-wsl-config-0.1.14.ebuild                | 60 ++++++++++++++++++++++
 sys-apps/gentoo-wsl-config/metadata.xml            | 25 +++++++++
 3 files changed, 86 insertions(+)

diff --git a/sys-apps/gentoo-wsl-config/Manifest 
b/sys-apps/gentoo-wsl-config/Manifest
new file mode 100644
index 000000000000..447d4ad47e37
--- /dev/null
+++ b/sys-apps/gentoo-wsl-config/Manifest
@@ -0,0 +1 @@
+DIST gentoo-wsl-config-0.1.14.tar.bz2 102441 BLAKE2B 
d27a4df36d2cdcfab3d9b076d736aaccc2127f4c9187b05bfb2fd6f2fd30e4cde861b71124c471417fbc08cd038e764ba05de44ed817b556bf9805fce121cedc
 SHA512 
384873ba329fc7c1e7329ff021544d90662a37a322c0c794341cf80694c9ac3c8c8970dcae160eee6597f621e44230e840c538a3a1ec125023255b51e4960680

diff --git a/sys-apps/gentoo-wsl-config/gentoo-wsl-config-0.1.14.ebuild 
b/sys-apps/gentoo-wsl-config/gentoo-wsl-config-0.1.14.ebuild
new file mode 100644
index 000000000000..e60eb082e5f6
--- /dev/null
+++ b/sys-apps/gentoo-wsl-config/gentoo-wsl-config-0.1.14.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="WSL2 configuration for Gentoo Linux"
+
+HOMEPAGE="https://www.gentoo.org/";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gentoo-wsl-config.git";
+else
+       
SRC_URI="https://gitweb.gentoo.org/proj/gentoo-wsl-config.git/snapshot/${P}.tar.bz2";
+       KEYWORDS="amd64 arm64" # Only add arches supported by WSL
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+IUSE="+interop systemd"
+
+RDEPEND="
+       systemd? (
+               sys-apps/systemd
+       )
+       app-eselect/eselect-repository
+"
+
+src_configure() {
+       # Only 'enables' systemd insofar as the generated config will attempt to
+       # have WSL start systemd; this does not build anything against systemd
+       local emesonargs=(
+               $(meson_use interop)
+               $(meson_use systemd)
+       )
+       meson_src_configure
+}
+
+pkg_postinst() {
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "Gentoo WSL configuration has been installed."
+               elog "Please run 'wsl --shutdown' to apply the changes."
+               elog "You may also want to run 'wsl --update' to ensure you 
have the latest WSL version."
+               if use systemd; then
+                       ewarn "Systemd support is enabled, however some units 
are incompatible with WSL."
+                       ewarn "Please disable or mask the following units:"
+                       ewarn " * systemd-resolved.service"
+                       ewarn " * systemd-networkd.service"
+                       ewarn " * NetworkManager.service"
+                       ewarn " * systemd-tmpfiles-setup.service"
+                       ewarn " * systemd-tmpfiles-clean.service"
+                       ewarn " * systemd-tmpfiles-clean.timer"
+                       ewarn " * systemd-tmpfiles-setup-dev-early.service"
+                       ewarn " * systemd-tmpfiles-setup-dev.service"
+                       ewarn " * tmp.mount"
+               fi
+       fi
+}

diff --git a/sys-apps/gentoo-wsl-config/metadata.xml 
b/sys-apps/gentoo-wsl-config/metadata.xml
new file mode 100644
index 000000000000..ef896b1da4c4
--- /dev/null
+++ b/sys-apps/gentoo-wsl-config/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <description>Primary maintainer</description>
+  </maintainer>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo WSL Project</name>
+  </maintainer>
+  <longdescription>
+    This repository contains a configuration for Gentoo Linux running on 
Windows Subsystem for Linux (WSL) 2.
+    It is designed to provide a seamless experience for users who want to run 
(or try) Gentoo on their Windows machines.
+
+    This package should be installed in the WSL 2 environment; it is not 
intended to be used on a native Gentoo installation.
+  </longdescription>
+  <use>
+    <flag name="interop">Enable Windows interoperability features for 
WSL</flag>
+  </use>
+  <upstream>
+    <remote-id type="gentoo">proj/gentoo-wsl-config</remote-id>
+    <remote-id type="github">kangie/gentoo-wsl-config</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to