From 3f046b2cb46bf68211b264d5f0fb1ce738f750a1 Mon Sep 17 00:00:00 2001 From: k4leg 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 +From: Piotr Wójcik +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 . + #include + #include + #include ++#include + + #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 . + #include + #include + #include ++#include + + #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 . + #include + #ifdef __linux__ + #include +-#else +- #include + #endif ++#include + #include + #include + +-- +2.33.0 + diff --git a/srcpkgs/Unhide/template b/srcpkgs/Unhide/template new file mode 100644 index 000000000000..aabee4a02fea --- /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 " +license="GPL-3.0-or-later" +homepage="https://github.com/YJesus/Unhide" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=afd3923d7ff665c32f73a5178065843a608a1aaab36d2b21cc62182032d4b668 + +pre_build() { + vsed -i 's:^\s*gcc:$CC $CFLAGS $LDFLAGS:g' build_all.sh +} + +do_build() { + ./build_all.sh +} + +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 +}