diff --git a/security/pev/Makefile b/security/pev/Makefile index 38dda3868b11..e0c103d34ced 100644 --- a/security/pev/Makefile +++ b/security/pev/Makefile @@ -1,26 +1,26 @@ PORTNAME= pev PORTVERSION= 0.80 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/ MAINTAINER= danilo@FreeBSD.org COMMENT= PE analysis toolkit WWW= https://sourceforge.net/projects/pev/ LICENSE= GPLv3 LIB_DEPENDS= libpcre.so:devel/pcre WRKSRC= ${WRKDIR}/${PORTNAME} USES= gmake ssl USE_LDCONFIG= yes INSTALL_TARGET= install-strip MAKE_ARGS= MAKE=${MAKE_CMD} CFLAGS+= -I${OPENSSLINC} -I${LOCALBASE}/include LDFLAGS+= -L${OPENSSLLIB} .include diff --git a/security/pev/files/patch-src_Makefile b/security/pev/files/patch-src_Makefile index b15dae35625f..53a2929f0f34 100644 --- a/security/pev/files/patch-src_Makefile +++ b/security/pev/files/patch-src_Makefile @@ -1,38 +1,29 @@ --- src/Makefile.orig 2017-01-07 22:34:07 UTC +++ src/Makefile -@@ -24,7 +24,7 @@ docdir = $(datarootdir)/doc/pev - infodir = $(datarootdir)/info - localedir = $(datarootdir)/locale - --mandir = $(datarootdir)/man -+mandir = $(prefix)/man - manext = .1 - man1dir = $(mandir)/man1 - man1ext = .1 @@ -52,7 +52,7 @@ endif ####### Compiler options -override LDFLAGS += -L$(LIBPE) -lpe -ldl +override LDFLAGS += -L$(LIBPE) -lpe override CFLAGS += -I$(LIBPE) -I"../include" -W -Wall -Wextra -std=c99 -pedantic override CPPFLAGS += -D_GNU_SOURCE -DSHAREDIR="\"$(SHAREDIR)"\" -@@ -153,6 +153,17 @@ install: installdirs - $(INSTALL_DATA) $(srcdir)/userdb.txt $(DESTDIR)$(SHAREDIR) - cd $(PLUGINS_DIR) && $(MAKE) $@ - -+install-strip: installdirs -+ for prog in $(PROGS); do \ -+ $(INSTALL_PROGRAM) -s $(pev_BUILDDIR)/$$prog $(DESTDIR)$(bindir); \ +@@ -145,6 +145,17 @@ install: installdirs + install: installdirs + for prog in $(PROGS); do \ + $(INSTALL_PROGRAM) $(pev_BUILDDIR)/$$prog $(DESTDIR)$(bindir); \ + $(CHK_FILE_EXISTS) $(MANDIR)/$$prog$(man1ext) && \ + gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(DESTDIR)$(man1dir)/$$prog$(man1ext).gz || \ + echo -n; \ + done + + $(INSTALL_DATA) $(srcdir)/userdb.txt $(DESTDIR)$(SHAREDIR) + cd $(PLUGINS_DIR) && $(MAKE) $@ + - installdirs: - @$(CHK_DIR_EXISTS) $(DESTDIR) || $(MKDIR) $(DESTDIR) - @$(CHK_DIR_EXISTS) $(DESTDIR)$(bindir) || $(MKDIR) $(DESTDIR)$(bindir) ++install-strip: installdirs ++ for prog in $(PROGS); do \ ++ $(INSTALL_PROGRAM) -s $(pev_BUILDDIR)/$$prog $(DESTDIR)$(bindir); \ + $(CHK_FILE_EXISTS) $(MANDIR)/$$prog$(man1ext) && \ + gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(DESTDIR)$(man1dir)/$$prog$(man1ext).gz || \ + echo -n; \ diff --git a/security/pev/pkg-plist b/security/pev/pkg-plist index 7da2f9fea0ec..92153e568071 100644 --- a/security/pev/pkg-plist +++ b/security/pev/pkg-plist @@ -1,29 +1,29 @@ bin/ofs2rva bin/pedis bin/pehash bin/pepack bin/peres bin/pescan bin/pesec bin/pestr bin/readpe bin/rva2ofs lib/libpe.so lib/libpe.so.1 lib/libpe.so.1.0 lib/pev/plugins/csv_plugin.so lib/pev/plugins/html_plugin.so lib/pev/plugins/json_plugin.so lib/pev/plugins/text_plugin.so lib/pev/plugins/xml_plugin.so -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 -man/man1/readpe.1.gz -man/man1/rva2ofs.1.gz +share/man/man1/ofs2rva.1.gz +share/man/man1/pedis.1.gz +share/man/man1/pehash.1.gz +share/man/man1/pepack.1.gz +share/man/man1/peres.1.gz +share/man/man1/pescan.1.gz +share/man/man1/pesec.1.gz +share/man/man1/pestr.1.gz +share/man/man1/readpe.1.gz +share/man/man1/rva2ofs.1.gz %%DATADIR%%/userdb.txt