[PATCH] sed-i: new package at 0.1

4 replies

[PATCH] sed-i: new package at 0.1

From: Aaron G
Manifest:

    /var/db/kiss/installed/sed-i/version
    /var/db/kiss/installed/sed-i/sources
    /var/db/kiss/installed/sed-i/post-install
    /var/db/kiss/installed/sed-i/manifest
    /var/db/kiss/installed/sed-i/checksums
    /var/db/kiss/installed/sed-i/build
    /var/db/kiss/installed/sed-i/
    /var/db/kiss/installed/
    /var/db/kiss/
    /var/db/
    /var/
    /usr/local/bin/sed
    /usr/local/bin/
    /usr/local/
    /usr/
---
 community/sed-i/build        | 3 +++
 community/sed-i/checksums    | 1 +
 community/sed-i/post-install | 3 +++
 community/sed-i/sources      | 1 +
 community/sed-i/version      | 1 +
 5 files changed, 9 insertions(+)
 create mode 100755 community/sed-i/build
 create mode 100644 community/sed-i/checksums
 create mode 100755 community/sed-i/post-install
 create mode 100644 community/sed-i/sources
 create mode 100644 community/sed-i/version

diff --git a/community/sed-i/build b/community/sed-i/build
new file mode 100755
index 00000000..d5f438d8
--- /dev/null
+++ b/community/sed-i/build
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+make DESTDIR="$1" install
diff --git a/community/sed-i/checksums b/community/sed-i/checksums
new file mode 100644
index 00000000..d722e231
--- /dev/null
+++ b/community/sed-i/checksums
@@ -0,0 +1 @@
+7c7c7ac1809f607bd5fbf97ea23f6209d628454e16641295aa559297ebb7108e
diff --git a/community/sed-i/post-install b/community/sed-i/post-install
new file mode 100755
index 00000000..cb8dee47
--- /dev/null
+++ b/community/sed-i/post-install
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+printf '%s\n' 'NOTE: add /usr/local/bin to the beginning of your $PATH'
diff --git a/community/sed-i/sources b/community/sed-i/sources
new file mode 100644
index 00000000..a078f5b4
--- /dev/null
+++ b/community/sed-i/sources
@@ -0,0 +1 @@
+https://github.com/aaronNGi/sed-i/archive/refs/tags/0.1.tar.gz
diff --git a/community/sed-i/version b/community/sed-i/version
new file mode 100644
index 00000000..084a74c2
--- /dev/null
+++ b/community/sed-i/version
@@ -0,0 +1 @@
+0.1 1
-- 
2.31.1

1 reply

Re: [PATCH] sed-i: new package at 0.1

From: Dilyn Corner
On Sat May 22, 2021 at 9:42 AM EDT, Aaron G wrote:
> Since you (Dilyn) did not like the default install location
> /usr/local/bin, how about we use /usr/lib/sed-i/sed, just like ccache(1)
> does. What do you think?
>
> --
> Aaron

That's a brilliant idea and I'm not sure why we didn't think of that sooner!

Dilyn
1 reply

Re: [PATCH] sed-i: new package at 0.1

From: Aaron G
May 22, 2021 3:45 PM, "Dilyn Corner" <dilyn.corner@k1sslinux.org> wrote:

> I'm not sure why we didn't think of that sooner!

lol, indeed.  I installed ccache(1) on a new install today, that's how I
got reminded about that path.  I will update the patch later.


-- 
Aaron

5 replies

[PATCH v2] sed-i: new package at 0.1

From: Aaron G
A wrapper for sed(1), to emulate the non-portable in-place editing
capability.

Manifest:

/var/db/kiss/installed/sed-i/version
/var/db/kiss/installed/sed-i/sources
/var/db/kiss/installed/sed-i/post-install
/var/db/kiss/installed/sed-i/manifest
/var/db/kiss/installed/sed-i/checksums
/var/db/kiss/installed/sed-i/build
/var/db/kiss/installed/sed-i/
/var/db/kiss/installed/
/var/db/kiss/
/var/db/
/var/
/usr/lib/sed-i/bin/sed
/usr/lib/sed-i/bin/
/usr/lib/sed-i/
/usr/lib/
/usr/
---
 community/sed-i/build        | 3 +++
 community/sed-i/checksums    | 1 +
 community/sed-i/post-install | 3 +++
 community/sed-i/sources      | 1 +
 community/sed-i/version      | 1 +
 5 files changed, 9 insertions(+)
 create mode 100755 community/sed-i/build
 create mode 100644 community/sed-i/checksums
 create mode 100755 community/sed-i/post-install
 create mode 100644 community/sed-i/sources
 create mode 100644 community/sed-i/version

diff --git a/community/sed-i/build b/community/sed-i/build
new file mode 100755
index 00000000..fbc11f19
--- /dev/null
+++ b/community/sed-i/build
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+make DESTDIR="$1" PREFIX="/usr/lib/sed-i/" install
diff --git a/community/sed-i/checksums b/community/sed-i/checksums
new file mode 100644
index 00000000..d722e231
--- /dev/null
+++ b/community/sed-i/checksums
@@ -0,0 +1 @@
+7c7c7ac1809f607bd5fbf97ea23f6209d628454e16641295aa559297ebb7108e
diff --git a/community/sed-i/post-install b/community/sed-i/post-install
new file mode 100755
index 00000000..fa20591a
--- /dev/null
+++ b/community/sed-i/post-install
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+printf '%s\n' 'NOTE: add /usr/lib/sed-i/bin to the beginning of your $PATH'
diff --git a/community/sed-i/sources b/community/sed-i/sources
new file mode 100644
index 00000000..a078f5b4
--- /dev/null
+++ b/community/sed-i/sources
@@ -0,0 +1 @@
+https://github.com/aaronNGi/sed-i/archive/refs/tags/0.1.tar.gz
diff --git a/community/sed-i/version b/community/sed-i/version
new file mode 100644
index 00000000..084a74c2
--- /dev/null
+++ b/community/sed-i/version
@@ -0,0 +1 @@
+0.1 1
-- 
2.31.1

1 reply
1 reply

Re: [PATCH v2] sed-i: new package at 0.1

From: Dilyn Corner
On Mon May 24, 2021 at 7:17 PM EDT, Aaron G wrote:
> --- /dev/null
> +++ b/community/sed-i/post-install
> @@ -0,0 +1,3 @@
> +#!/bin/sh -e
> +
> +printf '%s\n' 'NOTE: add /usr/lib/sed-i/bin to the beginning of your
> $PATH'

You know what I forgot to lint...

This needs #shellcheck disable=2016

Dilyn
2 replies

Re: [PATCH v2] sed-i: new package at 0.1

From: Aaron G
Subject: [PATCH] sed-i: fix shellcheck warning

shellcheck(1) was warning about variables not expanding in single
quotes.  Instead of adding a shellcheck directive to ignore it, change
to double quotes and escape the dollar.
---
 community/sed-i/post-install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/sed-i/post-install b/community/sed-i/post-install
index fa20591a..ecab8c30 100755
--- a/community/sed-i/post-install
+++ b/community/sed-i/post-install
@@ -1,3 +1,3 @@
 #!/bin/sh -e
 
-printf '%s\n' 'NOTE: add /usr/lib/sed-i/bin to the beginning of your $PATH'
+printf '%s\n' "NOTE: add /usr/lib/sed-i/bin to the beginning of your \$PATH"
-- 
2.31.1

Re: [PATCH v2] sed-i: new package at 0.1

From: Dilyn Corner
On Tue May 25, 2021 at 4:26 PM EDT, Aaron G wrote:
> Subject: [PATCH] sed-i: fix shellcheck warning
>
> shellcheck(1) was warning about variables not expanding in single
> quotes. Instead of adding a shellcheck directive to ignore it, change
> to double quotes and escape the dollar.

That works for me just as well! Thanks Aaron.

Dilyn