2005-12-26 11:40:21 +01:00
|
|
|
# Ports collection makefile for: misc/tinderbox
|
|
|
|
# Whom: Edwin Groothuis <edwin@mavetju.org>
|
|
|
|
# Date created: 31 december 2005
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tinderbox
|
2006-11-30 08:02:40 +01:00
|
|
|
PORTVERSION= 2.3.4
|
2006-12-01 14:57:47 +01:00
|
|
|
PORTREVISION= 1
|
2005-12-26 11:40:21 +01:00
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= http://tinderbox.marcuscom.com/
|
|
|
|
|
2006-06-20 12:44:45 +02:00
|
|
|
MAINTAINER= itetcu@FreeBSD.org
|
2005-12-26 11:40:21 +01:00
|
|
|
COMMENT= Port build tinderbox system
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
OPTIONS= PGSQL "With pgsql" Off \
|
|
|
|
MYSQL "With mysql" On \
|
|
|
|
CSUP "Use csup for updates" On \
|
2006-11-10 21:27:25 +01:00
|
|
|
CVSUP "Use cvsup for updates" Off \
|
2006-12-01 14:57:47 +01:00
|
|
|
WEB "Install web interface" Off \
|
|
|
|
WEB_EXP "Install the new web interface" On \
|
2006-11-10 21:27:25 +01:00
|
|
|
APACHE "Use Apache for web interface" On \
|
|
|
|
LIGHTTPD "Use LightHTTPD for web interface" Off
|
2005-12-26 11:40:21 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
MAN1= tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
|
|
|
|
tc-configJail.1 tc-configTinderd.1 tc-init.1
|
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-02-11 02:26:22 +01:00
|
|
|
.if defined(WITHOUT_PGSQL) && defined(WITHOUT_MYSQL)
|
2006-06-12 00:24:10 +02:00
|
|
|
IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
|
2006-01-18 11:29:26 +01:00
|
|
|
.endif
|
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
2006-11-10 21:27:25 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2006-01-20 22:55:30 +01:00
|
|
|
USE_PHP= session
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WEB)
|
|
|
|
PLIST_SUB+= WEB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WEB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_WEB_EXP)
|
|
|
|
PLIST_SUB+= WEB_EXP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WEB_EXP="@comment "
|
|
|
|
.endif
|
2006-01-20 22:55:30 +01:00
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
2006-12-01 14:57:47 +01:00
|
|
|
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
|
2006-01-03 01:00:47 +01:00
|
|
|
USE_PHP+= pgsql
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2006-02-23 09:28:48 +01:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
2005-12-26 11:40:21 +01:00
|
|
|
.endif
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2006-12-01 14:57:47 +01:00
|
|
|
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
|
2006-01-03 01:00:47 +01:00
|
|
|
USE_PHP+= mysql
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2005-12-26 11:40:21 +01:00
|
|
|
USE_MYSQL= yes
|
2006-10-14 23:02:49 +02:00
|
|
|
IGNORE_WITH_MYSQL= 323 40
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER:S/323//}
|
2005-12-26 11:40:21 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-04 14:25:25 +02:00
|
|
|
.if ! (${OSVERSION} > 700014 || ( ${OSVERSION} >= 601101 && ${OSVERSION} < 700000 ))
|
2006-06-20 12:44:45 +02:00
|
|
|
.if !defined(WITHOUT_CSUP)
|
2006-06-12 00:24:10 +02:00
|
|
|
RUN_DEPENDS+= csup:${PORTSDIR}/net/csup
|
|
|
|
.endif
|
2006-06-20 12:44:45 +02:00
|
|
|
.endif
|
2006-06-12 00:24:10 +02:00
|
|
|
|
|
|
|
.if defined(WITH_CVSUP)
|
|
|
|
RUN_DEPENDS+= cvsup:${PORTSDIR}/net/cvsup-without-gui
|
|
|
|
.endif
|
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
.if !defined(WITHOUT_APACHE) && (defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP))
|
2006-11-10 21:27:25 +01:00
|
|
|
USE_APACHE= 1.3+
|
2006-12-01 14:57:47 +01:00
|
|
|
.elif defined(WITH_LIGHTTPD) && (defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP))
|
2006-11-10 21:27:25 +01:00
|
|
|
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
|
|
|
|
.endif
|
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
|
2006-01-20 22:55:30 +01:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.php.mk"
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2006-01-20 22:55:30 +01:00
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
pre-everything::
|
|
|
|
.if (!defined(WITHOUT_APACHE) || defined(WITH_LIGHTTPD)) && !(defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP))
|
|
|
|
@${ECHO_CMD} "It doesn't make sense to depend on Apache or LightHTTPD if not using either web interface."
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
2005-12-26 22:43:31 +01:00
|
|
|
|
2006-05-12 15:48:12 +02:00
|
|
|
post-patch:
|
|
|
|
.if defined(WITH_MYSQL)
|
2006-06-12 00:24:10 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2006-05-12 15:48:12 +02:00
|
|
|
-e 's,DB_MAN_PREREQS=.*,DB_MAN_PREREQS="databases/p5-DBD-mysql${MYSQL_VER} databases/mysql${MYSQL_VER}-client",' \
|
|
|
|
${WRKSRC}/lib/setup-mysql.sh
|
2006-06-12 00:24:10 +02:00
|
|
|
@${RM} ${WRKSRC}/lib/setup-mysql.sh.bak
|
2006-05-12 15:48:12 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/tinderbox/scripts
|
|
|
|
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
|
2006-12-01 14:57:47 +01:00
|
|
|
.if !defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
|
|
|
|
@${ECHO_CMD} "Removing web interface componenets ..."
|
|
|
|
@${RM} -R ${PREFIX}/tinderbox/scripts/www
|
|
|
|
@${ECHO_CMD} "Done."
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_WEB_EXP)
|
|
|
|
@${ECHO_CMD} "Removing web interface componenets ..."
|
|
|
|
@${RM} -R ${PREFIX}/tinderbox/scripts/www-exp
|
|
|
|
@${ECHO_CMD} "Done."
|
|
|
|
.endif
|
2005-12-26 11:40:21 +01:00
|
|
|
|
|
|
|
post-install:
|
2006-06-12 00:24:10 +02:00
|
|
|
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-12-26 11:40:21 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|