From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 19 21:50:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A1AB668F for ; Sat, 19 Oct 2013 21:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7CBA32319 for ; Sat, 19 Oct 2013 21:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9JLo0Ys081689 for ; Sat, 19 Oct 2013 21:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9JLo0Qk081687; Sat, 19 Oct 2013 21:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 19 Oct 2013 21:50:00 GMT Resent-Message-Id: <201310192150.r9JLo0Qk081687@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sunpoet Po-Chuan Hsieh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6F97D5C8 for ; Sat, 19 Oct 2013 21:43:45 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from sunpoet.net (sunpoet.net [220.135.71.135]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 032DF22D6 for ; Sat, 19 Oct 2013 21:43:44 +0000 (UTC) Received: by sunpoet.net (Postfix, from userid 1000) id 10548496B; Sun, 20 Oct 2013 05:43:47 +0800 (CST) Message-Id: <20131019214347.10548496B@sunpoet.net> Date: Sun, 20 Oct 2013 05:43:47 +0800 (CST) From: Sunpoet Po-Chuan Hsieh To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/183114: [PATCH] security/unhide: fix build with clang Cc: ntarmos@ceid.upatras.gr X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 21:50:02 -0000 >Number: 183114 >Category: ports >Synopsis: [PATCH] security/unhide: fix build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 19 21:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 10.0-BETA1 amd64 >Organization: The FreeBSD Project >Environment: System: FreeBSD bonjour.sunpoet.net 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256445: Tue Oct 15 04:48:04 CST >Description: - Remove leading indefinite article from COMMENT - Respect CC and fix build with clang - Support STAGEDIR - Remove contiguous blank line from pkg-descr Port maintainer (ntarmos@ceid.upatras.gr) is cc'd. Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN) >How-To-Repeat: >Fix: --- unhide-20121229.patch begins here --- Index: Makefile =================================================================== --- Makefile (revision 330942) +++ Makefile (working copy) @@ -9,20 +9,18 @@ EXTRACT_SUFX= .tgz MAINTAINER= ntarmos@ceid.upatras.gr -COMMENT= A forensic tool to find hidden processes and TCP/UDP ports +COMMENT= Forensic tool to find hidden processes and TCP/UDP ports NO_WRKSUBDIR= true -PLIST_FILES= sbin/unhide sbin/unhide-tcp -MAN8= unhide.8 unhide-tcp.8 -MANCOMPRESSED= yes +PLIST_FILES= man/man8/unhide.8.gz \ + man/man8/unhide-tcp.8.gz \ + sbin/unhide \ + sbin/unhide-tcp -NO_STAGE= yes -.include - -pre-configure: +post-patch: @${REINPLACE_CMD} -e 's/-eLf/-axH/g' -e 's/$$2/$$1/g' ${WRKDIR}/unhide-posix.c @${REINPLACE_CMD} -e 's/linux\/limits/limits/g' ${WRKDIR}/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' ${WRKDIR}/unhide-tcp.c -.include +.include Index: files/patch-Makefile =================================================================== --- files/patch-Makefile (revision 330942) +++ files/patch-Makefile (working copy) @@ -1,8 +1,7 @@ --- /dev/null 2013-01-06 20:26:43.000000000 +0200 +++ Makefile 2013-01-06 20:26:46.000000000 +0200 -@@ -0,0 +1,23 @@ -+DESTDIR := ${PREFIX} -+MANDIR := ${DESTDIR}/man +@@ -0,0 +1,20 @@ ++MANDIR := ${PREFIX}/man +INSTALL_PROGRAM := /usr/bin/install -s -m 0700 +INSTALL_MAN := /usr/bin/install -m 0444 +GZIP_CMD := /usr/bin/gzip -9 @@ -11,16 +10,14 @@ +all: unhide unhide-tcp + +unhide: unhide-posix.c -+ gcc -Wall -O2 --static unhide-posix.c -o unhide ++ ${CC} -Wall -O2 --static unhide-posix.c -o unhide + +unhide-tcp: unhide-tcp.c unhide-tcp-fast.c unhide-output.c -+ gcc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp ++ ${CC} -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp + +install: all -+ ${MKDIR_CMD} ${DESTDIR}/sbin ${MANDIR}/man8 -+ ${INSTALL_PROGRAM} unhide ${DESTDIR}/sbin/unhide -+ ${INSTALL_PROGRAM} unhide-tcp ${DESTDIR}/sbin/unhide-tcp -+ ${INSTALL_MAN} man/unhide.8 ${MANDIR}/man8 && \ -+ ${GZIP_CMD} ${MANDIR}/man8/unhide.8 -+ ${INSTALL_MAN} man/unhide-tcp.8 ${MANDIR}/man8 && \ -+ ${GZIP_CMD} ${MANDIR}/man8/unhide-tcp.8 ++ ${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 Index: pkg-descr =================================================================== --- pkg-descr (revision 330942) +++ pkg-descr (working copy) @@ -11,5 +11,4 @@ unhide-tcp identifies TCP/UDP ports that are listening but not listed in /bin/netstat by doing brute forcing of all TCP/UDP ports availables. - WWW: http://www.unhide-forensics.info/ --- unhide-20121229.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: