# New ports collection makefile for:    ports-common
# Date created:                         2007-09-24
# Whom:                                 SWSoft Ltd.
# OS Version:                           6.1
#
# $FreeBSD: ports/swsoft/ports-common/Makefile 8.2.1 2007/09/24 22:33:43 SWSoft Exp $
#

PORTNAME= ports-common
PORTVERSION= 1.0.0
PORTREVISION= 0

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

MAINTAINER= admins@swsoft.com
COMMENT= Common things for all projects of SwSoft

PORTEPOCH= 1
EXTRACT_SUFX= .tar.gz
DISTNAME= common-ports-1.0.0

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>
