mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
834b1c0992
dependency Reported by: exp-run (PR 184591) Approved by: portmgr (blanket)
62 lines
1.9 KiB
Makefile
62 lines
1.9 KiB
Makefile
# Created by: Stefan Schwarzer <sschwarzer@sschwarzer.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= webware
|
|
DISTVERSION= 1.1.1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= SF/${PORTNAME}/Webware/${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= Webware-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A versatile web application server written in Python
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mx-base>0:${PORTSDIR}/lang/py-mx-base
|
|
|
|
USE_PYTHON= -2.7
|
|
NO_BUILD= yes
|
|
|
|
WEBWARE_USER?= webkit
|
|
WEBWARE_GROUP?= ${WEBWARE_USER}
|
|
WEBWARE_MASTER_DIR?=${PREFIX}/share/webware
|
|
WEBKIT_HOME_DIR?=${PREFIX}/www/webkit
|
|
INSTALL_ENV= PKG_PREFIX=${PREFIX} \
|
|
PYTHON=${PYTHON_CMD} \
|
|
LOCALBASE=${LOCALBASE} \
|
|
WEBWARE_USER=${WEBWARE_USER} \
|
|
WEBWARE_GROUP=${WEBWARE_GROUP} \
|
|
WEBWARE_MASTER_DIR=${WEBWARE_MASTER_DIR} \
|
|
WEBKIT_HOME_DIR=${WEBKIT_HOME_DIR}
|
|
|
|
PLIST_SUB+= WEBWARE_MASTER_DIR=${WEBWARE_MASTER_DIR:S,^${PREFIX}/,,}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/sbin/apxs|${APXS}|' ${WRKSRC}/WebKit/Adapters/mod_webkit1/Makefile
|
|
@${REINPLACE_CMD} -e 's|/usr/sbin/apxs|${APXS}|' ${WRKSRC}/WebKit/Adapters/mod_webkit2/Makefile
|
|
@${RM} ${WRKSRC}/WebKit/Adapters/mod_webkit2/Makefile.bak
|
|
@${RM} ${WRKSRC}/WebKit/Adapters/mod_webkit1/Makefile.bak
|
|
|
|
pre-install:
|
|
@ ${ECHO} '---> Making webware default user and its group'
|
|
${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@${MKDIR} ${WEBWARE_MASTER_DIR}
|
|
@${CP} -R ${WRKSRC}/* ${WEBWARE_MASTER_DIR}
|
|
|
|
@ ${ECHO} '---> Installing start/stop script'
|
|
${SED} -e "s|%%WEBKIT_HOME_DIR%%|${WEBKIT_HOME_DIR}|g" \
|
|
< ${FILESDIR}/webkit.sh.tmpl \
|
|
> ${PREFIX}/etc/rc.d/webkit.sh-dist
|
|
${CHMOD} 755 ${PREFIX}/etc/rc.d/webkit.sh-dist && \
|
|
${CHOWN} root:wheel ${PREFIX}/etc/rc.d/webkit.sh-dist
|
|
|
|
post-install:
|
|
@ ${ECHO} '---> Compiling Python files and making webkit home directory'
|
|
${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|