head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.40 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.38 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.36 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.34 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.32 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.30 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.28 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.26 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.24 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.22 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.20 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.18 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.16 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.14 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.12 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.10 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.8 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.6 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.4 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.2 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.4.0.12 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.10 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.8 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.6 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.2 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.4 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.3.0.42 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.40 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.38 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.36 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.34 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.32 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.30 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.28 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.26 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.22 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.20 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.18 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.16 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.14 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.12 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.10 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.8 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.6 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.4 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.2 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.1.0.2 pkgsrc-2014Q3-base:1.1; locks; strict; comment @# @; 1.5 date 2021.05.29.23.28.36; author khorben; state Exp; branches; next 1.4; commitid OUTe0LzgNkWIf6VC; 1.4 date 2019.10.22.16.37.05; author khorben; state Exp; branches; next 1.3; commitid LOlGjvar2Ze0MSHB; 1.3 date 2014.12.09.14.37.06; author khorben; state Exp; branches; next 1.2; commitid 6OhsJBiL14gcdn1y; 1.2 date 2014.12.09.13.26.40; author khorben; state Exp; branches; next 1.1; commitid 6IIrh3brc727Tm1y; 1.1 date 2014.08.02.14.11.08; author khorben; state Exp; branches; next ; commitid opOwdmeFunYlhNKx; desc @@ 1.5 log @pev: update to version 0.81 * libpe is now packaged separately (it is no longer shipped in the sources) @ text @$NetBSD: patch-src_Makefile,v 1.4 2019/10/22 16:37:05 khorben Exp $ Only link with libdl on Linux. Let pkgsrc set the _FORTIFY_SOURCE level. --- src/Makefile.orig 2021-01-11 23:29:21.000000000 +0000 +++ src/Makefile @@@@ -52,13 +52,14 @@@@ endif ####### Compiler options +ifeq ($(PLATFORM_OS), Linux) override LDFLAGS += -L$(LIBPE) -lpe -lcrypto -lssl -ldl -lm +else +override LDFLAGS += -L$(LIBPE) -lpe -lcrypto -lssl -lm +endif override CFLAGS += -I$(LIBPE)/include -I"../include" -W -Wall -Wextra -std=c99 -pedantic -# Some gcc/clang builds (depends on the distro) already define _FORTIFY_SOURCE internally, so we -# undefine it first to avoid redefinition warnings. override CPPFLAGS += \ -D_GNU_SOURCE \ - -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 \ -DSHAREDIR="\"$(SHAREDIR)"\" \ -DPLUGINSDIR="\"$(pluginsdir)"\" @ 1.4 log @Update pev to version 0.80 The new patches fix compatibility with OpenSSL 1.1.0, and attempt to fix the build on FreeBSD, NetBSD, and OpenBSD. It does not link on NetBSD (like the previous version, 0.70) but it does on macOS. There was no changelog upstream. @ text @d1 1 a1 1 $NetBSD: patch-src_Makefile,v 1.3 2014/12/09 14:37:06 khorben Exp $ d3 2 a4 1 Only link with libdl on Linux d6 1 a6 1 --- src/Makefile.orig 2017-01-07 22:34:07.000000000 +0000 d8 1 a8 1 @@@@ -52,7 +52,10 @@@@ endif a11 2 -override LDFLAGS += -L$(LIBPE) -lpe -ldl +override LDFLAGS += -L$(LIBPE) -lpe d13 3 a15 1 +override LDFLAGS += -ldl d17 8 a24 2 override CFLAGS += -I$(LIBPE) -I"../include" -W -Wall -Wextra -std=c99 -pedantic override CPPFLAGS += -D_GNU_SOURCE -DSHAREDIR="\"$(SHAREDIR)"\" @ 1.3 log @Updated security/pev to 0.70 Changelog for this version: pev 0.70 - December 26, 2013 ! Missing full/English documentation. ! Missing valid XML and HTML output formats. ! pestr: no support for --net option when parsing unicode strings. ! pestr: unable to handle too big strings. * libpe: rewritten, now using mmap. (Jardel Weyrich). * pestr: added countries domains suffixes. * readpe and peres: output enhancements (Jardel Weyrich). + pehash: sections and headers hash calculation (Jardel Weyrich). + pehash: ssdeep fuzzy hash calculation. + pehash: support for new digest hashes like sha512, ripemd160 and more. + peres: added new tool to analyze/extract PE resources (Marcelo Fleury). + pescan: cpl malware detection. + pescan: undocumented anti-disassembly fpu trick detection. + pesec: show and extract cerfiticates from digitally signed binaries (Jardel Weyrich). - readpe can't show functions exported by ID only. - readpe: fixed subsystem types (Dmitry Mostovenko). @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 Fixed DESTDIR support d5 1 a5 1 --- src/Makefile.orig 2013-12-27 10:39:49.000000000 +0000 d7 1 a7 2 @@@@ -56,7 +56,8 @@@@ ifeq ($(PLATFORM_OS), Darwin) endif d9 1 a9 8 PROGS = readpe rva2ofs ofs2rva pehash pesec pescan pepack pestr pedis peres -SHAREDIR = $(datadir)/pev +MAN1DIR = $(DESTDIR)$(man1dir) +SHAREDIR = $(DESTDIR)$(datadir)/pev LIBPE = $(srcdir)/../lib/libpe LIBUDIS86 = $(srcdir)/../lib/libudis86 LIBFUZZY = $(srcdir)/../lib/libfuzzy @@@@ -68,6 +69,8 @@@@ MANDIR = $(srcdir)/../doc/manpages d11 7 a17 1 all: $(PROGS) a18 38 +pepack: CPPFLAGS += -DPREFIX=\"$(prefix)\" + pesec: LDFLAGS += -lcrypto pesec: compat/strlcat.c @@@@ -85,13 +88,13 @@@@ pescan: LDFLAGS += -lm # Generic rule matching binary names and sources %: %.c - $(CC) $(CFLAGS) $(DFLAGS) output.c malloc_s.c $^ -o $@@ $(LDFLAGS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(DFLAGS) output.c malloc_s.c $^ -o $@@ $(LDFLAGS) install: installdirs for prog in $(PROGS); do \ - $(INSTALL_PROGRAM) -m 755 $$prog $(DEST); \ + $(INSTALL_PROGRAM) -m 755 $$prog $(DEST)/$$prog; \ $(CHK_FILE_EXISTS) $(MANDIR)/$$prog$(man1ext) && \ - gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(man1dir)/$$prog$(man1ext).gz || \ + gzip -c -9 $(MANDIR)/$$prog$(man1ext) > $(MAN1DIR)/$$prog$(man1ext).gz || \ echo -n; \ done # TODO: Should we copy it anyway if it already exists? @@@@ -99,13 +102,13 @@@@ install: installdirs installdirs: @@$(CHK_DIR_EXISTS) $(DEST) || $(MKDIR) $(DEST) - @@$(CHK_DIR_EXISTS) $(man1dir) || $(MKDIR) $(man1dir) + @@$(CHK_DIR_EXISTS) $(MAN1DIR) || $(MKDIR) $(MAN1DIR) @@$(CHK_DIR_EXISTS) $(SHAREDIR) || $(MKDIR) $(SHAREDIR) uninstall: for prog in $(PROGS); do \ $(RM) $(DEST)/$$prog; \ - $(RM) $(man1dir)/$$prog$(man1ext).gz; \ + $(RM) $(MAN1DIR)/$$prog$(man1ext).gz; \ done clean: @ 1.2 log @Fixed the default path to "userdb.txt" in pepack(1) (for pkg/49458) @ text @d1 1 a1 1 $NetBSD: patch-src_Makefile,v 1.1 2014/08/02 14:11:08 khorben Exp $ d5 1 a5 1 --- src/Makefile.orig 2013-01-23 12:37:31.000000000 +0000 d7 2 a8 9 @@@@ -20,15 +20,17 @@@@ 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 = $(DESTDIR)$(PREFIX)/share/pev MAN = ../doc/manpages -MANDIR = /usr/share/man/man1 +MANDIR = $(DESTDIR)$(PREFIX)/man/man1 d10 8 a17 1 ####### Build rules a18 1 # 'make' will compile all binaries d21 1 a21 1 +pepack: CPPFLAGS += -DPREFIX=\"$(PREFIX)\" d23 36 a58 3 pestr: CPPFLAGS += -D_GNU_SOURCE=1 pestr: LDFLAGS += -lpcre pestr: pestr.c @ 1.1 log @Imported security/pev version 0.60 from wip pev is a PE file analysis toolkit that includes some nice programs to work with PE files in many systems. It can be useful for programmers, security analysts and forensic investigators. It's licensed under GPLv3+ terms. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- src/Makefile.orig 2012-10-31 03:59:14.000000000 +0000 d7 1 a7 1 @@@@ -20,9 +20,9 @@@@ RM = rm -f d19 8 @