Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: safe-rm-1.1.0
@ 2023-12-18 19:01 c0m4r
  2023-12-18 19:22 ` [PR PATCH] [Closed]: " ahesford
  2023-12-18 19:22 ` ahesford
  0 siblings, 2 replies; 3+ messages in thread
From: c0m4r @ 2023-12-18 19:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is a new pull request by c0m4r against master on the void-packages repository

https://github.com/c0m4r/void-packages master
https://github.com/void-linux/void-packages/pull/47819

New package: safe-rm-1.1.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/47819.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-47819.patch --]
[-- Type: text/x-diff, Size: 4631 bytes --]

From 887a11f12b7ecc574fefe8b5319c46ab8e4026ed Mon Sep 17 00:00:00 2001
From: Andrzej <github@wolfet.pl>
Date: Mon, 18 Dec 2023 19:47:01 +0100
Subject: [PATCH 1/5] New package: safe-rm-1.1.0

---
 srcpkgs/safe-rm/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/safe-rm/template

diff --git a/srcpkgs/safe-rm/template b/srcpkgs/safe-rm/template
new file mode 100644
index 0000000000000..1f3503f5e00f7
--- /dev/null
+++ b/srcpkgs/safe-rm/template
@@ -0,0 +1,16 @@
+# Template file for 'safe-rm'
+pkgname=safe-rm
+version=1.1.0
+revision=1
+build_style="cargo"
+short_desc="Simple shell based CA utility"
+maintainer="c0m4r <github@wolfet.pl>"
+license="GPL-3.0-only"
+homepage="https://launchpad.net/safe-rm"
+changelog="https://git.launchpad.net/safe-rm/plain/Changes"
+distfiles="https://launchpad.net/safe-rm/trunk/${version}/+download/safe-rm-${version}.tar.gz"
+checksum=a1c916894c5b70e02a6ec6c33abbb2c3b3827464cffd4baffd47ffb69a56a1e0
+
+post_install() {
+	vinstall ${FILESDIR}/safe-rm.conf 0644 etc/
+}

From e94badf46ac1f0a63caadcc6c8bc875e826d6f98 Mon Sep 17 00:00:00 2001
From: Andrzej <github@wolfet.pl>
Date: Mon, 18 Dec 2023 19:48:19 +0100
Subject: [PATCH 2/5] New package: safe-rm-1.1.0

---
 srcpkgs/safe-rm/files/safe-rm.conf | 39 ++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 srcpkgs/safe-rm/files/safe-rm.conf

diff --git a/srcpkgs/safe-rm/files/safe-rm.conf b/srcpkgs/safe-rm/files/safe-rm.conf
new file mode 100644
index 0000000000000..ecf6a8927cb58
--- /dev/null
+++ b/srcpkgs/safe-rm/files/safe-rm.conf
@@ -0,0 +1,39 @@
+/
+/bin
+/boot
+/boot/efi
+/boot/grub
+/dev
+/etc
+/etc/sv
+/home
+/lib
+/lib32
+/lib64
+/media
+/mnt
+/opt
+/proc
+/root
+/run
+/run/runit
+/sbin
+/sys
+/usr
+/usr/bin
+/usr/include
+/usr/lib
+/usr/lib32
+/usr/lib64
+/usr/local
+/usr/local/bin
+/usr/local/include
+/usr/local/sbin
+/usr/local/share
+/usr/sbin
+/usr/share
+/usr/src
+/var
+/var/lib
+/var/log
+/var/service

From ef6e1a6adde4dd37cd0e16ad3f5c6a48539124c2 Mon Sep 17 00:00:00 2001
From: Andrzej <github@wolfet.pl>
Date: Mon, 18 Dec 2023 19:49:23 +0100
Subject: [PATCH 3/5] New package: safe-rm-1.1.0

---
 srcpkgs/safe-rm/INSTALL.msg | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 srcpkgs/safe-rm/INSTALL.msg

diff --git a/srcpkgs/safe-rm/INSTALL.msg b/srcpkgs/safe-rm/INSTALL.msg
new file mode 100644
index 0000000000000..0c581df250030
--- /dev/null
+++ b/srcpkgs/safe-rm/INSTALL.msg
@@ -0,0 +1,15 @@
+In order to install safe-rm and make sure that it is being picked up instead of
+the usual "rm" command, make sure that you copy it in a location at the front of
+your path.
+
+For example, if your path contains:
+
+  PATH=/usr/local/bin:/usr/bin:/bin
+
+Then, putting safe-rm in /usr/local/bin and renaming it to "rm" will ensure that
+all users on your system use safe-rm instead of the real rm.
+
+Alternatively, symlink the safe-rm binary into a location like /usr/share/safe-rm/bin/rm
+and then set the following in your shell:
+
+  PATH="/usr/share/safe-rm/bin:$PATH"

From 8b78a5f6491f173cfce9d97af82d2f0633df9fb8 Mon Sep 17 00:00:00 2001
From: Andrzej <github@wolfet.pl>
Date: Mon, 18 Dec 2023 19:55:14 +0100
Subject: [PATCH 4/5] New package: safe-rm-1.1.0

---
 srcpkgs/safe-rm/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/safe-rm/template b/srcpkgs/safe-rm/template
index 1f3503f5e00f7..13fae5be0ce0a 100644
--- a/srcpkgs/safe-rm/template
+++ b/srcpkgs/safe-rm/template
@@ -3,7 +3,7 @@ pkgname=safe-rm
 version=1.1.0
 revision=1
 build_style="cargo"
-short_desc="Simple shell based CA utility"
+short_desc="safety tool intended to prevent the accidental deletion of important files"
 maintainer="c0m4r <github@wolfet.pl>"
 license="GPL-3.0-only"
 homepage="https://launchpad.net/safe-rm"

From b1354cdd21e2f0cea6228e31880029d543a5365e Mon Sep 17 00:00:00 2001
From: Andrzej <github@wolfet.pl>
Date: Mon, 18 Dec 2023 19:57:21 +0100
Subject: [PATCH 5/5] Update template

---
 srcpkgs/safe-rm/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/safe-rm/template b/srcpkgs/safe-rm/template
index 13fae5be0ce0a..78dd1effbec14 100644
--- a/srcpkgs/safe-rm/template
+++ b/srcpkgs/safe-rm/template
@@ -3,7 +3,7 @@ pkgname=safe-rm
 version=1.1.0
 revision=1
 build_style="cargo"
-short_desc="safety tool intended to prevent the accidental deletion of important files"
+short_desc="Prevent the accidental deletion of important files"
 maintainer="c0m4r <github@wolfet.pl>"
 license="GPL-3.0-only"
 homepage="https://launchpad.net/safe-rm"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: New package: safe-rm-1.1.0
  2023-12-18 19:01 [PR PATCH] New package: safe-rm-1.1.0 c0m4r
@ 2023-12-18 19:22 ` ahesford
  2023-12-18 19:22 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2023-12-18 19:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

There's a closed pull request on the void-packages repository

New package: safe-rm-1.1.0
https://github.com/void-linux/void-packages/pull/47819

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: New package: safe-rm-1.1.0
  2023-12-18 19:01 [PR PATCH] New package: safe-rm-1.1.0 c0m4r
  2023-12-18 19:22 ` [PR PATCH] [Closed]: " ahesford
@ 2023-12-18 19:22 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2023-12-18 19:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/47819#issuecomment-1861401278

Comment:
This package is of dubious value:
- We won't allow it to conflict with `coreutils` to provide `/usr/bin/rm`.
- The entire purpose of this project is to replace `/usr/bin/rm`.
- The manual effort necessary to make this package work as intended, as described in `INSTALL.msg` (which wouldn't be appropriate anyway; it would belong in `README.voidlinux`), is at least as complicated as just using `cargo` to build a local copy.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-18 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-18 19:01 [PR PATCH] New package: safe-rm-1.1.0 c0m4r
2023-12-18 19:22 ` [PR PATCH] [Closed]: " ahesford
2023-12-18 19:22 ` ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).