Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= mod_security |
8 |
PORTNAME= mod_security |
9 |
PORTVERSION= 2.5.5 |
9 |
PORTVERSION= 2.5.5 |
10 |
PORTREVISION= 2 |
10 |
PORTREVISION= 3 |
11 |
CATEGORIES= www security |
11 |
CATEGORIES= www security |
12 |
MASTER_SITES= http://www.modsecurity.org/download/ |
12 |
MASTER_SITES= http://www.modsecurity.org/download/ |
13 |
DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION} |
13 |
DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION} |
Lines 20-27
Link Here
|
20 |
|
20 |
|
21 |
USE_APACHE= 2.0+ |
21 |
USE_APACHE= 2.0+ |
22 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
|
|
23 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
23 |
AP_GENPLIST= yes |
24 |
AP_GENPLIST= yes |
24 |
AP_EXTRAS+= -DWITH_LIBXML2 |
|
|
25 |
AP_INC= ${LOCALBASE}/include/libxml2 |
25 |
AP_INC= ${LOCALBASE}/include/libxml2 |
26 |
AP_LIB= ${LOCALBASE}/lib |
26 |
AP_LIB= ${LOCALBASE}/lib |
27 |
USE_GNOME= libxml2 |
27 |
USE_GNOME= libxml2 |
Lines 35-45
Link Here
|
35 |
SUB_FILES+= mod_security2.conf |
35 |
SUB_FILES+= mod_security2.conf |
36 |
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" |
36 |
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" |
37 |
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so |
37 |
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so |
38 |
OPTIONS= LUA "Embedded Lua language support (EXPERIMENTAL)" off |
38 |
OPTIONS= LUA "Embedded Lua language support (EXPERIMENTAL)" off \ |
|
|
39 |
MLOGC "build ModSecurity Log Collector (mlogc)" off |
40 |
|
41 |
.include <bsd.port.pre.mk> |
42 |
|
43 |
# XXX make portlint happy |
44 |
AP_EXTRAS+= -DWITH_LIBXML2 |
39 |
|
45 |
|
40 |
.if !defined(SKIP_RULES) |
46 |
.if !defined(SKIP_RULES) |
41 |
SUB_FILES+= pkg-message.rules |
47 |
SUB_FILES+= pkg-message.rules |
42 |
|
48 |
.if defined(WITH_MLOGC) |
|
|
49 |
PLIST_FILES+= ${PREFIX}/bin/mlogc |
50 |
.endif |
43 |
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules |
51 |
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules |
44 |
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2 |
52 |
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2 |
45 |
|
53 |
|
Lines 72-78
Link Here
|
72 |
.else |
80 |
.else |
73 |
CONFIGURE_ARGS+= --without-lua |
81 |
CONFIGURE_ARGS+= --without-lua |
74 |
.endif |
82 |
.endif |
75 |
|
83 |
.if defined(WITH_MLOGC) |
|
|
84 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
85 |
CONFIGURE_ARGS+= --with-curl=${LOCALBASE} |
86 |
.else |
87 |
CONFIGURE_ARGS+= --without-curl |
88 |
.endif |
76 |
REINPLACE_ARGS= -i "" |
89 |
REINPLACE_ARGS= -i "" |
77 |
|
90 |
|
78 |
post-patch: |
91 |
post-patch: |
Lines 86-100
Link Here
|
86 |
${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure |
99 |
${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure |
87 |
.endif |
100 |
.endif |
88 |
|
101 |
|
|
|
102 |
post-build: |
103 |
.if defined(WITH_MLOGC) |
104 |
# XXX there is "mlogc-static" target in the Makefile, too |
105 |
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} mlogc |
106 |
.endif |
107 |
|
89 |
post-install: |
108 |
post-install: |
90 |
.if !defined(NOPORTDOCS) |
109 |
.if !defined(NOPORTDOCS) |
91 |
@${MKDIR} ${DOCSDIR} |
110 |
@${MKDIR} ${DOCSDIR} |
92 |
@(cd ${WRKSRCTOP} && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}/) |
111 |
@(cd ${WRKSRCTOP} && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}/) |
93 |
.endif |
112 |
.endif |
|
|
113 |
.if defined(WITH_MLOGC) |
114 |
${INSTALL_PROGRAM} ${WRKSRC}/mlogc-src/mlogc ${PREFIX}/bin/ |
115 |
.endif |
94 |
.if !defined(SKIP_RULES) |
116 |
.if !defined(SKIP_RULES) |
95 |
@${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/ |
117 |
@${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/ |
96 |
@cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules ${PREFIX}/${APACHEETCDIR}/Includes |
118 |
@cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules ${PREFIX}/${APACHEETCDIR}/Includes |
97 |
@${CAT} ${PKGMESSAGE} |
119 |
@${CAT} ${PKGMESSAGE} |
98 |
.endif |
120 |
.endif |
99 |
|
121 |
|
100 |
.include <bsd.port.mk> |
122 |
.include <bsd.port.post.mk> |