git: 5df45234fa24 - main - security/pev: Move man pages to share/man
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Mar 2024 08:21:57 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=5df45234fa24989251fe5a12e99842992d1f6fa7 commit 5df45234fa24989251fe5a12e99842992d1f6fa7 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2024-03-29 08:15:34 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2024-03-29 08:15:34 +0000 security/pev: Move man pages to share/man Approved by: portmgr (blanket) --- security/pev/Makefile | 2 +- security/pev/files/patch-src_Makefile | 29 ++++++++++------------------- security/pev/pkg-plist | 20 ++++++++++---------- 3 files changed, 21 insertions(+), 30 deletions(-) diff --git a/security/pev/Makefile b/security/pev/Makefile index 38dda3868b11..e0c103d34ced 100644 --- a/security/pev/Makefile +++ b/security/pev/Makefile @@ -1,6 +1,6 @@ PORTNAME= pev PORTVERSION= 0.80 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/ 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,14 +1,5 @@ --- 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 @@ -18,13 +9,10 @@ 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; \ @@ -33,6 +21,9 @@ + $(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 @@ -16,14 +16,14 @@ 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