aboutsummaryrefslogtreecommitdiffstats
path: root/misc/dnetc/Makefile
blob: 05e4d9edc5b4b4f5578e623f3f441e129721263f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: dbaker
# $FreeBSD$

PORTNAME=   dnetc
PORTVERSION=    ${VERSION}
PORTREVISION=   ${REVISION}
PORTEPOCH=  1
CATEGORIES= misc
MASTER_SITES=   http://http.distributed.net/pub/dcti/%SUBDIR%/ \
        ftp://ftp.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 powerpc

USE_RC_SUBR=    dnetc
NO_BUILD=   yes

BINDIR=     ${PREFIX}/distributed.net

USERS=      dnetc
GROUPS=     dnetc

PKGMESSAGE= ${WRKDIR}/pkg-message

SUB_FILES=  pkg-message
SUB_LIST=   BINDIR="${BINDIR}"

.include <bsd.port.pre.mk>

.if ${ARCH} == i386
VERSION=    2.9110.519
REVISION=   1
DISTNAME=   dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}
WRKSRC=     ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH:S/i386/x86/}

.elif ${ARCH} == amd64
VERSION=    2.9110.519
REVISION=   1
DISTNAME=   dnetc${PORTVERSION:E}-freebsd8-${ARCH}
WRKSRC=     ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}

.elif ${ARCH} == sparc64
VERSION=    2.9109.518
REVISION=   1
DISTNAME=   dnetc${PORTVERSION:E}-freebsd8-${ARCH}
WRKSRC=     ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}

.elif ${ARCH} == powerpc
VERSION=    2.9109.518
REVISION=   1
DISTNAME=   dnetc${PORTVERSION:E}-freebsd8-${ARCH}
WRKSRC=     ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}
.endif

do-install:
    ${MKDIR} ${STAGEDIR}${BINDIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${STAGEDIR}${BINDIR}
    ${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${STAGEDIR}${PREFIX}/man/man1
    ${INSTALL} -c -m 644 ${FILESDIR}/dnetc.ini ${STAGEDIR}${BINDIR}/dnetc.ini.sample

.include <bsd.port.post.mk>