blob: 27e1e6dd1d5ddfb2ad73ce370b59643e99d90027 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
PORTNAME= yaws
PORTVERSION= 2.0.6
CATEGORIES= www devel
MASTER_SITES= http://yaws.hyber.org/download/
MAINTAINER= erlang@FreeBSD.org
COMMENT= Web server for dynamic content written in Erlang
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= erl:lang/erlang
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_SUB= yes
PLIST_SUB= VERSION="${PORTVERSION}"
USES= autoreconf gmake libtool pathfix shebangfix
SHEBANG_FILES= www/cgi-bin/foo.py
OPTIONS_DEFINE= WWW
WWW_DESC= Install sample applications
APPDIR= ${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
CONFIGURE_ENV= wwwdir=${WWWDIR} yawsdir=${APPDIR}
INSTALL_TARGET= install-strip
.include <bsd.port.options.mk>
post-extract:
@${FIND} ${WRKSRC} -name .empty -delete
post-patch:
@${REINPLACE_CMD} -e 's|!!PREFIX!!|${PREFIX}|g' \
${WRKSRC}/man/yaws_api.5 \
${WRKSRC}/man/yaws.conf.5
@${FIND} ${WRKSRC} \( -name \*.orig -or -name \*.bak \) -delete
post-install:
.if ${PORT_OPTIONS:MWWW}
${MV} ${STAGEDIR}${PREFIX}/www/www/* ${STAGEDIR}${WWWDIR}
${RMDIR} ${STAGEDIR}${PREFIX}/www/www
.else
${RM} -r ${STAGEDIR}${PREFIX}/www
.endif
${MV} ${STAGEDIR}${PREFIX}/etc/yaws/dhparams.pem \
${STAGEDIR}${PREFIX}/etc/yaws/dhparams.pem.sample
${MV} ${STAGEDIR}${PREFIX}/etc/yaws/yaws-cert.pem \
${STAGEDIR}${PREFIX}/etc/yaws/yaws-cert.pem.sample
${MV} ${STAGEDIR}${PREFIX}/etc/yaws/yaws-key.pem \
${STAGEDIR}${PREFIX}/etc/yaws/yaws-key.pem.sample
${MV} ${STAGEDIR}${PREFIX}/etc/yaws/yaws.conf.template \
${STAGEDIR}${PREFIX}/etc/yaws/yaws.conf.sample
.include <bsd.port.mk>
|