1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/misc/dnetc/Makefile

93 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dnetc
# Date created: 26 Dec 1999
# Whom: dbaker
#
# $FreeBSD$
#
2000-04-14 08:49:30 +00:00
PORTNAME= dnetc
2000-07-13 19:38:35 +00:00
PORTVERSION= 2.8010.463
CATEGORIES= misc
2000-07-04 19:44:49 +00:00
MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/v2.8010/ \
http://http.distributed.net/pub/dcti/v2.8010/
2000-04-14 08:49:30 +00:00
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
2000-07-13 19:38:35 +00:00
DISTFILES= dnetc463-freebsd-x86-elf.tar.gz
2000-06-23 03:03:19 +00:00
.elif ${ARCH} == "alpha"
2000-07-04 19:44:49 +00:00
BROKEN= "Not immediately available. Please try again tomorrow."
.endif
ONLY_FOR_ARCHS= i386
.if ${OSVERSION} < 220000
BROKEN= "dnetc is not available for your version of FreeBSD. Please upgrade."
.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 first."
.endif
MAINTAINER= dbaker@distributed.net
NO_WRKSUBDIR= yes
NO_BUILD= yes
BINDIR= ${PREFIX}/distributed.net
LIBDIR= ${PREFIX}/etc/rc.d/
CLIENTUID= nobody
CLIENTGID= daemon
SBINMODE= 700
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
${INSTALL} -c -m ${SBINMODE} ${WRKSRC}/dnetc.sh.pathnames ${LIBDIR}/dnetc.sh
${INSTALL_DATA} ${FILESDIR}/INFO ${BINDIR}
${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
.include <bsd.port.post.mk>