1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/misc/dnetc/Makefile
Erwin Lansing 74cb9eff53 Deprecate md5 in favour of sha256 checksums. md5 checksums will no longer
be generated or checked, and will be silently ignored for now.  Also,
generalize the MD5_FILE macro to DISTINFO_FILO.

PR:		149657
Submitted by:	rene
Approved by:	portmgr
Tested on:	pointyhat i386 7-exp
2010-10-28 21:00:21 +00:00

126 lines
3.5 KiB
Makefile

# New ports collection makefile for: dnetc
# Date created: 26 Dec 1999
# Whom: dbaker
#
# $FreeBSD$
#
PORTNAME= dnetc
PORTVERSION= ${VERSION}
PORTREVISION= $(REVISION}
PORTEPOCH= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/%SUBDIR%/ \
http://http.distributed.net/pub/dcti/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION:S/^/v/:R}
# This is architecture dependent
DISTNAME= dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/}-elf
MAINTAINER= tdb@FreeBSD.org
COMMENT= Distributed.net distributed computing project client
# These are architecture dependent
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/}-elf
DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH}
ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_RC_SUBR= dnetc.sh
NO_BUILD= yes
BINDIR= ${PREFIX}/distributed.net
CLIENTUSER= dnetc
CLIENTGROUP= ${CLIENTUSER}
CLIENTUID= 105
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN1= dnetc.1
SUB_FILES= pkg-install pkg-deinstall pkg-message
SUB_LIST= BINDIR="${BINDIR}" \
CLIENTUSER="${CLIENTUSER}" \
CLIENTGROUP="${CLIENTGROUP}" \
CLIENTUID="${CLIENTUID}"
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
REVISION= 1
VERSION= 2.9103.509
.if ${OSVERSION} >= 800107
REVISION= 0
VERSION= 2.9107.516
DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}
.elif ${OSVERSION} >= 700055
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}
.else
DISTNAME= dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.elif ${ARCH} == amd64
REVISION= 0
.if ${OSVERSION} >= 800107
VERSION= 2.9107.515
DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}
.elif ${OSVERSION} >= 700055
VERSION= 2.9106.513b
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E:S/b$//}-freebsd7-${ARCH:S/i386/x86/}
.else
VERSION= 2.9106.513
DISTNAME= dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.elif ${ARCH} == sparc64
REVISION= 1
VERSION= 2.9103.509
.if ${OSVERSION} >= 700055
DISTNAME= dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}-elf
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd7-${ARCH:S/i386/x86/}-elf
.else
DISTNAME= dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd6-${ARCH:S/i386/x86/}
.endif
.else
REVISION= 0
VERSION= 0
.endif
do-configure:
@if [ ! -f ${PREFIX}/dnetc.ini ]; then \
${INSTALL} -c -m 644 ${FILESDIR}/dnetc.ini ${WRKSRC}; \
fi
pre-install:
@${ECHO} "==> Creating custom user to run dnetc..."
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
if [ ! -d ${BINDIR} ]; then \
${MKDIR} ${BINDIR}; \
fi
${CHOWN} ${CLIENTUSER}:${CLIENTGROUP} ${BINDIR}
${CHMOD} 775 ${BINDIR}
${INSTALL} -c -m 755 -o ${CLIENTUSER} -g ${CLIENTGROUP} ${WRKSRC}/dnetc ${BINDIR}
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
${INSTALL} -c -m 644 -o ${CLIENTUSER} -g ${CLIENTGROUP} ${WRKSRC}/dnetc.ini ${BINDIR}/dnetc.ini.sample
.if !exists(${BINDIR}/dnetc.ini)
${INSTALL} -c -m 644 -o ${CLIENTUSER} -g ${CLIENTGROUP} ${WRKSRC}/dnetc.ini ${BINDIR}/dnetc.ini
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>