1999-12-26 22:52:33 +00:00
|
|
|
# New ports collection makefile for: dnetc
|
|
|
|
# Version required: 450
|
|
|
|
# Date created: 26 Dec 1999
|
|
|
|
# Whom: dbaker
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= dnetc
|
2000-01-18 20:14:24 +00:00
|
|
|
PKGNAME= dnetc-2.8004.455
|
1999-12-26 22:52:33 +00:00
|
|
|
CATEGORIES= misc
|
2000-01-11 01:44:09 +00:00
|
|
|
MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8005/ \
|
|
|
|
http://http.distributed.net/pub/dcti/v2.8005/
|
2000-01-18 20:14:24 +00:00
|
|
|
DISTFILES= dnetc455-freebsd-x86-elf.tar.gz
|
1999-12-26 22:52:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 220000
|
|
|
|
BROKEN= "No version is built for your system."
|
|
|
|
.elif ${OSVERSION} < 300000
|
|
|
|
BROKEN= "No version is currently available for your system. Please try again later."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(/usr/local/distributed.net/rc5des)
|
|
|
|
BROKEN= "RC5DES/DNETC conflict: Please deinstall all rc5des ports/packages"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAINTAINER= dbaker@distributed.net
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
BINDIR= ${PREFIX}/distributed.net
|
|
|
|
LIBDIR= ${PREFIX}/etc/rc.d/
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
|
|
|
|
CLIENTUID= nobody
|
|
|
|
CLIENTGID= daemon
|
|
|
|
|
|
|
|
SBINMODE= 7700
|
|
|
|
BINMODE= 700
|
|
|
|
|
|
|
|
MAN1= dnetc.1
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
if [ ! -f ${PREFIX}/dnetc.ini ]; then \
|
|
|
|
${INSTALL} -c -m 644 ${FILESDIR}/dnetc.ini ${WRKSRC}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
if [ ! -d ${BINDIR} ]; then \
|
|
|
|
${MKDIR} ${BINDIR}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
${INSTALL} -c -m ${SBINMODE} -o ${CLIENTUID} -g ${CLIENTGID} ${WRKSRC}/dnetc ${BINDIR}
|
|
|
|
|
|
|
|
${SED} s#CHANGETHIS#${BINDIR}# < ${FILESDIR}/dnetc.sh > ${WRKSRC}/dnetc.sh.pathnames
|
2000-01-07 18:54:45 +00:00
|
|
|
${INSTALL} -c -m ${SBINMODE} ${WRKSRC}/dnetc.sh.pathnames ${LIBDIR}/dnetc.sh
|
1999-12-26 22:52:33 +00:00
|
|
|
|
2000-01-04 22:05:09 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/INFO ${BINDIR}
|
1999-12-26 22:52:33 +00:00
|
|
|
|
|
|
|
${CHOWN} ${CLIENTUID}:${CLIENTGID} ${BINDIR}
|
|
|
|
${CHMOD} 775 ${BINDIR}
|
|
|
|
|
|
|
|
if [ ! -f ${BINDIR}/dnetc.sh ]; then \
|
|
|
|
${LN} -s ${LIBDIR}/dnetc.sh ${BINDIR}/dnetc.sh; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.if !exists(${BINDIR}/dnetc.ini)
|
|
|
|
@echo ""
|
|
|
|
@echo ""
|
|
|
|
@echo ""
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo "! REMEMBER REMEMBER REMEMBER REMEMBER REMEMBER REMEMBER REMEMBER REMEMBER !"
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo " Don't forget to run '${BINDIR}/dnetc -config' "
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@echo ""
|
|
|
|
@echo ""
|
|
|
|
@echo ""
|
|
|
|
${INSTALL} -c -m 644 -o ${CLIENTUID} -g ${CLIENTGID} ${WRKDIR}/dnetc.ini ${BINDIR}
|
|
|
|
.endif
|
|
|
|
|
2000-01-07 16:40:17 +00:00
|
|
|
.include <bsd.port.post.mk>
|