diff options
author | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2019-03-31 23:12:00 +0200 |
---|---|---|
committer | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2019-03-31 23:12:00 +0200 |
commit | 3430d420264f12eb0c06ee0753219b4335da0c7b (patch) | |
tree | 8ec31de0328414575966824965a2e1f645241c51 | |
parent | Readline library is only needed for LUA. (diff) | |
download | ossec-3430d420264f12eb0c06ee0753219b4335da0c7b.tar.xz |
Use pkgconf to configure libinotify.3.2.0
-rw-r--r-- | security/ossec-hids-local/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/security/ossec-hids-local/Makefile b/security/ossec-hids-local/Makefile index 0308db3..b14b845 100644 --- a/security/ossec-hids-local/Makefile +++ b/security/ossec-hids-local/Makefile @@ -38,6 +38,7 @@ INOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify PRELUDE_LIB_DEPENDS= libprelude.so:security/libprelude ZEROMQ_LIB_DEPENDS= libczmq.so:net/czmq +INOTIFY_USES= pkgconfig LUA_USES= readline MYSQL_USE= mysql PGSQL_USES= pgsql @@ -176,7 +177,10 @@ PKGHELP= ${PKGDIR}/pkg-help-${OSSEC_TYPE} PKGMESSAGE= ${WRKDIR}/pkg-message PKGMSG_FILES= message-header +PKG_CONFIG= ${CONFIGURE_ENV:MPKG_CONFIG=*:S/PKG_CONFIG=//} CFLAGS+= -I${LOCALBASE}/include +INOTIFY_CFLAGS= $$(${PKG_CONFIG} --cflags libinotify) +INOTIFY_LDFLAGS=$$(${PKG_CONFIG} --libs libinotify) OSSEC_ARGS+= TARGET=${OSSEC_TYPE} INSTALL_LOCALTIME=no .if !defined(MAINTAINER_MODE) @@ -213,11 +217,11 @@ post-install: .endif .if ${OSSEC_TYPE} == agent -.if defined(MAINTAINER_MODE) +. if defined(MAINTAINER_MODE) @for file_name in $$(find "${STAGEDIR}${SHARED_DIR}" -type f); do ${CHMOD} 0644 $${file_name}; ${CHOWN} ${OSSEC_USER}:${OSSEC_GROUP} $${file_name}; done -.else +. else @for file_name in $$(find "${STAGEDIR}${SHARED_DIR}" -type f); do ${CHMOD} 0644 $${file_name}; done -.endif +. endif .endif @${ECHO_CMD} -n > ${PKGMESSAGE} .for file_name in ${PKGMSG_FILES} |