1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/abyssws/Makefile
Pav Lucistnik b6347add1f - Correctly define dependency
- For FreeBSD 6.X and later
- Correctly preserve index.html
- Remove user and group left behind at deinstall

PR:		ports/117003
Submitted by:	Dan Voisine <voisined@wit.edu> (maintainer)
2007-12-14 20:37:54 +00:00

64 lines
1.5 KiB
Makefile

# New ports collection makefile for: abyssws
# Date created: 26 August 2007
# Whom: Daniel Voisine <voisined@wit.edu>
#
# $FreeBSD$
#
PORTNAME= abyssws
PORTVERSION= 2.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.aprelium.com/data/
DISTNAME= abwsx1-freebsd
EXTRACT_SUFX= .tgz
MAINTAINER= voisined@wit.edu
COMMENT= Abyss Web Server is a compact and easy to use web server
WRKSRC= ${WRKDIR}/abyssws
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
PKGDEINSTALL= ${PKGINSTALL}
USE_RC_SUBR= abyssws.sh
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
IGNORE= is for FreeBSD 6.x and newer
.endif
.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 abyssws:abyssws \
${PREFIX}/lib/abyssws' >> ${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
post-deinstall:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGDEINSTALL} ${PORTNAME} POST-DEINSTALL
.include <bsd.port.post.mk>