1729b094e7
devel/distcc 2.16 -> 2.18.3 http://distcc.samba.org/ftp/distcc/distcc-2.18.3.NEWS Consists mostly of bug fixes. Only one change in the way distcc works. You must specify a network on which connections are allowed, connections from all networks will still be admitted but connections outside the specified network will be logged and dropped. The 127.0.0.0/8 network is the default for the port. All existing users and all new users will need to update/add a distccd_flags variable in /etc/rc.conf, a template for which can be found in the rc.d script. Perhaps a new variable, which simply contained the trusted network address would be better, like distccd_network="192.168.10.2/24" PR: ports/75718 Submitted by: Dominic Marks <dom@helenmarks.co.uk>
90 lines
2.3 KiB
Makefile
90 lines
2.3 KiB
Makefile
# New ports collection makefile for: distcc
|
|
# Date created: 25 June 2002
|
|
# Whom: Frerich Raabe <frerich.raabe@gmx.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= distcc
|
|
PORTVERSION= 2.18.3
|
|
CATEGORIES= devel ipv6
|
|
MASTER_SITES= http://distcc.samba.org/ftp/distcc/
|
|
|
|
MAINTAINER= dom@helenmarks.co.uk
|
|
COMMENT= Distribute compilation of C(++) code acrosss machines on a network
|
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
|
|
|
USE_RC_SUBR= yes
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
WANT_GNOME= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
DISTCCD_PIDFILE=/var/run/distccd.pid
|
|
|
|
OPTIONS= GNOME "Build GUI monitor based on GNOME" Off \
|
|
GTK "Build GUI monitor based on GTK" Off \
|
|
IPV6 "Enable IPV6 (not available on 4.X)" Off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_GNOME)
|
|
USE_GNOME= libgnomeui
|
|
CONFIGURE_ARGS+= --with-gnome
|
|
PKGNAMESUFFIX= -gnome
|
|
PLIST_SUB+= WITH_GNOME=""
|
|
.elif defined(WITH_GTK)
|
|
USE_GNOME= gtk20
|
|
CONFIGURE_ARGS+= --with-gtk
|
|
PKGNAMESUFFIX= -gtk
|
|
PLIST_SUB+= WITH_GNOME=""
|
|
.else
|
|
PLIST_SUB+= WITH_GNOME="@comment "
|
|
.endif
|
|
|
|
.if ( ${OSVERSION} >= 500000 ) && defined(WITH_IPV6)
|
|
CONFIGURE_ARGS+= --enable-rfc2553
|
|
.endif
|
|
|
|
MAN1= distcc.1 distccd.1
|
|
DOC_FILES= AUTHORS INSTALL NEWS README \
|
|
doc/protocol-1.txt doc/status-1.txt \
|
|
doc/protocol-2.txt doc/reporting-bugs.txt
|
|
|
|
pre-install:
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%RC_SUBR%%|${RC_SUBR}|; \
|
|
s|%%DISTCCD_PIDFILE%%|${DISTCCD_PIDFILE}|' \
|
|
${FILESDIR}/distccd.sh.sample >${WRKDIR}/distccd.sh
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" \
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distcc ${PREFIX}/bin
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccmon-text ${PREFIX}/bin
|
|
.if defined(WITH_GNOME) || defined(WITH_GTK)
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccmon-gnome ${PREFIX}/bin
|
|
.endif
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccd ${PREFIX}/sbin
|
|
@${INSTALL_SCRIPT} -m 751 ${WRKDIR}/distccd.sh \
|
|
${PREFIX}/etc/rc.d/distccd.sh
|
|
|
|
post-install: install-doc install-man
|
|
@${TOUCH} ${DISTCCD_PIDFILE}
|
|
@${CHOWN} distcc:distcc ${DISTCCD_PIDFILE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
install-doc:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for FILE in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
install-man:
|
|
.for file in ${MAN1}
|
|
@${INSTALL_MAN} ${WRKSRC}/man/${file} ${MANPREFIX}/man/man1
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|