freebsd-ports/ports-mgmt/tinderbox/Makefile
Pav Lucistnik 0d0d56457b Populate a new ports-mgmt category. List of moved ports:
devel/portcheckout -> ports-mgmt/portcheckout
  devel/portlint -> ports-mgmt/portlint
  devel/portmk -> ports-mgmt/portmk
  devel/porttools -> ports-mgmt/porttools
  misc/instant-tinderbox -> ports-mgmt/instant-tinderbox
  misc/porteasy -> ports-mgmt/porteasy
  misc/portell -> ports-mgmt/portell
  misc/portless -> ports-mgmt/portless
  misc/tinderbox -> ports-mgmt/tinderbox
  security/jailaudit -> ports-mgmt/jailaudit
  security/portaudit -> ports-mgmt/portaudit
  security/portaudit-db -> ports-mgmt/portaudit-db
  security/vulnerability-test-port -> ports-mgmt/vulnerability-test-port
  sysutils/barry -> ports-mgmt/barry
  sysutils/bpm -> ports-mgmt/bpm
  sysutils/kports -> ports-mgmt/kports
  sysutils/managepkg -> ports-mgmt/managepkg
  sysutils/newportsversioncheck -> ports-mgmt/newportsversioncheck
  sysutils/pib -> ports-mgmt/pib
  sysutils/pkgfe -> ports-mgmt/pkgfe
  sysutils/pkg-orphan -> ports-mgmt/pkg-orphan
  sysutils/pkg_cutleaves -> ports-mgmt/pkg_cutleaves
  sysutils/pkg_install -> ports-mgmt/pkg_install
  sysutils/pkg_install-devel -> ports-mgmt/pkg_install-devel
  sysutils/pkg_remove -> ports-mgmt/pkg_remove
  sysutils/pkg_rmleaves -> ports-mgmt/pkg_rmleaves
  sysutils/pkg_trackinst -> ports-mgmt/pkg_trackinst
  sysutils/pkg_tree -> ports-mgmt/pkg_tree
  sysutils/portbrowser -> ports-mgmt/portbrowser
  sysutils/portconf -> ports-mgmt/portconf
  sysutils/portdowngrade -> ports-mgmt/portdowngrade
  sysutils/portcheck -> ports-mgmt/portcheck
  sysutils/portmanager -> ports-mgmt/portmanager
  sysutils/portmaster -> ports-mgmt/portmaster
  sysutils/portscout -> ports-mgmt/portscout
  sysutils/portsearch -> ports-mgmt/portsearch
  sysutils/portsman -> ports-mgmt/portsman
  sysutils/portsnap -> ports-mgmt/portsnap
  sysutils/portsopt -> ports-mgmt/portsopt
  sysutils/portupgrade -> ports-mgmt/portupgrade
  sysutils/portupgrade-devel -> ports-mgmt/portupgrade-devel
  sysutils/port-authoring-tools -> ports-mgmt/port-authoring-tools
  sysutils/port-maintenance-tools -> ports-mgmt/port-maintenance-tools
  sysutils/psearch -> ports-mgmt/psearch
  sysutils/p5-FreeBSD-Portindex -> ports-mgmt/p5-FreeBSD-Portindex
  sysutils/qtpkg -> ports-mgmt/qtpkg
  textproc/p5-FreeBSD-Ports -> ports-mgmt/p5-FreeBSD-Ports

Repocopies by:	marcus
2007-02-05 01:08:46 +00:00

139 lines
3.8 KiB
Makefile

# Ports collection makefile for: misc/tinderbox
# Whom: Edwin Groothuis <edwin@mavetju.org>
# Date created: 31 december 2005
#
# $FreeBSD$
PORTNAME= tinderbox
PORTVERSION= 2.3.4
PORTREVISION= 3
CATEGORIES= ports-mgmt
MASTER_SITES= http://tinderbox.marcuscom.com/
MAINTAINER= itetcu@FreeBSD.org
COMMENT= Port build tinderbox system
OPTIONS= PGSQL "With pgsql" Off \
MYSQL "With mysql" On \
CSUP "Use csup for updates" On \
CVSUP "Use cvsup for updates" Off \
WEB "Install web interface" Off \
WEB_EXP "Install the new web interface" On \
APACHE "Use Apache for web interface" On \
LIGHTTPD "Use LightHTTPD for web interface" Off
NO_BUILD= yes
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN1= tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
tc-configJail.1 tc-configTinderd.1 tc-init.1
.include <bsd.port.pre.mk>
.if !defined(WITH_PGSQL) && defined(WITHOUT_MYSQL)
IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
.endif
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
WANT_PHP_WEB= yes
USE_PHP= session
MASTER_SITES+= http://miwibox.org/:FAVICON
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
favicon.ico:FAVICON
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.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
.if defined(WITH_PGSQL)
USE_PGSQL= yes
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
USE_PHP+= pgsql
.endif
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
.endif
.if !defined(WITHOUT_MYSQL)
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
USE_PHP+= mysql
.endif
USE_MYSQL= yes
IGNORE_WITH_MYSQL= 323 40
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER:S/323//}
.endif
.if ! (${OSVERSION} > 700014 || ( ${OSVERSION} >= 601101 && ${OSVERSION} < 700000 ))
.if !defined(WITHOUT_CSUP)
RUN_DEPENDS+= csup:${PORTSDIR}/net/csup
.endif
.endif
.if defined(WITH_CVSUP)
RUN_DEPENDS+= cvsup:${PORTSDIR}/net/cvsup-without-gui
.endif
.if !defined(WITHOUT_APACHE) && (defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP))
USE_APACHE= 1.3+
.elif defined(WITH_LIGHTTPD) && (defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP))
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
.endif
.if defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
.include "${PORTSDIR}/Mk/bsd.php.mk"
.endif
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
post-patch:
.if defined(WITH_MYSQL)
@${REINPLACE_CMD} \
-e 's,DB_MAN_PREREQS=.*,DB_MAN_PREREQS="databases/p5-DBD-mysql${MYSQL_VER} databases/mysql${MYSQL_VER}-client",' \
${WRKSRC}/lib/setup-mysql.sh
@${RM} ${WRKSRC}/lib/setup-mysql.sh.bak
.endif
.if ! (${OSVERSION} > 700014 || ( ${OSVERSION} >= 601101 && ${OSVERSION} < 700000 ))
${REINPLACE_CMD} -E -e 's!/usr/bin/csup!${PREFIX}/bin/csup!' \
${WRKSRC}/create
${REINPLACE_CMD} -E -e 's!/usr/bin/csup!${PREFIX}/bin/csup!' \
${WRKSRC}/tc
@${RM} ${WRKSRC}/create.bak
@${RM} ${WRKSRC}/tc.bak
.endif
pre-install:
.if !defined(WITH_WEB)
${RM} -R ${WRKSRC}/www
.else
${CP} ${DISTDIR}/favicon.ico ${WRKSRC}/www
.endif
.if defined(WITHOUT_WEB_EXP)
${RM} -R ${WRKSRC}/www-exp
.else
${CP} ${DISTDIR}/favicon.ico ${WRKSRC}/www-exp
.endif
do-install:
${MKDIR} ${PREFIX}/tinderbox/scripts
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
post-install:
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>