aboutsummaryrefslogtreecommitdiffstats
path: root/www/frontpage/Makefile
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-12-28 06:26:52 +0800
committerlioux <lioux@FreeBSD.org>2001-12-28 06:26:52 +0800
commit73096daf182e86d124e0123a4ccea9956ca07d38 (patch)
tree63af4891c8bcfc78512e2d19dabf265913dacf1b /www/frontpage/Makefile
parenteafb7aefd00fc8ce668d035158c06cbb03a09a6f (diff)
downloadfreebsd-ports-gnome-73096daf182e86d124e0123a4ccea9956ca07d38.tar.gz
freebsd-ports-gnome-73096daf182e86d124e0123a4ccea9956ca07d38.tar.zst
freebsd-ports-gnome-73096daf182e86d124e0123a4ccea9956ca07d38.zip
New port frontpage version 5.0.2.2623: Microsoft Frontpage 2002
Extentions PR: 31625 Submitted by: Scot W. Hetzel <hetzels@westbend.net>
Diffstat (limited to 'www/frontpage/Makefile')
-rw-r--r--www/frontpage/Makefile128
1 files changed, 128 insertions, 0 deletions
diff --git a/www/frontpage/Makefile b/www/frontpage/Makefile
new file mode 100644
index 000000000000..53dfe5e39ba6
--- /dev/null
+++ b/www/frontpage/Makefile
@@ -0,0 +1,128 @@
+# New ports collection makefile for: Microsoft FrontPage Extentions
+# Date created: Sat Oct 24 16:30:00 CDT 2001
+# Whom: hetzels@westbend.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= frontpage
+PORTVERSION= 5.0.2.2623
+CATEGORIES= www
+MASTER_SITES= ftp://ftp.microsoft.com/products/frontpage/ \
+ ftp://www.westbend.net/Mirrors/ftp.microsoft.com/Products/frontpage/
+DISTFILES= ${FRONTPAGE}
+
+MAINTAINER= hetzels@westbend.net
+
+.include <bsd.port.pre.mk>
+
+ONLY_FOR_ARCHS= i386 alpha
+
+FP_VER= 5.0
+#FP_VER= ${PORTVERSION:C/\..*//}
+
+.if ${ARCH} == i386
+.ifdef WANT_BSDI_EXT
+FRONTPAGE= fp${FP_VER:S/.//}.bsdi.tar.Z
+EXTRA_PATCHES= ${FILESDIR}/fp_install.bsdi
+.if ${OSVERSION} < 4300001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 )
+PKGMESSAGE= pkg-message.bsdi
+.endif
+.else
+.if (defined(BATCH) && ${BATCH} == YES ) || !exists(/usr/lib/compat/libc.so.3)
+LIB_DEPENDS+= c.3:${PORTSDIR}/misc/compat3x
+.endif
+FRONTPAGE= fp${FP_VER:S/.//}.freebsd.tar.Z
+.if ${OSVERSION} < 4300001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 )
+PKGMESSAGE= pkg-message.freebsd
+.endif
+.endif
+.elif ${ARCH} == alpha
+FRONTPAGE= fp${FP_VER:S/.//}.alpha.tar.Z
+EXTRA_PATCHES= ${FILESDIR}/fp_install.alpha
+.endif
+
+.ifdef ALL_FP
+FRONTPAGE= fp${FP_VER:S/.//}.freebsd.tar.Z \
+ fp${FP_VER:S/.//}.bsdi.tar.Z \
+ fp${FP_VER:S/.//}.alpha.tar.Z
+.endif
+
+EXTRACT_ONLY=
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+BATCH?= NO
+CHMOD?= /bin/chmod
+NM= /usr/bin/nm
+CRYPT_DES!= ${NM} /usr/lib/libcrypt.a | ${GREP} -q -e "crypt_des" ; echo $$?
+FP_DIR= frontpage/version${FP_VER}
+FPINSTALL= ${FP_DIR}/fp_install.sh
+FPEXEC= ${FP_DIR}/apache-fp/fpexe.c
+FPSETPERM= ${FP_DIR}/set_default_perms.sh
+README= ${FP_DIR}/readme.htm
+FPHTTPD= ${FP_DIR}/apache-fp
+FPCSS= ${FP_DIR}/admin/1033/webadmin.css
+
+MOD_FPDOCDIR= ${PREFIX}/share/doc/apache/manual/frontpage
+
+PLIST_SUB= FP_VER=${FP_VER}
+
+pre-extract:
+.if ${OSVERSION} < 430001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 )
+ @if ! ${LDCONFIG} -r | ${GREP} -q -e "-ldescrypt"; then \
+ ${ECHO} ; \
+ ${ECHO} "WARNING: MS FrontPage Extentions requires the libdescrypt library"; \
+ ${ECHO} " Install the libdescrypt Library, then build apache-fp"; \
+ ${ECHO} ; \
+ ${ECHO} " FreeBSD Handbook - Security (chapter 6)"; \
+ ${ECHO} " http://www.freebsd.org/handbook/security.html#CRYPT"; \
+ ${ECHO} " FAQ - I live outside the US. Can I use DES encryption?"; \
+ ${ECHO} " http://www.freebsd.org/FAQ/install.html#AEN629"; \
+ ${ECHO} ; \
+ ${FALSE} ; \
+ fi
+.else
+.if ${CRYPT_DES} == 1
+ @${ECHO}
+ @${ECHO} "WARNING: MS FrontPage Extentions requires crypt_des in"
+ @${ECHO} " the /usr/lib/libcrypt library. You will need to"
+ @${ECHO} " rebuild the libcrypt library with DES support."
+.if defined(NOSECURE) || defined(NOCRYPT)
+ @${ECHO}
+ @${ECHO} " You need to comment out both NOSECURE and NOCRYPT"
+ @${ECHO} " in the /etc/make.conf file before rebuilding the"
+ @${ECHO} " libcrypt library."
+.endif
+ @${ECHO}
+ @${FALSE}
+.endif
+.endif
+
+post-extract:
+ @${ECHO} "===> Extracting FrontPage install scripts"
+ cd ${WRKDIR} && \
+ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${FRONTPAGE} \
+ ${EXTRACT_AFTER_ARGS} ${FPINSTALL} ${FPEXEC} \
+ ${README} ${FPSETPERM}
+
+post-patch:
+.if !defined(PATCH_DEBUG)
+ @${PERL} -pi -e 's:PREFIX:${PREFIX}:g ; \
+ s:MOD_FPDOCDIR:${MOD_FPDOCDIR}:g' ${WRKDIR}/${FPINSTALL}
+.endif
+
+do-install:
+ @${ECHO_MSG} "===> Untaring FrontPage Extentions to ${PREFIX}"
+ @(cd ${PREFIX} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${FRONTPAGE} ${EXTRACT_AFTER_ARGS})
+ @${PERL} -pi -e 's:IMAGESDIR:../images/:g' ${PREFIX}/${FPCSS}
+ @${RM} ${PREFIX}/${FPHTTPD}/httpd
+ @${MKDIR} ${MOD_FPDOCDIR}
+ @${CP} ${PREFIX}/${README} ${MOD_FPDOCDIR}/index.html
+ @${INSTALL_SCRIPT} ${WRKDIR}/${FPINSTALL} ${PREFIX}/${FPINSTALL}
+ @${INSTALL_SCRIPT} ${WRKDIR}/${FPSETPERM} ${PREFIX}/${FPSETPERM}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>