1997-01-04 18:54:38 +00:00
|
|
|
# New ports collection makefile for: eperl
|
1997-05-03 07:54:54 +00:00
|
|
|
# Version required: 2.1.1
|
|
|
|
# Date created: Fri May 2 13:16:31 MET DST 1997
|
|
|
|
# Whom: Ralf S. Engelschall <rse@engelschall.com>
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
1997-05-24 13:17:16 +00:00
|
|
|
# $Id: Makefile,v 1.5 1997/05/03 12:36:05 andreas Exp $
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
|
|
|
|
1997-05-03 07:54:54 +00:00
|
|
|
DISTNAME= eperl-2.1.1
|
|
|
|
CATEGORIES= lang www perl5
|
1997-05-03 12:36:05 +00:00
|
|
|
MASTER_SITES= http://www.engelschall.com/sw/eperl/distrib/ \
|
|
|
|
ftp://ftp.engelschall.com/sw/
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
MAINTAINER= rse@engelschall.com
|
|
|
|
|
1997-05-03 07:54:54 +00:00
|
|
|
# User-controlled variables list
|
|
|
|
#
|
|
|
|
# Server-Side Scripting Language (SSSL) support:
|
|
|
|
# INSTALL_ALSO_AS_SSSL - install ePerl also as SSSL for Apache
|
|
|
|
# ENABLE_UID_SWITCHING - allow ePerl to switch the UID/GID to the
|
|
|
|
# owner of the executed script when operating
|
|
|
|
# as a SSSL. Implies usage of SetUID bit!
|
|
|
|
#
|
1997-05-03 12:36:05 +00:00
|
|
|
INSTALL_ALSO_AS_SSSL= yes
|
1997-05-03 07:54:54 +00:00
|
|
|
#ENABLE_UID_SWITCHING= yes
|
|
|
|
|
1997-05-24 13:17:16 +00:00
|
|
|
BUILD_DEPENDS= perl5.004:${PORTSDIR}/lang/perl5
|
1997-05-03 07:54:54 +00:00
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-05-24 13:17:16 +00:00
|
|
|
RUN_DEPENDS= perl5.004:${PORTSDIR}/lang/perl5 \
|
1997-01-04 23:40:19 +00:00
|
|
|
${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/www/apache
|
1997-05-03 07:54:54 +00:00
|
|
|
.else
|
1997-05-24 13:17:16 +00:00
|
|
|
RUN_DEPENDS= perl5.004:${PORTSDIR}/lang/perl5
|
1997-05-03 07:54:54 +00:00
|
|
|
.endif
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1997-05-03 07:54:54 +00:00
|
|
|
CONFIGURE_ARGS+=--with-perl=${PREFIX}/bin/perl
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
do-install:
|
1997-05-03 07:54:54 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-01-04 18:54:38 +00:00
|
|
|
@if [ ! -d ${PREFIX}/www/cgi-bin ]; then \
|
1997-01-04 23:40:19 +00:00
|
|
|
${MKDIR} -p ${PREFIX}/www/cgi-bin; \
|
1997-01-04 18:54:38 +00:00
|
|
|
fi
|
1997-05-03 07:54:54 +00:00
|
|
|
.if defined(ENABLE_UID_SWITCHING)
|
|
|
|
${INSTALL_PROGRAM} -o root -m u+s ${WRKSRC}/eperl \
|
|
|
|
${PREFIX}/www/cgi-bin/nph-eperl
|
|
|
|
.else
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/www/cgi-bin/nph-eperl
|
|
|
|
.endif
|
|
|
|
.endif
|
1997-01-04 23:40:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-05-03 07:54:54 +00:00
|
|
|
@if [ ! -d ${PREFIX}/share/examples/eperl ]; then \
|
|
|
|
${MKDIR} -p ${PREFIX}/share/examples/eperl; \
|
|
|
|
fi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-01.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-01.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-02.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-02.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-03.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-03.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-04.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-04.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-05.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-05.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-06.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-06.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-07.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-07.phtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/eg/demo-08.phtml \
|
|
|
|
${PREFIX}/share/examples/eperl/demo-08.phtml
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
|
|
|
@if [ ".`grep x-httpd-eperl ${PREFIX}/etc/apache/srm.conf`" = . ]; then \
|
|
|
|
echo "AddType application/x-httpd-eperl .phtml .eperl .epl" \
|
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
|
|
|
echo "Action application/x-httpd-eperl /cgi-bin/nph-eperl" \
|
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
|
|
|
echo "Added knowledge about ePerl to Apache's srm.conf"; \
|
|
|
|
else \
|
|
|
|
echo "Apache srm.conf is already aware of ePerl"; \
|
|
|
|
fi
|
1997-01-04 23:40:19 +00:00
|
|
|
.endif
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|