From 91c536fbf035596daa90f15569df797239030208 Mon Sep 17 00:00:00 2001
From: Tomas Volf <~@wolfsden.cz>
Date: Tue, 6 Aug 2024 18:27:37 +0200
Subject: [PATCH] sh_select: New port.
This allows selecting the shell to provide ${prefix}/bin/sh link. After
selection is made, `/usr/bin/env sh' picks up the shell installed and configured
via macports.
---
sysutils/sh_select/Portfile | 24 ++++++++++++++++++++++++
sysutils/sh_select/files/base | 1 +
sysutils/sh_select/files/bash | 1 +
sysutils/sh_select/files/dash | 1 +
sysutils/sh_select/files/none | 1 +
sysutils/sh_select/files/zsh | 1 +
6 files changed, 29 insertions(+)
create mode 100644 sysutils/sh_select/Portfile
create mode 100644 sysutils/sh_select/files/base
create mode 100644 sysutils/sh_select/files/bash
create mode 100644 sysutils/sh_select/files/dash
create mode 100644 sysutils/sh_select/files/none
create mode 100644 sysutils/sh_select/files/zsh
diff --git a/sysutils/sh_select/Portfile b/sysutils/sh_select/Portfile
new file mode 100644
index 00000000000..7ee4939833c
-
|
+
|
|
| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | PortGroup stub 1.0 |
| 5 | PortGroup select 1.0 |
| 6 | |
| 7 | name sh_select |
| 8 | version 0.1 |
| 9 | revision 1 |
| 10 | categories sysutils |
| 11 | maintainers wolfsden.cz:~+macports |
| 12 | supported_archs noarch |
| 13 | platforms any |
| 14 | description Common files for selecting default shell |
| 15 | long_description This port installs files that allow 'port select' \ |
| 16 | to create ${prefix}/bin/sh link to the preferred shell. |
| 17 | |
| 18 | select.entries {sh base} \ |
| 19 | {sh none} \ |
| 20 | {sh bash} \ |
| 21 | {sh dash} \ |
| 22 | {sh zsh} |
| 23 | |
| 24 | livecheck.type none |
diff --git a/sysutils/sh_select/files/base b/sysutils/sh_select/files/base
new file mode 100644
index 00000000000..0cdb4d4570a
diff --git a/sysutils/sh_select/files/bash b/sysutils/sh_select/files/bash
new file mode 100644
index 00000000000..06a26405822
diff --git a/sysutils/sh_select/files/dash b/sysutils/sh_select/files/dash
new file mode 100644
index 00000000000..122d15f46aa
diff --git a/sysutils/sh_select/files/none b/sysutils/sh_select/files/none
new file mode 100644
index 00000000000..39cdd0ded6d
diff --git a/sysutils/sh_select/files/zsh b/sysutils/sh_select/files/zsh
new file mode 100644
index 00000000000..18b45e935ba