aboutsummaryrefslogtreecommitdiff
path: root/misc/proxyper/Makefile
blob: 7c241790fc652396d643cfa3ab637de0a0d32172 (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
# New ports collection makefile for:	distributed.net-v2personalproxy
# Date created:         31 Oct 1999
# Whom:                 globalpanic@gmx.net
#
# $FreeBSD$
#

PORTNAME=	proxyper
PORTVERSION=	343
PORTREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.distributed.net/pub/dcti/proxyper/ \
		http://http.distributed.net/pub/dcti/proxyper/

MAINTAINER=	tdb@FreeBSD.org
COMMENT=	The official distributed.net v2 personal proxy

ONLY_FOR_ARCHS=	i386

USE_RC_SUBR=	${PORTNAME}
NO_BUILD=	yes

BINDIR=		${PREFIX}/distributed.net/proxy
SUB_LIST+=	BINDIR=${BINDIR}

PROXYUSER=	nobody
PROXYGROUP=	daemon

SHAREOWN=	${PROXYUSER}
SHAREGRP=	${PROXYGROUP}
SHAREMODE=	644

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700055
DISTNAME=	proxyper${PORTVERSION}-freebsd7-x86
.else
DISTNAME=	proxyper${PORTVERSION}-freebsd4-x86
.endif

do-install:
	if [ ! -d ${BINDIR} ]; then \
		${MKDIR} ${BINDIR}; \
	fi
	${CHOWN} ${PROXYUSER}:${PROXYGROUP} ${BINDIR}
	${CHMOD} 755 ${BINDIR}

	${INSTALL_PROGRAM} ${WRKSRC}/proxyper ${BINDIR}

	${INSTALL_MAN} ${WRKSRC}/ChangeLog.txt ${BINDIR}
	${INSTALL_MAN} ${WRKSRC}/manual.html ${BINDIR}

	${INSTALL_DATA} ${WRKSRC}/proxyper.ini ${BINDIR}/proxyper.ini.sample
.if !exists(${BINDIR}/proxyper.ini)
	${INSTALL_DATA} ${WRKSRC}/proxyper.ini ${BINDIR}/proxyper.ini
.endif

.include <bsd.port.post.mk>