mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
ee6bf67e6a
Reported by: pkg-fallout
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Daniel Voisine <voisined@wit.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= abyssws
|
|
PORTVERSION= 2.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.aprelium.com/data/
|
|
DISTNAME= abwsx1-freebsd
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Abyss Web Server is a compact and easy to use web server
|
|
|
|
BROKEN= Fails to install
|
|
|
|
WRKSRC= ${WRKDIR}/abyssws
|
|
ONLY_FOR_ARCHS= i386
|
|
NO_BUILD= yes
|
|
|
|
USE_RC_SUBR= abyssws
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 700043
|
|
LIB_DEPENDS+= c.6:${PORTSDIR}/misc/compat6x
|
|
.endif
|
|
|
|
pre-install:
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
|
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
|
@if [ -f ${WRKSRC}/htdocs/index.html ]; then \
|
|
${MV} -f ${WRKSRC}/htdocs/index.html \
|
|
${WRKSRC}/htdocs/index.html-dist ; \
|
|
fi
|
|
|
|
do-install:
|
|
@${INSTALL} -d ${PREFIX}/lib/abyssws
|
|
${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${PREFIX}/lib/abyssws -xf -
|
|
@ ${CHOWN} -R abyssws:abyssws ${PREFIX}/lib/abyssws/
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/lib/abyssws/htdocs/index.html ]; then \
|
|
${CP} -p ${PREFIX}/lib/abyssws/htdocs/index.html-dist \
|
|
${PREFIX}/lib/abyssws/htdocs/index.html ; \
|
|
fi
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
|
${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|