diff --git a/security/unhide/Makefile b/security/unhide/Makefile index a23c3a879c0a..a2b284a189c5 100644 --- a/security/unhide/Makefile +++ b/security/unhide/Makefile @@ -1,29 +1,30 @@ PORTNAME= unhide DISTVERSIONPREFIX= v DISTVERSION= 20210124 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= ntarmos@ceid.upatras.gr COMMENT= Forensic tool to find hidden processes and TCP/UDP ports WWW= https://www.unhide-forensics.info/ LICENSE= GPLv3 USES= tar:tgz USE_GITHUB= yes GH_ACCOUNT= YJesus GH_PROJECT= Unhide -PLIST_FILES= man/man8/unhide.8.gz \ - man/man8/unhide-tcp.8.gz \ +PLIST_FILES= share/man/man8/unhide.8.gz \ + share/man/man8/unhide-tcp.8.gz \ sbin/unhide \ sbin/unhide-tcp post-patch: @${REINPLACE_CMD} -e 's/-eLf/-axH/g' -e 's/$$2/$$1/g' ${WRKSRC}/unhide-posix.c @${REINPLACE_CMD} -e 's/linux\/limits/limits/g' ${WRKSRC}/unhide-output.c @${REINPLACE_CMD} -e 's/-tan/-p tcp -an/g' -e 's/-uan/-p udp -an/g' \ -e 's/use_ss = 1/use_ss = 0/g' ${WRKSRC}/unhide-tcp.c .include diff --git a/security/unhide/files/patch-Makefile b/security/unhide/files/patch-Makefile index 8ca458b624c6..2f4a3609247e 100644 --- a/security/unhide/files/patch-Makefile +++ b/security/unhide/files/patch-Makefile @@ -1,23 +1,23 @@ --- /dev/null 2013-01-06 20:26:43.000000000 +0200 +++ Makefile 2013-01-06 20:26:46.000000000 +0200 @@ -0,0 +1,20 @@ -+MANDIR := ${PREFIX}/man ++MANDIR := ${PREFIX}/share/man +INSTALL_PROGRAM := /usr/bin/install -s -m 0700 +INSTALL_MAN := /usr/bin/install -m 0444 +GZIP_CMD := /usr/bin/gzip -9 +MKDIR_CMD := /bin/mkdir -p + +all: unhide unhide-tcp + +unhide: unhide-posix.c + ${CC} -Wall -O2 --static unhide-posix.c -o unhide + +unhide-tcp: unhide-tcp.c unhide-tcp-fast.c unhide-output.c + ${CC} -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp + +install: all + ${MKDIR_CMD} ${DESTDIR}${PREFIX}/sbin ${DESTDIR}${MANDIR}/man8 + ${INSTALL_PROGRAM} unhide ${DESTDIR}${PREFIX}/sbin/unhide + ${INSTALL_PROGRAM} unhide-tcp ${DESTDIR}${PREFIX}/sbin/unhide-tcp + ${INSTALL_MAN} man/unhide.8 ${DESTDIR}${MANDIR}/man8 + ${INSTALL_MAN} man/unhide-tcp.8 ${DESTDIR}${MANDIR}/man8