1PORTNAME= gamin 2PORTVERSION= 0.1.10 3PORTREVISION?= 335 4CATEGORIES?= devel 5MASTER_SITES= http://people.gnome.org/~veillard/gamin/sources/ 6 7MAINTAINER?= ports@MidnightBSD.org 8COMMENT?= File and directory monitoring system 9WWW= http://people.gnome.org/~veillard/gamin/index.html 10 11LICENSE= lgpl 12 13USES+= gettext gmake libtool pathfix pkgconfig 14USE_GNOME?= glib20 15USE_LDCONFIG= yes 16GNU_CONFIGURE= yes 17CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ 18 --without-python 19CPPFLAGS+= -DHAVE_LINUX -I${LOCALBASE}/include 20LIBS+= -L${LOCALBASE}/lib 21INSTALL_TARGET= install-strip 22 23CONFLICTS= fam 24 25.if !defined(GAMIN_SLAVE) 26OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID 27OPTIONS_DEFAULT=RUN_AS_EUID 28GAM_POLLER_DESC=Use gamin's poller instead of kqueue's 29LIBINOTIFY_DESC=Use libinotify as the FAM backend 30RUN_AS_EUID_DESC=Drop privileges to effective user 31.endif 32 33.include <bsd.mport.options.mk> 34 35.if !defined(GAMIN_SLAVE) 36.if ${PORT_OPTIONS:MGAM_POLLER} 37CPPFLAGS+= -DUSE_GAMIN_POLLER=1 38.endif 39 40.if ${PORT_OPTIONS:MLIBINOTIFY} 41CONFIGURE_ARGS+=--enable-inotify 42LIBS+= -linotify 43LIB_DEPENDS+= libinotify.so:devel/libinotify 44.else 45CONFIGURE_ARGS+=--disable-inotify 46.endif 47.endif 48 49.if ${PORT_OPTIONS:MRUN_AS_EUID} 50CPPFLAGS+= -DRUN_AS_EUID=1 51.endif 52 53post-patch: 54 @${REINPLACE_CMD} "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/server/gam_conf.c 55 56.if !defined(GAMIN_SLAVE) 57regression-test: build 58 @${ECHO_MSG} "===> Running gamin regression tests" 59 @(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ 60 Makefile ${MAKE_ARGS} tests) 61.endif 62 63.include <bsd.port.mk> 64