diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2017-01-22 22:11:24 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2017-01-22 22:11:24 +0000 |
commit | 2b8c20291d7fdc61d894c5aa09db429b6365b025 (patch) | |
tree | e66739f4aa6338d5c67b3d18b2b818faf3f1ed9f /security/pev/files | |
parent | net-mgmt/icingaweb2: (diff) |
- Update to 0.80
Notes
Notes:
svn path=/head/; revision=432167
Diffstat (limited to 'security/pev/files')
-rw-r--r-- | security/pev/files/patch-lib__libpe__Makefile | 29 | ||||
-rw-r--r-- | security/pev/files/patch-lib_libpe_Makefile | 31 | ||||
-rw-r--r-- | security/pev/files/patch-src_Makefile | 38 | ||||
-rw-r--r-- | security/pev/files/patch-src__Makefile | 53 | ||||
-rw-r--r-- | security/pev/files/patch-src_config.c | 11 | ||||
-rw-r--r-- | security/pev/files/patch-src_plugins.c | 11 | ||||
-rw-r--r-- | security/pev/files/patch-src_plugins_Makefile | 25 |
7 files changed, 116 insertions, 82 deletions
diff --git a/security/pev/files/patch-lib__libpe__Makefile b/security/pev/files/patch-lib__libpe__Makefile deleted file mode 100644 index a549238f32aa..000000000000 --- a/security/pev/files/patch-lib__libpe__Makefile +++ /dev/null @@ -1,29 +0,0 @@ ---- ./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 @@ - - ####### Makefile Conventions - Directory variables - --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 diff --git a/security/pev/files/patch-lib_libpe_Makefile b/security/pev/files/patch-lib_libpe_Makefile new file mode 100644 index 000000000000..d92599479f16 --- /dev/null +++ b/security/pev/files/patch-lib_libpe_Makefile @@ -0,0 +1,31 @@ +--- lib/libpe/Makefile.orig 2017-01-06 22:27:20 UTC ++++ lib/libpe/Makefile +@@ -78,6 +78,8 @@ ifeq ($(PLATFORM_OS), Linux) + $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^ + else ifeq ($(PLATFORM_OS), NetBSD) + $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^ ++else 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 \ + -flat_namespace -install_name $(LIBNAME).$(VERSION).dylib \ +@@ -100,6 +102,10 @@ else ifeq ($(PLATFORM_OS), NetBSD) + $(INSTALL_DATA) $(LIBNAME).so $(DESTDIR)$(libdir)/$(LIBNAME).so.$(VERSION) + cd $(DESTDIR)$(libdir); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so + cd $(DESTDIR)$(libdir); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1 ++else ifeq ($(PLATFORM_OS), FreeBSD) ++ $(INSTALL_DATA) $(LIBNAME).so $(DESTDIR)$(libdir)/$(LIBNAME).so.$(VERSION) ++ cd $(DESTDIR)$(libdir); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so ++ cd $(DESTDIR)$(libdir); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1 + else ifeq ($(PLATFORM_OS), Darwin) + $(INSTALL_DATA) $(LIBNAME).dylib $(DESTDIR)$(libdir)/$(LIBNAME).$(VERSION).dylib + cd $(DESTDIR)$(libdir); $(SYMLINK) $(LIBNAME).$(VERSION).dylib $(LIBNAME).dylib +@@ -117,6 +123,8 @@ ifeq ($(PLATFORM_OS), Linux) + $(STRIP) $(LIBNAME).so + else ifeq ($(PLATFORM_OS), NetBSD) + $(STRIP) $(LIBNAME).so ++else ifeq ($(PLATFORM_OS), FreeBSD) ++ $(STRIP) $(LIBNAME).so + else ifeq ($(PLATFORM_OS), Darwin) + $(STRIP) $(LIBNAME).dylib + else ifeq ($(PLATFORM_OS), CYGWIN) diff --git a/security/pev/files/patch-src_Makefile b/security/pev/files/patch-src_Makefile new file mode 100644 index 000000000000..b15dae35625f --- /dev/null +++ b/security/pev/files/patch-src_Makefile @@ -0,0 +1,38 @@ +--- 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); \ ++ $(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) diff --git a/security/pev/files/patch-src__Makefile b/security/pev/files/patch-src__Makefile deleted file mode 100644 index 11bc2c6d5ccc..000000000000 --- a/security/pev/files/patch-src__Makefile +++ /dev/null @@ -1,53 +0,0 @@ ---- ./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 @@ - - ####### 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 \ diff --git a/security/pev/files/patch-src_config.c b/security/pev/files/patch-src_config.c new file mode 100644 index 000000000000..4f55d3f63856 --- /dev/null +++ b/security/pev/files/patch-src_config.c @@ -0,0 +1,11 @@ +--- src/config.c.orig 2017-01-06 22:27:18 UTC ++++ src/config.c +@@ -40,7 +40,7 @@ + #include <string.h> + #if defined(__linux__) + #include <linux/limits.h> +-#elif defined(__NetBSD__) ++#elif defined(__NetBSD__) || defined(__FreeBSD__) + #include <limits.h> + #elif defined(__APPLE__) + #include <sys/syslimits.h> diff --git a/security/pev/files/patch-src_plugins.c b/security/pev/files/patch-src_plugins.c new file mode 100644 index 000000000000..accf4c52dffe --- /dev/null +++ b/security/pev/files/patch-src_plugins.c @@ -0,0 +1,11 @@ +--- src/plugins.c.orig 2017-01-06 22:27:18 UTC ++++ src/plugins.c +@@ -167,7 +167,7 @@ int plugins_load_all_from_directory(cons + const char *filename = dir_entry->d_name; + + // TODO(jweyrich): Use macro conditions for each system: .so, .dylib, .dll +-#if defined(__linux__) ++#if defined(__linux__) || defined(__FreeBSD__) + const bool possible_plugin = utils_str_ends_with(filename, ".so") != 0; + #elif defined(__APPLE__) + const bool possible_plugin = utils_str_ends_with(filename, ".dylib") != 0; diff --git a/security/pev/files/patch-src_plugins_Makefile b/security/pev/files/patch-src_plugins_Makefile new file mode 100644 index 000000000000..38fd11af109c --- /dev/null +++ b/security/pev/files/patch-src_plugins_Makefile @@ -0,0 +1,25 @@ +--- src/plugins/Makefile.orig 2017-01-06 22:27:18 UTC ++++ src/plugins/Makefile +@@ -57,6 +57,8 @@ json: $(json_OBJS) + $(PLUGINS): + ifeq ($(PLATFORM_OS), Linux) + $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).so $^ ++else ifeq ($(PLATFORM_OS), FreeBSD) ++ $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).so $^ + else ifeq ($(PLATFORM_OS), Darwin) + $(LINK) -headerpad_max_install_names -dynamiclib \ + -undefined dynamic_lookup -fno-common \ +@@ -83,6 +85,13 @@ install: installdirs + $(INSTALL_PROGRAM) -m 755 $(plugins_BUILDDIR)/$(xml_LIBNAME).* $(pluginsdir) + $(INSTALL_PROGRAM) -m 755 $(plugins_BUILDDIR)/$(json_LIBNAME).* $(pluginsdir) + ++install-strip: installdirs ++ $(INSTALL_PROGRAM) -s -m 755 $(plugins_BUILDDIR)/$(csv_LIBNAME).* $(pluginsdir) ++ $(INSTALL_PROGRAM) -s -m 755 $(plugins_BUILDDIR)/$(html_LIBNAME).* $(pluginsdir) ++ $(INSTALL_PROGRAM) -s -m 755 $(plugins_BUILDDIR)/$(text_LIBNAME).* $(pluginsdir) ++ $(INSTALL_PROGRAM) -s -m 755 $(plugins_BUILDDIR)/$(xml_LIBNAME).* $(pluginsdir) ++ $(INSTALL_PROGRAM) -s -m 755 $(plugins_BUILDDIR)/$(json_LIBNAME).* $(pluginsdir) ++ + installdirs: + @$(CHK_DIR_EXISTS) $(pluginsdir) || $(MKDIR) $(pluginsdir) + |