From owner-svn-ports-all@FreeBSD.ORG Sat Dec 28 02:34:58 2013 Return-Path: Delivered-To: svn-ports-all@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 ESMTPS id 66A3C502; Sat, 28 Dec 2013 02:34:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (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 46B4115BE; Sat, 28 Dec 2013 02:34:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBS2YwTL048761; Sat, 28 Dec 2013 02:34:58 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBS2YvOI048756; Sat, 28 Dec 2013 02:34:57 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201312280234.rBS2YvOI048756@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Sat, 28 Dec 2013 02:34:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337827 - in head/security/pev: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Dec 2013 02:34:58 -0000 Author: danilo Date: Sat Dec 28 02:34:56 2013 New Revision: 337827 URL: http://svnweb.freebsd.org/changeset/ports/337827 Log: - Update from 0.60 to 0.70 - Add LICENSE Modified: head/security/pev/Makefile head/security/pev/distinfo head/security/pev/files/patch-lib__libpe__Makefile head/security/pev/files/patch-src__Makefile head/security/pev/pkg-plist Modified: head/security/pev/Makefile ============================================================================== --- head/security/pev/Makefile Sat Dec 28 01:10:54 2013 (r337826) +++ head/security/pev/Makefile Sat Dec 28 02:34:56 2013 (r337827) @@ -2,19 +2,23 @@ # $FreeBSD$ PORTNAME= pev -PORTVERSION= 0.60 -PORTREVISION= 2 +PORTVERSION= 0.70 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/ MAINTAINER= danilo@FreeBSD.org COMMENT= PE analysis toolkit +LICENSE= GPLv3 + LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +WRKSRC= ${WRKDIR}/${PORTNAME} + USES= gmake USE_LDCONFIG= yes -MAKE_ARGS+= PREFIX=${STAGEDIR}/${PREFIX} MAKE=${GMAKE} +MAKE_ARGS= MAKE=${GMAKE} +CFLAGS+= -I${LOCALBASE}/include .include Modified: head/security/pev/distinfo ============================================================================== --- head/security/pev/distinfo Sat Dec 28 01:10:54 2013 (r337826) +++ head/security/pev/distinfo Sat Dec 28 02:34:56 2013 (r337827) @@ -1,2 +1,2 @@ -SHA256 (pev-0.60.tar.gz) = 9f7f6c45644a66a90ec35ebd40ec8aedc2a8b80d7fbe2771a7061c1691639099 -SIZE (pev-0.60.tar.gz) = 212932 +SHA256 (pev-0.70.tar.gz) = 250396a06930d60a92e9bc86d7afb543d899ba12c007d1be5d09802a02908202 +SIZE (pev-0.70.tar.gz) = 254821 Modified: head/security/pev/files/patch-lib__libpe__Makefile ============================================================================== --- head/security/pev/files/patch-lib__libpe__Makefile Sat Dec 28 01:10:54 2013 (r337826) +++ head/security/pev/files/patch-lib__libpe__Makefile Sat Dec 28 02:34:56 2013 (r337827) @@ -1,34 +1,29 @@ ---- ./lib/libpe/Makefile.orig 2012-10-31 01:59:14.000000000 -0200 -+++ ./lib/libpe/Makefile 2013-09-24 12:03:36.000000000 -0300 -@@ -5,16 +5,15 @@ +--- ./lib/libpe/Makefile.orig 2013-12-27 08:39:52.000000000 -0200 ++++ ./lib/libpe/Makefile 2013-12-28 00:18:59.000000000 -0200 +@@ -5,7 +5,7 @@ - ####### Compiler, tools and options + ####### Makefile Conventions - Directory variables --PREFIX = /usr --DEST = $(DESTDIR)/$(PREFIX)/lib -+DEST = $(PREFIX)/lib - VERSION = 1.0 --override CFLAGS += -W -Wall -Wextra -pedantic -std=c99 -c -+override CFLAGS += -W -Wall -Wextra -pedantic -std=c99 -shared -o libpe.so - ifneq ($(PLATFORM_OS), CYGWIN) - override CFLAGS += -fPIC - endif - SRC = pe.c - RM = rm -f --CC = gcc -+CC ?= ${CC} - SYMLINK = ln -sf - ifeq ($(PLATFORM_OS), Darwin) - STRIP = strip -x -@@ -46,6 +45,11 @@ - $(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION) +-prefix = /usr ++prefix = /usr/local + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + sbindir = $(exec_prefix)/sbin +@@ -68,7 +68,7 @@ + + libpe: CPPFLAGS += -D_GNU_SOURCE + libpe: $(libpe_OBJS) +-ifeq ($(PLATFORM_OS), Linux) ++ifeq ($(PLATFORM_OS), FreeBSD) + $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^ + else ifeq ($(PLATFORM_OS), Darwin) + $(LINK) -headerpad_max_install_names -dynamiclib \ +@@ -84,7 +84,7 @@ + $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< + + install: installdirs +-ifeq ($(PLATFORM_OS), Linux) ++ifeq ($(PLATFORM_OS), FreeBSD) + $(INSTALL_DATA) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION) cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1 -+else ifeq ($(PLATFORM_OS), FreeBSD) -+ $(STRIP) $(LIBNAME).so -+ $(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION) -+ cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so -+ cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1 - else ifeq ($(PLATFORM_OS), Darwin) - $(STRIP) $(LIBNAME).dylib - $(INSTALL) $(LIBNAME).dylib $(DEST)/$(LIBNAME).$(VERSION).dylib Modified: head/security/pev/files/patch-src__Makefile ============================================================================== --- head/security/pev/files/patch-src__Makefile Sat Dec 28 01:10:54 2013 (r337826) +++ head/security/pev/files/patch-src__Makefile Sat Dec 28 02:34:56 2013 (r337827) @@ -1,33 +1,53 @@ ---- ./src/Makefile.orig 2013-01-23 10:37:31.000000000 -0200 -+++ ./src/Makefile 2013-09-24 12:03:20.000000000 -0300 -@@ -5,24 +5,23 @@ - - ####### Compiler, tools and options - --PREFIX = /usr --DEST = $(DESTDIR)/$(PREFIX)/bin -+DEST = $(PREFIX)/bin - LIBPE = ../lib/libpe - LIBUDIS86 = ../lib/libudis86 --override LDFLAGS += -L$(LIBPE) -lpe --override CFLAGS += -I$(LIBPE) -W -Wall -Wextra -std=c99 -pedantic -+override LDFLAGS += -L/usr/local/lib -L$(LIBPE) -lpe -+override CFLAGS += -I/usr/local/include -I$(LIBPE) -W -Wall -Wextra -std=c99 -pedantic - ifeq ($(PLATFORM_OS), Darwin) - # We disable warnings for deprecated declarations since Apple deprecated OpenSSL in Mac OS X 10.7 - override CFLAGS += -Wno-deprecated-declarations - endif --CC = gcc -+CC ?= ${CC} - RM = rm -f - SOURCES = output.c - PROGS = readpe pedis pepack pescan rva2ofs pesec ofs2rva pestr pehash pestr - INSTALL = install -m 0755 --SHAREDIR = /usr/share/pev -+SHAREDIR = ${PREFIX}/share/pev - MAN = ../doc/manpages --MANDIR = /usr/share/man/man1 -+MANDIR = ${PREFIX}/man/man1 +--- ./src/Makefile.orig 2013-12-27 08:39:49.000000000 -0200 ++++ ./src/Makefile 2013-12-28 00:19:50.000000000 -0200 +@@ -5,7 +5,7 @@ - ####### Build rules + ####### Makefile Conventions - Directory variables +-prefix = /usr ++prefix = /usr/local + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + sbindir = $(exec_prefix)/sbin +@@ -19,7 +19,7 @@ + infodir = $(datarootdir)/info + libdir = $(exec_prefix)/lib + localedir = $(datarootdir)/locale +-mandir = $(datarootdir)/man ++mandir = $(prefix)/man + man1dir = $(mandir)/man1 + manext = .1 + man1ext = .1 +@@ -71,7 +71,7 @@ + pesec: LDFLAGS += -lcrypto + pesec: compat/strlcat.c + +-pestr: LDFLAGS += -lpcre ++pestr: LDFLAGS += -L/usr/local/lib -lpcre + + pehash: CFLAGS += -I$(LIBFUZZY) + pehash: $(LIBFUZZY)/*.c +@@ -89,18 +89,16 @@ + + install: installdirs + for prog in $(PROGS); do \ +- $(INSTALL_PROGRAM) -m 755 $$prog $(DEST); \ +- $(CHK_FILE_EXISTS) $(MANDIR)/$$prog$(man1ext) && \ +- gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(man1dir)/$$prog$(man1ext).gz || \ +- echo -n; \ ++ $(INSTALL_PROGRAM) -s -m 755 $$prog $(DEST); \ ++ $(INSTALL_DATA) $(MANDIR)/$$prog$(man1ext) $(DESTDIR)$(man1dir); \ + done + # TODO: Should we copy it anyway if it already exists? +- @$(CHK_FILE_EXISTS) $(SHAREDIR)/userdb.txt || cp $(srcdir)/userdb.txt $(SHAREDIR) ++ @$(CHK_FILE_EXISTS) $(DESTDIR)$(SHAREDIR)/userdb.txt || cp $(srcdir)/userdb.txt $(DESTDIR)$(SHAREDIR) + + installdirs: + @$(CHK_DIR_EXISTS) $(DEST) || $(MKDIR) $(DEST) +- @$(CHK_DIR_EXISTS) $(man1dir) || $(MKDIR) $(man1dir) +- @$(CHK_DIR_EXISTS) $(SHAREDIR) || $(MKDIR) $(SHAREDIR) ++ @$(CHK_DIR_EXISTS) $(DESTDIR)$(man1dir) || $(MKDIR) $(DESTDIR)$(man1dir) ++ @$(CHK_DIR_EXISTS) $(DESTDIR)$(SHAREDIR) || $(MKDIR) $(DESTDIR)$(SHAREDIR) + + uninstall: + for prog in $(PROGS); do \ Modified: head/security/pev/pkg-plist ============================================================================== --- head/security/pev/pkg-plist Sat Dec 28 01:10:54 2013 (r337826) +++ head/security/pev/pkg-plist Sat Dec 28 02:34:56 2013 (r337827) @@ -2,6 +2,7 @@ bin/ofs2rva bin/pedis bin/pehash bin/pepack +bin/peres bin/pescan bin/pesec bin/pestr @@ -14,6 +15,7 @@ man/man1/ofs2rva.1.gz man/man1/pedis.1.gz man/man1/pehash.1.gz man/man1/pepack.1.gz +man/man1/peres.1.gz man/man1/pescan.1.gz man/man1/pesec.1.gz man/man1/pestr.1.gz