2005-02-09 21:13:27 +01:00
|
|
|
# New ports collection makefile for: Microsoft FrontPage Extensions
|
|
|
|
# Date created: Tue Feb 4 13:59:20 CST 2003
|
|
|
|
# Whom: hetzels@westbend.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_frontpage
|
2006-06-26 15:56:30 +02:00
|
|
|
PORTVERSION= 5.0.2.4803
|
2005-02-09 21:13:27 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= # Requries manual fetch of files from http://www.rtr.com/
|
2006-02-11 05:32:03 +01:00
|
|
|
PKGNAMESUFFIX= ${AP_VERSION:S/+//}
|
2005-02-09 21:13:27 +01:00
|
|
|
DISTFILES= ${FRONTPAGE}
|
|
|
|
|
2005-11-08 03:07:12 +01:00
|
|
|
MAINTAINER= swhetzel@gmail.com
|
2005-02-09 21:13:27 +01:00
|
|
|
COMMENT= Microsoft mod_frontpage (by RTR) for Apache ${FP_AP_VER}
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${FP_SETPERM}:${PORTSDIR}/www/frontpage
|
|
|
|
|
2006-02-11 05:32:03 +01:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}
|
2005-02-09 21:13:27 +01:00
|
|
|
|
2006-06-26 15:56:30 +02:00
|
|
|
EXTRACT_FILES= ${FP_DIR}/apache-fp/mod_frontpage.c \
|
|
|
|
${FP_DIR}/apache2/mod_fpcgid.c \
|
|
|
|
${FP_DIR}/apache2/mod_fpcgid.h \
|
|
|
|
${FP_DIR}/apache2/mod_frontpage.c \
|
|
|
|
${FP_DIR}/apache2/mod_frontpage.h \
|
|
|
|
${FP_DIR}/apache2/mod_suexec.h
|
2005-02-09 21:13:27 +01:00
|
|
|
|
2006-02-11 05:32:03 +01:00
|
|
|
USE_APACHE?= 20+
|
|
|
|
AP_FAST_BUILD= yes
|
|
|
|
AP_GENPLIST= yes
|
|
|
|
|
2006-02-14 09:23:38 +01:00
|
|
|
AP_EXTRAS= -Wc,-DFREEBSD
|
2005-02-09 21:13:27 +01:00
|
|
|
|
2006-06-26 15:56:30 +02:00
|
|
|
FP_SETPERM= ${FP_DIR}/set_default_perms.sh
|
2005-02-09 21:13:27 +01:00
|
|
|
|
|
|
|
.ifdef WITH_MODFP_COMPAT
|
2006-02-11 05:32:03 +01:00
|
|
|
AP_EXTRAS+= -DIMPROVED_MODFP_COMPAT
|
2005-02-09 21:13:27 +01:00
|
|
|
.endif
|
2006-06-26 15:56:30 +02:00
|
|
|
.ifdef WITH_MODFP_DISABLED
|
2006-02-11 05:32:03 +01:00
|
|
|
AP_EXTRAS+= -DDEFAULT_TO_OFF
|
2005-02-09 21:13:27 +01:00
|
|
|
.endif
|
|
|
|
|
2006-02-11 05:32:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${.CURDIR}/../frontpage/Makefile.fp.common"
|
2005-02-09 21:13:27 +01:00
|
|
|
|
2006-02-11 05:32:03 +01:00
|
|
|
.if ${APACHE_VERSION} >= 20
|
|
|
|
FP_AP_VER= 2.0
|
2006-06-26 15:56:30 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${FP_DIR}/apache2
|
2006-02-11 05:32:03 +01:00
|
|
|
SRC_FILE= mod_frontpage.c mod_fpcgid.c
|
|
|
|
.else
|
|
|
|
FP_AP_VER= 1.3
|
2006-06-26 15:56:30 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${FP_DIR}/apache-fp
|
2006-02-11 05:32:03 +01:00
|
|
|
PKGMESSAGE= ${MASTERDIR}/pkg-message13
|
|
|
|
.endif
|
2005-02-09 21:13:27 +01:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${_DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS} ${EXTRACT_FILES}); \
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if (${PREFIX} != "/usr/local")
|
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|'
|
|
|
|
.else
|
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
|
|
|
|
| ${GREP} -v "ln"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|