Skip to content

Commit

Permalink
sysutils/inotify-tools: Update 3.22.6.0 → 4.23.8.0
Browse files Browse the repository at this point in the history
Reported by:	portscout
  • Loading branch information
yurivict committed Aug 22, 2023
1 parent 76a85e6 commit 201baf5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 66 deletions.
13 changes: 8 additions & 5 deletions sysutils/inotify-tools/Makefile
@@ -1,5 +1,5 @@
PORTNAME= inotify-tools
DISTVERSION= 3.22.6.0
DISTVERSION= 4.23.8.0
CATEGORIES= sysutils

MAINTAINER= yuri@FreeBSD.org
Expand All @@ -10,11 +10,14 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libinotify.so:devel/libinotify
TEST_DEPENDS= bash:shells/bash

USES= autoreconf compiler:c11 gmake libtool localbase
USES= autoreconf compiler:c11 gmake libtool localbase shebangfix
USE_GITHUB= yes
USE_LDCONFIG= yes

SHEBANG_GLOB= *.t *.sh

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-doxygen

Expand All @@ -24,9 +27,9 @@ OPTIONS_DEFINE= STATIC
OPTIONS_SUB= yes

post-patch:
@${REINPLACE_CMD} -e 's|stat64|stat|' \
${WRKSRC}/src/common.c \
${WRKSRC}/libinotifytools/src/inotifytools.c
@${REINPLACE_CMD} \
-e 's|SHELL_PATH ?= /bin/bash|SHELL_PATH ?= ${LOCALBASE}/bin/bash|' \
${WRKSRC}/t/Makefile

post-build-STATIC-on:
@cd ${WRKSRC}/src && \
Expand Down
6 changes: 3 additions & 3 deletions sysutils/inotify-tools/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1655175207
SHA256 (inotify-tools-inotify-tools-3.22.6.0_GH0.tar.gz) = c6b7e70f1df09e386217102a1fe041cfc15fa4f3d683d2970140b6814cf2ed12
SIZE (inotify-tools-inotify-tools-3.22.6.0_GH0.tar.gz) = 92918
TIMESTAMP = 1692682288
SHA256 (inotify-tools-inotify-tools-4.23.8.0_GH0.tar.gz) = 8ad8b72a146af57688f3289b33b92a026915fc677997147071887b65b603d20a
SIZE (inotify-tools-inotify-tools-4.23.8.0_GH0.tar.gz) = 93265
6 changes: 3 additions & 3 deletions sysutils/inotify-tools/files/patch-configure.ac
@@ -1,7 +1,7 @@
--- configure.ac.orig 2021-09-28 08:39:16 UTC
--- configure.ac.orig 2023-08-21 19:51:56 UTC
+++ configure.ac
@@ -45,6 +45,7 @@ AM_CONDITIONAL([STATIC_BINARY_ENABLE], test "$STATIC_B

@@ -55,6 +55,7 @@ fi
AM_CONDITIONAL(IS_CLANG, test "$IS_CLANG" = "yes")

# Checks for libraries.
+AC_SEARCH_LIBS(inotify_init, inotify)
Expand Down
18 changes: 11 additions & 7 deletions sysutils/inotify-tools/files/patch-src_Makefile.am
@@ -1,11 +1,15 @@
--- src/Makefile.am.orig 2021-09-28 08:39:16 UTC
--- src/Makefile.am.orig 2023-08-21 19:51:56 UTC
+++ src/Makefile.am
@@ -11,7 +11,7 @@ fsnotifywatch_SOURCES = inotifywatch.c common.c common
fsnotifywatch_CPPFLAGS = -DENABLE_FANOTIFY
@@ -12,10 +12,10 @@ fsnotifywatch_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_FANOT
endif

-AM_CFLAGS = -Wall -Wextra -Wshadow -Werror -std=c99 -I../libinotifytools/src
+AM_CFLAGS = -Wall -Wextra -Wshadow -Werror -std=c99
AM_CPPFLAGS = -I$(top_srcdir)/libinotifytools/src
LDADD = ../libinotifytools/src/libinotifytools.la
if IS_CLANG
-AM_CFLAGS = -std=c99 -fno-exceptions -Wall -Wextra -Wshadow -Werror -Wno-unused-command-line-argument -I../libinotifytools/src
+AM_CFLAGS = -std=c99 -fno-exceptions -Wall -Wextra -Wshadow -Werror -Wno-unused-command-line-argument
AM_CPPFLAGS = -std=c++17 -fno-exceptions -Wall -Wextra -Wshadow -Werror -Wno-unused-command-line-argument -I../libinotifytools/src
else
-AM_CFLAGS = -std=c99 -fno-exceptions -Wall -Wextra -Wshadow -Werror -I../libinotifytools/src
+AM_CFLAGS = -std=c99 -fno-exceptions -Wall -Wextra -Wshadow -Werror
AM_CPPFLAGS = -std=c++17 -fno-exceptions -Wall -Wextra -Wshadow -Werror -I../libinotifytools/src
endif

48 changes: 0 additions & 48 deletions sysutils/inotify-tools/files/patch-src_inotifywatch.c

This file was deleted.

0 comments on commit 201baf5

Please sign in to comment.