2004-01-25 12:06:17 -05:00
|
|
|
# New ports collection makefile for: yaws
|
|
|
|
# Date Created: 25 Jan 2004
|
|
|
|
# Whom: olgeni@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= yaws
|
2011-08-16 18:17:52 -04:00
|
|
|
PORTVERSION= 1.91
|
2004-01-25 12:06:17 -05:00
|
|
|
CATEGORIES= www
|
2004-05-04 09:53:47 -04:00
|
|
|
MASTER_SITES= http://yaws.hyber.org/download/
|
2004-01-25 12:06:17 -05:00
|
|
|
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
|
|
COMMENT= A webserver for dynamic content written in Erlang
|
|
|
|
|
|
|
|
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
|
|
|
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
|
|
|
|
2004-05-11 18:39:44 -04:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
|
2004-01-25 12:06:17 -05:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-11 15:43:38 -05:00
|
|
|
WRKSRC= ${WRKDIR}/yaws-${PORTVERSION}
|
2008-06-14 19:41:36 -04:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64 sparc64
|
2004-01-25 12:06:17 -05:00
|
|
|
|
|
|
|
MAN1= yaws.1
|
2006-12-21 05:27:03 -05:00
|
|
|
MAN5= yaws.conf.5 yaws_api.5 yaws_soap_lib.5
|
2004-01-25 12:06:17 -05:00
|
|
|
|
2009-02-09 16:32:23 -05:00
|
|
|
OPTIONS= SENDFILE "Use native sendfile(2) interface" on
|
|
|
|
|
2004-05-11 18:39:44 -04:00
|
|
|
APPDIR=${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION}
|
|
|
|
|
2009-07-04 07:54:42 -04:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-02-09 16:32:23 -05:00
|
|
|
.if defined(WITH_SENDFILE)
|
|
|
|
PLIST_SUB+= WITH_SENDFILE=""
|
|
|
|
.else
|
2009-02-13 06:15:51 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-sendfile
|
2009-02-09 16:32:23 -05:00
|
|
|
PLIST_SUB+= WITH_SENDFILE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-01-25 12:06:17 -05:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKSRC} -name .empty | ${XARGS} ${RM}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/man/yaws_api.5 ${WRKSRC}/man/yaws.conf.5 \
|
2009-07-04 07:54:42 -04:00
|
|
|
${WRKSRC}/README
|
2004-01-25 16:47:51 -05:00
|
|
|
@${FIND} ${WRKSRC} -name \*.orig -or -name \*.bak | ${XARGS} ${RM}
|
2004-01-25 12:06:17 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/yaws ${PREFIX}/bin
|
2009-07-04 07:54:42 -04:00
|
|
|
@${MKDIR} ${ETCDIR}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/yaws.conf.sample ${ETCDIR}
|
2004-05-11 18:39:44 -04:00
|
|
|
@${MKDIR} ${APPDIR}/ebin
|
|
|
|
@${MKDIR} ${APPDIR}/include
|
|
|
|
@${MKDIR} ${APPDIR}/priv
|
2007-12-23 17:03:55 -05:00
|
|
|
@${MKDIR} ${APPDIR}/priv/lib
|
2004-05-12 06:56:23 -04:00
|
|
|
@${MKDIR} ${APPDIR}/src
|
2004-01-25 12:06:17 -05:00
|
|
|
@${MKDIR} ${PREFIX}/www/yaws
|
2004-05-11 18:39:44 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${APPDIR}/ebin
|
2007-12-23 17:03:55 -05:00
|
|
|
.for FILE in envelope.xsd mime.types soap.xsd wsdl.xsd epam
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/priv/${FILE} ${APPDIR}/priv
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/priv/lib/* ${APPDIR}/priv/lib
|
2004-05-11 18:39:44 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/include/* ${APPDIR}/include
|
2004-05-12 11:44:35 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/*.?rl ${APPDIR}/src
|
2009-07-04 07:54:42 -04:00
|
|
|
@cd ${WRKSRC}/www && (${FIND} * | ${CPIO} -pu ${WWWDIR})
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}
|
2004-01-25 12:06:17 -05:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/*.1 ${MANPREFIX}/man/man1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/*.5 ${MANPREFIX}/man/man5
|
|
|
|
|
2004-06-24 06:59:40 -04:00
|
|
|
post-install:
|
|
|
|
@${LN} -sf ${PORTNAME}-${PORTVERSION} ${PREFIX}/lib/erlang/lib/${PORTNAME}
|
2009-07-04 07:54:42 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-06-24 06:59:40 -04:00
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.post.mk>
|