diff options
author | wiz <wiz@pkgsrc.org> | 2014-08-09 22:59:30 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-08-09 22:59:30 +0000 |
commit | 948793c0370821fe78bc5796c8d964be16a59bde (patch) | |
tree | cb78106417bf9bf3378f1082c6d5768bfe5d0763 /sysutils | |
parent | 9160a8dd170dffa8cf08ccf6f06f34e5293c43a6 (diff) | |
download | pkgsrc-948793c0370821fe78bc5796c8d964be16a59bde.tar.gz |
Import watchman-2.9.8 as sysutils/watchman.
Watchman exists to watch files and record when they actually change.
It can also trigger actions (such as rebuilding assets) when matching
files change.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/watchman/DESCR | 3 | ||||
-rw-r--r-- | sysutils/watchman/Makefile | 23 | ||||
-rw-r--r-- | sysutils/watchman/PLIST | 3 | ||||
-rw-r--r-- | sysutils/watchman/distinfo | 7 | ||||
-rw-r--r-- | sysutils/watchman/patches/patch-configure.ac | 29 | ||||
-rw-r--r-- | sysutils/watchman/patches/patch-fstype.c | 23 |
6 files changed, 88 insertions, 0 deletions
diff --git a/sysutils/watchman/DESCR b/sysutils/watchman/DESCR new file mode 100644 index 00000000000..3fede884353 --- /dev/null +++ b/sysutils/watchman/DESCR @@ -0,0 +1,3 @@ +Watchman exists to watch files and record when they actually change. +It can also trigger actions (such as rebuilding assets) when matching +files change. diff --git a/sysutils/watchman/Makefile b/sysutils/watchman/Makefile new file mode 100644 index 00000000000..e3772db9d9a --- /dev/null +++ b/sysutils/watchman/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2014/08/09 22:59:30 wiz Exp $ + +DISTNAME= watchman-${VERSION} +VERSION= 2.9.8 +CATEGORIES= sysutils +MASTER_SITES= -https://github.com/facebook/watchman/archive/v${VERSION}.tar.gz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/facebook/watchman/ +COMMENT= Watches files and takes action when they change +LICENSE= apache-2.0 + +USE_TOOLS+= autoconf automake autoreconf +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-lenient +CONFIGURE_ARGS+= --enable-conffile=${PKG_SYSCONFDIR}/watchman.json +CONFIGURE_ARGS+= --with-pcre + +pre-configure: + cd ${WRKSRC} && ${SH} autogen.sh + +.include "../../devel/pcre/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/watchman/PLIST b/sysutils/watchman/PLIST new file mode 100644 index 00000000000..2048b55116c --- /dev/null +++ b/sysutils/watchman/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2014/08/09 22:59:30 wiz Exp $ +bin/watchman +share/doc/${PKGNAME}/README.markdown diff --git a/sysutils/watchman/distinfo b/sysutils/watchman/distinfo new file mode 100644 index 00000000000..14f1cd2af55 --- /dev/null +++ b/sysutils/watchman/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2014/08/09 22:59:30 wiz Exp $ + +SHA1 (watchman-2.9.8.tar.gz) = f2ddfb5d42dce32da71dd789f63b705526fc9758 +RMD160 (watchman-2.9.8.tar.gz) = f312d38f24ce87ca251753926f73c998895234c1 +Size (watchman-2.9.8.tar.gz) = 183007 bytes +SHA1 (patch-configure.ac) = e751063cc8024f37acdd44129214aab725999070 +SHA1 (patch-fstype.c) = c9c075029bc6c096cc1bec3c5c661aa2bbe72e2e diff --git a/sysutils/watchman/patches/patch-configure.ac b/sysutils/watchman/patches/patch-configure.ac new file mode 100644 index 00000000000..51fab6d9916 --- /dev/null +++ b/sysutils/watchman/patches/patch-configure.ac @@ -0,0 +1,29 @@ +$NetBSD: patch-configure.ac,v 1.1 2014/08/09 22:59:30 wiz Exp $ + +Fix unportable test(1) construct. + +--- configure.ac.orig 2014-05-20 21:14:24.000000000 +0000 ++++ configure.ac +@@ -88,7 +88,7 @@ AC_ARG_WITH(pcre, [ + ]) + + if test "$pcre_config" != "no" ; then +- if test "$pcre_config" == "yes" ; then ++ if test "$pcre_config" = "yes" ; then + pcre_config="pcre-config" + fi + +@@ -187,11 +187,11 @@ AC_CHECK_FUNCS(backtrace backtrace_symbo + if test -n "$GCC" ; then + CFLAGS="$CFLAGS -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer" + fi +-if test -n "$GCC" -a "$stack_protect" == "yes" ; then ++if test -n "$GCC" -a "$stack_protect" = "yes" ; then + CFLAGS="$CFLAGS -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" + fi + IRONMANCFLAGS="" +-if test -n "$GCC" -a "$lenient" == "no" ; then ++if test -n "$GCC" -a "$lenient" = "no" ; then + IRONMANCFLAGS="-Werror" + fi + AC_SUBST(IRONMANCFLAGS) diff --git a/sysutils/watchman/patches/patch-fstype.c b/sysutils/watchman/patches/patch-fstype.c new file mode 100644 index 00000000000..cf46938e6a3 --- /dev/null +++ b/sysutils/watchman/patches/patch-fstype.c @@ -0,0 +1,23 @@ +$NetBSD: patch-fstype.c,v 1.1 2014/08/09 22:59:30 wiz Exp $ + +NetBSD also supports statvfs, adapt checks. + +--- fstype.c.orig 2014-05-20 21:14:24.000000000 +0000 ++++ fstype.c +@@ -53,11 +53,15 @@ w_string_t *w_fstype(const char *path) + } + + return w_string_new(name); +-#elif defined(sun) ++#elif HAVE_SYS_STATVFS_H + struct statvfs sfs; + + if (statvfs(path, &sfs) == 0) { ++#ifdef __NetBSD__ ++ return w_string_new(sfs.f_fstypename); ++#else + return w_string_new(sfs.f_basetype); ++#endif + } + #elif HAVE_STATFS + struct statfs sfs; |