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
|
2004-05-04 09:53:47 -04:00
|
|
|
PORTVERSION= 1.45
|
2004-05-06 08:55:30 -04:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
MAN1= yaws.1
|
|
|
|
MAN5= yaws.conf.5 yaws_api.5
|
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
BROKEN= "Does not compile on !i386"
|
|
|
|
.endif
|
|
|
|
|
2004-01-25 12:06:17 -05:00
|
|
|
post-extract:
|
|
|
|
@${RM} -r ${WRKSRC}/www/.xvpics ${WRKSRC}/www/testdir
|
|
|
|
@${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 \
|
2004-05-06 08:55:30 -04:00
|
|
|
${WRKSRC}/src/yaws_config.erl ${WRKSRC}/scripts/yaws.template
|
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
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/yaws.conf.sample ${PREFIX}/etc/
|
|
|
|
@${MKDIR} ${PREFIX}/lib/yaws/ebin
|
|
|
|
@${MKDIR} ${PREFIX}/lib/yaws/include
|
|
|
|
@${MKDIR} ${PREFIX}/lib/yaws/priv
|
|
|
|
@${MKDIR} ${PREFIX}/www/yaws
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/yaws/ebin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/priv/* ${PREFIX}/lib/yaws/priv
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/lib/yaws/include
|
2004-05-04 09:59:39 -04:00
|
|
|
@cd ${WRKSRC}/www && (${FIND} * | ${CPIO} -pu ${PREFIX}/www/yaws)
|
2004-01-25 12:06:17 -05:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/www/yaws
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/*.1 ${MANPREFIX}/man/man1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/*.5 ${MANPREFIX}/man/man5
|
|
|
|
@${MKDIR} /var/log/${PORTNAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/yaws.pdf ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.post.mk>
|