[-- Attachment #1: Type: text/plain, Size: 1700 bytes --] There is a new 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: 1536 bytes --] From dbe30dcf8de2aad275d5bdd2a6e1c13032dac077 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 --- srcpkgs/Unhide/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/Unhide/template diff --git a/srcpkgs/Unhide/template b/srcpkgs/Unhide/template new file mode 100644 index 000000000000..2a583e1157fc --- /dev/null +++ b/srcpkgs/Unhide/template @@ -0,0 +1,32 @@ +# Template file for 'Unhide' +pkgname=Unhide +version=20210124 +revision=1 +archs="~*-musl" +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 +}
[-- 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: 1530 bytes --] From cc964e16afb8370f00bc71b9367370dd990334a8 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 --- srcpkgs/Unhide/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/Unhide/template diff --git a/srcpkgs/Unhide/template b/srcpkgs/Unhide/template new file mode 100644 index 000000000000..cb7bbbc71c05 --- /dev/null +++ b/srcpkgs/Unhide/template @@ -0,0 +1,32 @@ +# Template file for 'Unhide' +pkgname=Unhide +version=20210124 +revision=1 +archs="~*-musl" +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 +}
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --] New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/32691#issuecomment-921962324 Comment: Builds on musl with ``` patch diff --git a/unhide-linux-compound.c b/unhide-linux-compound.c index 31f0ee6..a6b597e 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..56ca1a2 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..50c844a 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> ```
[-- 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 e390069c3c1960161748be75d71733be06f06242 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 +}
[-- 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 +}
[-- Attachment #1: Type: text/plain, Size: 157 bytes --] New comment by k4leg on void-packages repository https://github.com/void-linux/void-packages/pull/32691#issuecomment-922002590 Comment: Chocimier, thanks!
[-- Attachment #1: Type: text/plain, Size: 383 bytes --] New review comment by Johnnynator on void-packages repository https://github.com/void-linux/void-packages/pull/32691#discussion_r713336815 Comment: Could try to sell something like a simple Makefile or meson to upstream? Manually creating compiles command in the template will surely bite use sooner or later. Also it would be nice if the patch would also be sent to upstream.
[-- 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: 3323 bytes --] From 3f046b2cb46bf68211b264d5f0fb1ce738f750a1 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..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 <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 + +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 +}
[-- Attachment #1: Type: text/plain, Size: 222 bytes --] New review comment by k4leg on void-packages repository https://github.com/void-linux/void-packages/pull/32691#discussion_r715501692 Comment: There is a script in upstream `build_all.sh`. Maybe it's worth using it then?
[-- Attachment #1: Type: text/plain, Size: 305 bytes --] New comment by github-actions[bot] on void-packages repository https://github.com/void-linux/void-packages/pull/32691#issuecomment-1144345013 Comment: Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --] There's a closed pull request on the void-packages repository New package: Unhide-20210124 https://github.com/void-linux/void-packages/pull/32691 Description: <!-- 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 -->