Ticket #70498: 0001-sh_select-New-port.patch

File 0001-sh_select-New-port.patch, 2.9 KB (added by graywolf (W.), 3 months ago)
  • new file sysutils/sh_select/Portfile

    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
     3PortSystem          1.0
     4PortGroup           stub 1.0
     5PortGroup           select 1.0
     6
     7name                sh_select
     8version             0.1
     9revision            1
     10categories          sysutils
     11maintainers         wolfsden.cz:~+macports
     12supported_archs     noarch
     13platforms           any
     14description         Common files for selecting default shell
     15long_description    This port installs files that allow 'port select' \
     16                    to create ${prefix}/bin/sh link to the preferred shell.
     17
     18select.entries      {sh base} \
     19                    {sh none} \
     20                    {sh bash} \
     21                    {sh dash} \
     22                    {sh zsh}
     23
     24livecheck.type      none
  • new file sysutils/sh_select/files/base

    diff --git a/sysutils/sh_select/files/base b/sysutils/sh_select/files/base
    new file mode 100644
    index 00000000000..0cdb4d4570a
    - +  
     1bin/sh
  • new file sysutils/sh_select/files/bash

    diff --git a/sysutils/sh_select/files/bash b/sysutils/sh_select/files/bash
    new file mode 100644
    index 00000000000..06a26405822
    - +  
     1bin/bash
  • new file sysutils/sh_select/files/dash

    diff --git a/sysutils/sh_select/files/dash b/sysutils/sh_select/files/dash
    new file mode 100644
    index 00000000000..122d15f46aa
    - +  
     1bin/dash
  • new file sysutils/sh_select/files/none

    diff --git a/sysutils/sh_select/files/none b/sysutils/sh_select/files/none
    new file mode 100644
    index 00000000000..39cdd0ded6d
    - +  
     1-
  • new file sysutils/sh_select/files/zsh

    diff --git a/sysutils/sh_select/files/zsh b/sysutils/sh_select/files/zsh
    new file mode 100644
    index 00000000000..18b45e935ba
    - +  
     1bin/zsh