# New ports collection makefile for:    ports-core
# Date created:                         2008-05-20
# Whom:                                 Parallels
# OS Version:                           5.5
#
# $FreeBSD: ports/swsoft/ports-core/Makefile 20080218000000 2008/05/20 21:28:57 Parallels Exp $
#

PORTNAME= ports-core
PORTVERSION= 1.0.0
PORTREVISION= 96994

CATEGORIES= swsoft
MASTER_SITES?= http://autoinstall.plesk.com/PSA_8.4.1/dist-pkg-FreeBSD-5.5-i386/distfiles/

MAINTAINER= admins@parallels.com
COMMENT= Core things for all projects of Parallels

PORTEPOCH= 1
EXTRACT_SUFX= .tar.gz

VALID_CATEGORIES+= swsoft

NO_BUILD= yes
PREFIX= /usr

pre-fetch:
	@file=$$(${MD5} ${DISTDIR}/${DISTFILES} | ${AWK} -F '=' '{print $$2}') && \
	sum=$$(${CAT} ${MD5_FILE} | ${GREP} ${DISTFILES} | ${AWK} -F '=' '{print $$2}') && \
	if [ "X$$sum" != "X$$file" ]; then \
		${ECHO} "${DISTFILES} was to be refetch"; \
		${RM} -f ${DISTDIR}/${DISTFILES}; \
	fi

do-install:
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
	@${CP} -Rf ${WRKSRC}/* ${PREFIX}
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>
