From: k4leg <k4leg@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Unhide-20210124
Date: Fri, 17 Sep 2021 20:34:11 +0200 [thread overview]
Message-ID: <20210917183411.Pc-rFOtijgEvMQcJeoPHMasVr-NfN5wTh7fngo8d_1s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32691@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]
There is an updated pull request by k4leg against master on the void-packages repository
https://github.com/k4leg/void-packages New-package-Unhide
https://github.com/void-linux/void-packages/pull/32691
New package: Unhide-20210124
<!-- Mark items with [x] where applicable -->
This package is an optional dependency for `rkhunter`.
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I generally don't use the affected packages but briefly tested this PR
#### Other
There are tests in this package but they need root access. What are the ways to enable it (these are files `sanity-tcp.sh` and `sanity.sh`)?
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/32691.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-New-package-Unhide-32691.patch --]
[-- Type: text/x-diff, Size: 3475 bytes --]
From 17d4b2afb9e10feb2b6bd42b5bb7180a2e8d46a2 Mon Sep 17 00:00:00 2001
From: k4leg <python.bogdan@gmail.com>
Date: Wed, 25 Aug 2021 23:35:03 +0300
Subject: [PATCH] New package: Unhide-20210124
---
.../patches/0001-fix-build-on-musl.patch | 53 +++++++++++++++++++
srcpkgs/Unhide/template | 31 +++++++++++
2 files changed, 84 insertions(+)
create mode 100644 srcpkgs/Unhide/patches/0001-fix-build-on-musl.patch
create mode 100644 srcpkgs/Unhide/template
diff --git a/srcpkgs/Unhide/patches/0001-fix-build-on-musl.patch b/srcpkgs/Unhide/patches/0001-fix-build-on-musl.patch
new file mode 100644
index 000000000000..6a4ef63bb350
--- /dev/null
+++ b/srcpkgs/Unhide/patches/0001-fix-build-on-musl.patch
@@ -0,0 +1,53 @@
+From <https://github.com/void-linux/void-packages/pull/32691#issuecomment-921962324>
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Fri, 17 Sep 2021 20:38:58 +0300
+Subject: [PATCH] fix: build on musl
+
+---
+ unhide-linux-compound.c | 1 +
+ unhide-linux-procfs.c | 1 +
+ unhide-output.c | 3 +--
+ 3 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/unhide-linux-compound.c b/unhide-linux-compound.c
+index 31f0ee6..b3b70c7 100644
+--- a/unhide-linux-compound.c
++++ b/unhide-linux-compound.c
+@@ -43,6 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #include <sys/syscall.h>
+ #include <ctype.h>
+ #include <time.h>
++#include <limits.h>
+
+ #include "unhide-output.h"
+ #include "unhide-linux.h"
+diff --git a/unhide-linux-procfs.c b/unhide-linux-procfs.c
+index 65d3949..8a439cb 100644
+--- a/unhide-linux-procfs.c
++++ b/unhide-linux-procfs.c
+@@ -43,6 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #include <sys/syscall.h>
+ #include <ctype.h>
+ #include <time.h>
++#include <limits.h>
+
+ #include "unhide-output.h"
+ #include "unhide-linux.h"
+diff --git a/unhide-output.c b/unhide-output.c
+index 2d5a834..636d685 100644
+--- a/unhide-output.c
++++ b/unhide-output.c
+@@ -25,9 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #include <errno.h>
+ #ifdef __linux__
+ #include <linux/limits.h>
+-#else
+- #include <limits.h>
+ #endif
++#include <limits.h>
+ #include <string.h>
+ #include <time.h>
+
+--
+2.33.0
+
diff --git a/srcpkgs/Unhide/template b/srcpkgs/Unhide/template
new file mode 100644
index 000000000000..8c4eb668f1c4
--- /dev/null
+++ b/srcpkgs/Unhide/template
@@ -0,0 +1,31 @@
+# Template file for 'Unhide'
+pkgname=Unhide
+version=20210124
+revision=1
+depends="iproute2 net-tools lsof psmisc procps-ng"
+short_desc="Forensic tool to find hidden processes and TCP/UDP ports"
+maintainer="k4leg <python.bogdan@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/YJesus/Unhide"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=afd3923d7ff665c32f73a5178065843a608a1aaab36d2b21cc62182032d4b668
+
+do_build() {
+ $CC $CFLAGS $LDFLAGS --static -pthread unhide-linux*.c unhide-output.c \
+ -o unhide-linux
+ $CC $CFLAGS $LDFLAGS --static unhide_rb.c -o unhide_rb
+ $CC $CFLAGS $LDFLAGS --static unhide-tcp.c unhide-tcp-fast.c \
+ unhide-output.c -o unhide-tcp
+}
+
+do_install() {
+ for bin in unhide{-linux,-tcp,_rb}; do
+ vbin $bin
+ done
+ vman man/unhide-tcp.8
+ vman man/unhide.8
+ vman man/es/unhide-tcp.8 unhide-tcp.es.8
+ vman man/es/unhide.8 unhide.es.8
+ vman man/fr/unhide-tcp.8 unhide-tcp.fr.8
+ vman man/fr/unhide.8 unhide.fr.8
+}
next prev parent reply other threads:[~2021-09-17 18:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 21:23 [PR PATCH] " k4leg
2021-08-28 9:36 ` [PR PATCH] [Updated] " k4leg
2021-09-17 17:27 ` Chocimier
2021-09-17 18:31 ` [PR PATCH] [Updated] " k4leg
2021-09-17 18:34 ` k4leg [this message]
2021-09-17 18:37 ` k4leg
2021-09-21 19:01 ` [PR REVIEW] " Johnnynator
2021-09-24 10:27 ` [PR PATCH] [Updated] " k4leg
2021-09-24 10:32 ` [PR REVIEW] " k4leg
2022-06-02 2:15 ` github-actions
2022-06-17 2:13 ` [PR PATCH] [Closed]: " github-actions
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=20210917183411.Pc-rFOtijgEvMQcJeoPHMasVr-NfN5wTh7fngo8d_1s@z \
--to=k4leg@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).