Github messages for voidlinux
 help / color / mirror / Atom feed
From: c0m4r <c0m4r@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: safe-rm-1.1.0
Date: Mon, 18 Dec 2023 20:01:19 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47819@inbox.vuxu.org> (raw)

[-- 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"

             reply	other threads:[~2023-12-18 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 19:01 c0m4r [this message]
2023-12-18 19:22 ` [PR PATCH] [Closed]: " ahesford
2023-12-18 19:22 ` ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47819@inbox.vuxu.org \
    --to=c0m4r@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).