svn commit: r328158 - in head/security/pev: . files
Danilo Egea Gondolfo
danilo at FreeBSD.org
Tue Sep 24 16:28:27 UTC 2013
Author: danilo
Date: Tue Sep 24 16:28:25 2013
New Revision: 328158
URL: http://svnweb.freebsd.org/changeset/ports/328158
Log:
- Use new LIB_DEPENDS syntax
- Use USES=gmake instead of USE_GMAKE
- Recreate distinfo (package modified without changing version)
- Recreate patches with makepatch
- Fix build on CURRENT
- Enable staging support
Approved by: wg (mentor)
Added:
head/security/pev/files/patch-lib__libpe__Makefile (contents, props changed)
head/security/pev/files/patch-src__Makefile (contents, props changed)
Deleted:
head/security/pev/files/patch-pev-0.60-a__Makefile
head/security/pev/files/patch-pev-0.60-a__lib__libpe__Makefile
head/security/pev/files/patch-pev-0.60-a__src__Makefile
Modified:
head/security/pev/Makefile
head/security/pev/distinfo
head/security/pev/pkg-plist
Modified: head/security/pev/Makefile
==============================================================================
--- head/security/pev/Makefile Tue Sep 24 16:20:31 2013 (r328157)
+++ head/security/pev/Makefile Tue Sep 24 16:28:25 2013 (r328158)
@@ -2,24 +2,18 @@
PORTNAME= pev
PORTVERSION= 0.60
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
MAINTAINER= danilogondolfo at gmail.com
COMMENT= The PE analysis toolkit
-LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
+LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
-USE_GMAKE= yes
+USES= gmake
USE_LDCONFIG= yes
-PATCH_STRIP= -p1
+MAKE_ARGS+= PREFIX=${STAGEDIR}/${PREFIX} MAKE=${GMAKE}
-MAN1= readpe.1 pedis.1 pepack.1 pescan.1 \
- rva2ofs.1 pesec.1 ofs2rva.1 pestr.1 pehash.1
-
-MANCOMPRESSED= yes
-
-NO_STAGE= yes
.include <bsd.port.mk>
Modified: head/security/pev/distinfo
==============================================================================
--- head/security/pev/distinfo Tue Sep 24 16:20:31 2013 (r328157)
+++ head/security/pev/distinfo Tue Sep 24 16:28:25 2013 (r328158)
@@ -1,2 +1,2 @@
-SHA256 (pev-0.60.tar.gz) = 133d4698a25f3b40b95f203d30ddea5895b41db2c8cb7724433cc4ce165c2b43
-SIZE (pev-0.60.tar.gz) = 216584
+SHA256 (pev-0.60.tar.gz) = 9f7f6c45644a66a90ec35ebd40ec8aedc2a8b80d7fbe2771a7061c1691639099
+SIZE (pev-0.60.tar.gz) = 212932
Added: head/security/pev/files/patch-lib__libpe__Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/pev/files/patch-lib__libpe__Makefile Tue Sep 24 16:28:25 2013 (r328158)
@@ -0,0 +1,34 @@
+--- ./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 @@
+
+ ####### Compiler, tools and options
+
+-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)
+ 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
Added: head/security/pev/files/patch-src__Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/pev/files/patch-src__Makefile Tue Sep 24 16:28:25 2013 (r328158)
@@ -0,0 +1,33 @@
+--- ./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
+
+ ####### Build rules
+
Modified: head/security/pev/pkg-plist
==============================================================================
--- head/security/pev/pkg-plist Tue Sep 24 16:20:31 2013 (r328157)
+++ head/security/pev/pkg-plist Tue Sep 24 16:28:25 2013 (r328158)
@@ -1,14 +1,23 @@
-bin/readpe
+bin/ofs2rva
bin/pedis
+bin/pehash
bin/pepack
bin/pescan
-bin/rva2ofs
bin/pesec
-bin/ofs2rva
bin/pestr
-bin/pehash
+bin/readpe
+bin/rva2ofs
lib/libpe.so
lib/libpe.so.1
lib/libpe.so.1.0
+man/man1/ofs2rva.1.gz
+man/man1/pedis.1.gz
+man/man1/pehash.1.gz
+man/man1/pepack.1.gz
+man/man1/pescan.1.gz
+man/man1/pesec.1.gz
+man/man1/pestr.1.gz
+man/man1/readpe.1.gz
+man/man1/rva2ofs.1.gz
%%DATADIR%%/userdb.txt
- at dirrm share/pev
+ at dirrmtry %%DATADIR%%
More information about the svn-ports-all
mailing list