freebsd-ports/www/aolserver/Makefile
Joseph Koshy 3764620eae Upgrade to v3.4.2.
PR:		ports/35100
Submitted by:	Jose Abelardo Martinez <jamartinez@altern.org>
2002-03-28 09:03:29 +00:00

53 lines
1.5 KiB
Makefile

# New ports collection makefile for: aolserver
# Date created: 13 January 2000
# Whom: Matthew Braithwaite <mab@red-bean.com>
#
# $FreeBSD$
#
PORTNAME= aolserver
PORTVERSION= 3.4.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= mab@red-bean.com
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
INSTALL_TARGET= install INST=${PREFIX}/${PORTNAME}
post-extract:
find ${WRKSRC} -name CVS | xargs ${RM} -rf
post-install:
# Headers
# nsd.h is needed for, e.g., building the Postgres driver
.for header in nsd/nsd.h
${INSTALL_DATA} ${WRKSRC}/${header} ${PREFIX}/${PORTNAME}/include
.endfor
${RM} ${PREFIX}/${PORTNAME}/include/*.orig
# Other documentation
${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
${TAR} -C ${WRKSRC} -c -f - ChangeLog README | ${TAR} -C ${PREFIX}/share/doc/${PORTNAME} -x -f -
${TAR} -C ${WRKSRC}/doc -c -f - . | ${TAR} -C ${PREFIX}/share/doc/${PORTNAME} -x -f -
# Permissions
${CHOWN} nobody:nogroup ${PREFIX}/${PORTNAME}/servers/server1/modules/nslog
${CHOWN} nobody:nogroup ${PREFIX}/${PORTNAME}/log
# Startup file
@if [ ! -f ${PREFIX}/etc/rc.d/aolserver.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/aolserver.sh startup file."; \
${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/aolserver.sh \
>${PREFIX}/etc/rc.d/aolserver.sh ; \
${CHMOD} 755 ${PREFIX}/etc/rc.d/aolserver.sh; \
fi
@${CAT} ${PKGDIR}/pkg-message
.include <bsd.port.mk>