Index: head/www/mod_security/Makefile =================================================================== --- head/www/mod_security/Makefile (revision 232526) +++ head/www/mod_security/Makefile (revision 232527) @@ -1,120 +1,120 @@ # New ports collection makefile for: mod_security # Date created: 4 June 2003 # Whom: Marcelo Araujo # # $FreeBSD$ # PORTNAME= mod_security -PORTVERSION= 2.5.7 -PORTREVISION= 1 +PORTVERSION= 2.5.9 CATEGORIES= www security -MASTER_SITES= http://www.modsecurity.org/download/ +MASTER_SITES= SF +MASTER_SITE_SUBDIR= mod-security DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION} MAINTAINER= araujo@FreeBSD.org COMMENT= An intrusion detection and prevention engine LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre \ apr-1.3:${PORTSDIR}/devel/apr USE_APACHE= 2.0+ GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} AP_GENPLIST= yes AP_INC= ${LOCALBASE}/include/libxml2 AP_LIB= ${LOCALBASE}/lib USE_GNOME= libxml2 MODULENAME= mod_security2 WRKSRCTOP= ${WRKDIR}/${DISTNAME} WRKSRC= ${WRKSRCTOP}/apache2 SRC_FILE= *.c PORTDOCS= * DOCS= CHANGES LICENSE README.TXT modsecurity.conf-minimal DOCSDIR= ${PREFIX}/share/doc/${MODULENAME} SUB_FILES+= mod_security2.conf SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so OPTIONS= LUA "Embedded Lua language support" off \ MLOGC "Build ModSecurity Log Collector" off .include .if !defined(SKIP_RULES) SUB_FILES+= pkg-message.rules .if defined(WITH_MLOGC) PLIST_FILES+= ${PREFIX}/bin/mlogc .endif PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2 PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/CHANGELOG PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/LICENSE PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/README PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_23_request_limits.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_10_config.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_20_protocol_violations.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_21_protocol_anomalies.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_30_http_policy.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_35_bad_robots.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_40_generic_attacks.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_45_trojans.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_50_outbound.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_20_protocol_violations.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_21_protocol_anomalies.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_40_generic_attacks.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_42_comment_spam.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_42_tight_security.conf PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_55_marketing.conf .endif .if defined(WITH_LUA) USE_LUA= 5.1+ CONFIGURE_ARGS+= --with-lua=${LOCALBASE} LIB_DEPENDS+= lua.1:${PORTSDIR}/lang/lua .else CONFIGURE_ARGS+= --without-lua .endif .if defined(WITH_MLOGC) LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl CONFIGURE_ARGS+= --with-curl=${LOCALBASE} .else CONFIGURE_ARGS+= --without-curl .endif REINPLACE_ARGS= -i "" AP_EXTRAS+= -DWITH_LIBXML2 post-patch: @${REINPLACE_CMD} -e '\ s|SecRuleEngine On|SecRuleEngine DetectionOnly|; \ s|SecAuditLog.*logs/modsec_audit.log|SecAuditLog /var/log/httpd-modsec2_audit.log|; \ s|SecDebugLog.*logs/modsec_debug.log|SecDebugLog /var/log/httpd-modsec2_debug.log|; \ s|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|; \ ' ${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf .if defined(WITH_LUA) ${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure .endif post-build: .if defined(WITH_MLOGC) # XXX there is "mlogc-static" target in the Makefile, too cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} mlogc .endif post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @(cd ${WRKSRCTOP} && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}/) .endif .if defined(WITH_MLOGC) ${INSTALL_PROGRAM} ${WRKSRC}/mlogc-src/mlogc ${PREFIX}/bin/ .endif .if !defined(SKIP_RULES) @${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/ @cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules ${PREFIX}/${APACHEETCDIR}/Includes @${CAT} ${PKGMESSAGE} .endif .include Property changes on: head/www/mod_security/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.27 \ No newline at end of property +1.28 \ No newline at end of property Index: head/www/mod_security/distinfo =================================================================== --- head/www/mod_security/distinfo (revision 232526) +++ head/www/mod_security/distinfo (revision 232527) @@ -1,3 +1,3 @@ -MD5 (modsecurity-apache_2.5.7.tar.gz) = 049509c4d76048ce02cfb558d6598761 -SHA256 (modsecurity-apache_2.5.7.tar.gz) = 581b81e39fe23bae75f460547b8d4c172ffaa54ff913ccf94b62cc56b4fb3d9a -SIZE (modsecurity-apache_2.5.7.tar.gz) = 1117167 +MD5 (modsecurity-apache_2.5.9.tar.gz) = b7bf44a7e041b49b0da5043495660375 +SHA256 (modsecurity-apache_2.5.9.tar.gz) = 02352221ea268f8ae9aae5b84507f51eba2a67c0f7d2efd5cc88e85f1f394056 +SIZE (modsecurity-apache_2.5.9.tar.gz) = 1252295 Property changes on: head/www/mod_security/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.19 \ No newline at end of property +1.20 \ No newline at end of property