head	1.18;
access;
symbols
	RELEASE_7_4_0:1.15
	RELEASE_8_2_0:1.15
	RELEASE_6_EOL:1.15
	RELEASE_8_1_0:1.15
	RELEASE_7_3_0:1.15
	RELEASE_8_0_0:1.15
	RELEASE_7_2_0:1.15
	RELEASE_7_1_0:1.15
	RELEASE_6_4_0:1.15
	RELEASE_5_EOL:1.15
	RELEASE_7_0_0:1.15
	RELEASE_6_3_0:1.15
	PRE_XORG_7:1.15
	RELEASE_4_EOL:1.14
	RELEASE_6_2_0:1.14
	RELEASE_6_1_0:1.11
	RELEASE_5_5_0:1.11
	RELEASE_6_0_0:1.11
	RELEASE_5_4_0:1.11
	RELEASE_4_11_0:1.11
	RELEASE_5_3_0:1.11
	RELEASE_4_10_0:1.9
	RELEASE_5_2_1:1.7
	RELEASE_5_2_0:1.7
	RELEASE_4_9_0:1.7
	RELEASE_5_1_0:1.7
	RELEASE_4_8_0:1.6
	RELEASE_5_0_0:1.4;
locks; strict;
comment	@# @;


1.18
date	2011.08.01.04.29.38;	author bapt;	state dead;
branches;
next	1.17;

1.17
date	2011.06.27.17.50.37;	author crees;	state Exp;
branches;
next	1.16;

1.16
date	2011.06.08.16.15.45;	author bapt;	state Exp;
branches;
next	1.15;

1.15
date	2007.04.16.11.57.17;	author edwin;	state Exp;
branches;
next	1.14;

1.14
date	2006.06.11.15.28.59;	author erwin;	state Exp;
branches;
next	1.13;

1.13
date	2006.05.03.23.26.32;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2006.04.01.12.34.24;	author edwin;	state Exp;
branches;
next	1.11;

1.11
date	2004.06.24.14.24.40;	author lioux;	state Exp;
branches;
next	1.10;

1.10
date	2004.06.13.15.40.24;	author lioux;	state Exp;
branches;
next	1.9;

1.9
date	2004.02.27.00.01.02;	author lioux;	state Exp;
branches;
next	1.8;

1.8
date	2004.02.08.01.13.48;	author lioux;	state Exp;
branches;
next	1.7;

1.7
date	2003.04.25.18.01.46;	author lioux;	state Exp;
branches;
next	1.6;

1.6
date	2003.02.28.01.46.50;	author lioux;	state Exp;
branches;
next	1.5;

1.5
date	2003.02.23.19.58.15;	author lioux;	state Exp;
branches;
next	1.4;

1.4
date	2002.12.19.01.17.07;	author lioux;	state Exp;
branches;
next	1.3;

1.3
date	2002.10.21.10.59.11;	author tom;	state Exp;
branches;
next	1.2;

1.2
date	2002.10.19.18.19.50;	author lioux;	state Exp;
branches;
next	1.1;

1.1
date	2002.10.07.03.07.13;	author lioux;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Bye bye abandonwares (part 2)

2011-08-01 benchmarks/rawio: Looks like an abandonware, no more public distfiles
2011-08-01 benchmarks/tmetric: Looks like abandonware, no more public distfiles
2011-08-01 biology/L-Breeder: Looks like an abandonware, no more public distfile
2011-08-01 biology/crimap: Looks like an abandonware, no more public distfile
2011-08-01 biology/distribfold: No more upstream, looks like an abandonware
2011-08-01 biology/kinemage: Looks like an abandonware, no more public distfile
2011-08-01 biology/lsysexp: Looks like an abandonware, no more public distfile
2011-08-01 chinese/chm2html: Looks like an abandonware, no more public distfile
2011-08-01 chinese/ntuttf: No more public distfiles available
2011-08-01 chinese/reciteword: Looks like an abandonware, no more public distfile
2011-08-01 chinese/tocps: No more pulic distfiles
2011-08-01 chinese/xttmgr: Looks like an abandonware, no more public distfile
2011-08-01 comms/mserver: Looks like an abandonware, no more public distfiles
2011-08-01 comms/qicosi: Looks like an abandonware, no more public distfile
2011-08-01 comms/sms_client: Looks like an abandonware, no more public distfile
2011-08-01 comms/smstools: Looks like an abandonware, no more public distfile
2011-08-01 converters/siconv: Looks like an abandonware, no more public distfiles
2011-08-01 converters/utf8conv: Looks like an abandonware, no more public distfile
2011-08-01 databases/pgcluster: Looks like an abandonware, no more public distfile
2011-08-01 databases/py-MySQL: Please use databases/py-MySQLdb instead
2011-08-01 databases/py-SQLDict: Looks like an abandonware, no more public distfile
2011-08-01 databases/py-rrdpipe: Looks like an abandonware, no more public distfile
2011-08-01 databases/sybase_ase: no more public distfiles available
@
text
@# New ports collection makefile for:	folding@@home client
# Date created:		Sun Sep 29 19:48:01 UTC 2002
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@@FreeBSD.org>
#
# $FreeBSD: ports/biology/distribfold/Makefile,v 1.17 2011/06/27 17:50:37 crees Exp $
#

PORTNAME=	distribfold
PORTVERSION=	0.1.${RELEASE_DATE}
CATEGORIES=	biology net
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	lioux
DISTNAME=	distribfold-current-FreeBSD-${PORTVERSION}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	distributedfolding.org distributed protein folding project

LIB_DEPENDS=	c_r.4:${PORTSDIR}/misc/compat4x

DEPRECATED=	No more upstream, looks like an abandonware
EXPIRATION_DATE=	2011-08-01

ONLY_FOR_ARCHS=	i386
USE_BZIP2=	yes
NO_BUILD=	yes

WRKSRC=		${WRKDIR}/distribfold
PKGMESSAGE=	${WRKDIR}/pkg-message
SUB_FILES=	pkg-message

# files to install
SCRIPT_FILES=	distrib-update foldit
PROGRAM_FILES=	foldtrajlite
# installation dir
DESTINATION_DIR=	${PREFIX}/distribfold

# default users
DNETFOLD_USER=dnetfold
DNETFOLD_GROUP=dnetfold
USERS=		${DNETFOLD_USER}
GROUPS=		${DNETFOLD_GROUP}

# default number of processors
WITH_NCPU?=	1

RELEASE_DATE=	20040613

post-patch:
	@@${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}/cpu0|' \
		${WRKSRC}/foldit

do-install:
# remove any patch scrap files
.for ext in bak orig
	@@${RM} -f ${WRKSRC}/*.${ext}
.endfor
# strip binaries
.for f in ${PROGRAM_FILES}
	@@${STRIP_CMD} ${WRKSRC}/${f}
.endfor
# install startup script
	@@${INSTALL_SCRIPT} ${WRKDIR}/distribfold.sh ${PREFIX}/etc/rc.d
# for every cpu directory
	@@ncpu=`${CAT} ${WRKDIR}/ncpu` ; \
	for dir in `${SH} ${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \
		DESTINATION_DIR=${DESTINATION_DIR}/cpu$${dir} ; \
		${MKDIR} $${DESTINATION_DIR} ; \
		${INSTALL_DATA} ${WRKSRC}/* $${DESTINATION_DIR} ; \
		${CHGRP} -R ${DNETFOLD_GROUP} $${DESTINATION_DIR} ; \
		${CHMOD} g+w $${DESTINATION_DIR} ; \
		${CHOWN} ${DNETFOLD_USER} $${DESTINATION_DIR}/* ; \
		${CHMOD} u+w $${DESTINATION_DIR}/* ; \
		for f in ${PROGRAM_FILES} ${SCRIPT_FILES} ; do \
			${CHMOD} 0755 $${DESTINATION_DIR}/$${f} ; \
		done ; \
	done
# display package message
	@@${CAT} ${PKGMESSAGE}

post-install: cook-install-plist fix-startup-scripts

pre-everything::
.if ${WITH_NCPU} < 1
	@@${ECHO_MSG} "===> Number of processors HAS to be at least 1"
	@@${ECHO_MSG} "===> (${WITH_NCPU}) IS NOT"
	@@${FALSE}
.endif
	@@${ECHO_MSG} "=======> ATTENTION <======="
	@@${ECHO_MSG} "===> If you want to have multiple copies of this program"
	@@${ECHO_MSG} "===> running in order to make better use of your SMP"
	@@${ECHO_MSG} "===> system, set WITH_CPU to the number of cpus"
	@@${ECHO_MSG} "===> available in your system"
	@@${ECHO_MSG} "===> For example, 2 cpus. \"make WITH_CPU=2\""
	@@${ECHO_MSG} "===> Do not use this variable if you do not have a SMP"
	@@${ECHO_MSG} "===> system. There is no advantage otherwise."

do-configure:
# prepare startup script
	@@${SED} -e 's|%%DNETFOLD_USER%%|${DNETFOLD_USER}|' \
		-e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}|' \
		-e 's|%%NCPU%%|${WITH_NCPU}|' \
		${FILESDIR}/distribfold.sh > ${WRKDIR}/distribfold.sh
# record number of cpus
	@@${ECHO} ${WITH_NCPU} > ${WRKDIR}/ncpu

cook-install-plist: generate-plist
.if ${WITH_NCPU} > 1
	@@${GREP} cpu0 ${TMPPLIST} > ${WRKDIR}/plist
	@@${TAIL} -n 2 ${TMPPLIST} > ${WRKDIR}/plist.end
	@@${CP} /dev/null ${WRKDIR}/plistN
# for every cpu directory
	@@ncpu=`${CAT} ${WRKDIR}/ncpu` ; \
	for dir in `${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \
		${SED} -e "s|cpu0|cpu$${dir}|" ${WRKDIR}/plist >> ${WRKDIR}/plistN ; \
	done
	@@${CP} /dev/null ${TMPPLIST}
.for f in plistN plist.end
	@@${CAT} ${WRKDIR}/${f} >> ${TMPPLIST}
.endfor
.endif

fix-startup-scripts:
.if ${WITH_NCPU} > 1
# for every cpu directory
	@@ncpu=`${CAT} ${WRKDIR}/ncpu` ; \
	for dir in `${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \
		${REINPLACE_CMD} -e "s|cpu0|cpu$${dir}|" \
			${DESTINATION_DIR}/cpu$${dir}/foldit ; \
		${RM} -f ${DESTINATION_DIR}/cpu$${dir}/foldit.bak ; \
	done
.endif

.include <bsd.port.mk>
@


1.17
log
@- Use USERS and GROUPS
- Use ${SH} instead of calling script directly

PR:		ports/157575
Submitted by:	Chris Rees (utisoft@@gmail.com)
Approved by:	tabthorpe (co-mentor)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@deprecate and set expiration date:
it is an abandonware and it is unmaintain for very long
@
text
@d40 2
a51 5
pre-install:
# create users
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
		${PKGINSTALL} ${PKGNAME} POST-INSTALL

d65 1
a65 1
	for dir in `${FILESDIR}/number_of_dirs.sh $${ncpu}` ; do \
@


1.15
log
@- Remove unreachable OSVERSION code.
- Make portlint happier
@
text
@d20 3
@


1.14
log
@USE_SIZE was obsoleted in rev. 1.484 of bsd.port.mk more than
2 years ago. Clean out the last traces of it.

With hat:	portmgr
@
text
@d18 2
d58 2
a59 2
.for file in ${PROGRAM_FILES}
	@@${STRIP_CMD} ${WRKSRC}/${file}
d73 2
a74 2
		for file in ${PROGRAM_FILES} ${SCRIPT_FILES} ; do \
			${CHMOD} 0755 $${DESTINATION_DIR}/$${file} ; \
a81 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
LIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
.endif

d117 2
a118 2
.for file in plistN plist.end
	@@${CAT} ${WRKDIR}/${file} >> ${TMPPLIST}
d133 1
a133 1
.include <bsd.port.post.mk>
@


1.13
log
@Remove USE_REINPLACE from all categories starting with B
@
text
@a19 1
USE_SIZE=	yes
@


1.12
log
@Use SUB_FILES for pkg-message
@
text
@a19 1
USE_REINPLACE=	yes
@


1.11
log
@Drop maintainership
@
text
@d25 2
@


1.10
log
@Update to 20040613 release
@
text
@d15 1
a15 1
MAINTAINER=	lioux@@FreeBSD.org
@


1.9
log
@Update to 20040226 release
@
text
@d39 1
a39 1
RELEASE_DATE=	20040226
@


1.8
log
@USE_SIZEify
@
text
@d19 1
d39 1
a39 1
RELEASE_DATE=	20030425
@


1.7
log
@Update to 20030425 snapshot
@
text
@d20 1
@


1.6
log
@Update to 20030227 snapshot
@
text
@d37 1
a37 1
RELEASE_DATE=	20030227
@


1.5
log
@De-pkg-comment
@
text
@d37 1
a37 1
RELEASE_DATE=	20021105
@


1.4
log
@o Update to 20021105 snapshot
o Depend on compat4x on OSVERSION >= 500000 since these are 4.5-RELEASE
  binaries
o House a copy under MASTER_SITE_LOCAL: the local copy will be
  versioned, developer has yet to be convinced of the advantages
  of distributing versioned files

Approved by:	portmgr (knu)
@
text
@d16 1
@


1.3
log
@Update CATEGORIES as per ports/44331.

While I'm here, remove unnecessary whitespace spotted by portlint.

PR:		ports/44331
Submitted by:	Martin Klaffenboeck <martin.klaffenboeck@@gmx.at>
@
text
@d11 3
a13 2
MASTER_SITES=	ftp://ftp.mshri.on.ca/pub/distribfold/download/
DISTNAME=	distribfold-current-FreeBSD
d36 1
a36 1
RELEASE_DATE=	20021015
d78 4
@


1.2
log
@o Update to snapshot 20021015
o Fix an issue with the startup scripts
@
text
@d10 1
a10 1
CATEGORIES=	misc net
d47 1
a47 1
# remove any patch scrap files 
@


1.1
log
@o New port distribfold version 0.1: distribfold.org distributed protein
  folding project
o One can start multiple instances of this port. Just install it
  using WITH_NCPU
@
text
@d9 1
a9 1
PORTVERSION=	0.1
d35 2
d38 1
a38 1
	@@${REINPLACE_CMD} -E -e 's|%%DESTINATION_DIR%%|${DESTINATION_DIR}|' \
d74 1
a74 1
post-install: cook-install-plist
d116 11
@

