2017-01-16 15:06:43 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2017/01/16 14:06:43 mef Exp $
|
2007-08-27 19:51:32 +02:00
|
|
|
|
2017-01-16 15:06:43 +01:00
|
|
|
DISTNAME= bugzilla-3.6.8
|
2007-08-27 19:51:32 +02:00
|
|
|
CATEGORIES= www devel
|
2017-01-16 15:06:43 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=webtools/archived/}
|
2007-08-27 19:51:32 +02:00
|
|
|
|
2009-07-17 19:04:56 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-08-27 19:51:32 +02:00
|
|
|
HOMEPAGE= http://www.bugzilla.org/
|
|
|
|
COMMENT= Web based bug tracking system
|
2017-01-16 15:06:43 +01:00
|
|
|
LICENSE= mpl-1.0
|
2007-08-27 19:51:32 +02:00
|
|
|
|
2014-05-31 14:22:42 +02:00
|
|
|
DEPENDS+= p5-CGI>=3.21:../../www/p5-CGI
|
2007-08-27 19:51:32 +02:00
|
|
|
DEPENDS+= p5-DBI>=1.41:../../databases/p5-DBI
|
2009-01-04 01:38:11 +01:00
|
|
|
DEPENDS+= p5-Template-Toolkit>=2.15:../../www/p5-Template-Toolkit
|
2007-08-27 19:51:32 +02:00
|
|
|
DEPENDS+= p5-TimeDate>=1.16:../../time/p5-TimeDate
|
2009-01-04 01:38:11 +01:00
|
|
|
DEPENDS+= p5-Email-Send>=2.00:../../mail/p5-Email-Send
|
2010-03-14 11:46:55 +01:00
|
|
|
DEPENDS+= p5-Email-MIME>=1.903:../../mail/p5-Email-MIME
|
2007-08-27 19:51:32 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax perl:run
|
2007-08-27 19:51:32 +02:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
|
|
|
BZ_WEB_GROUP?= ${APACHE_GROUP}
|
|
|
|
SENDMAIL?= /usr/sbin/sendmail
|
|
|
|
CVS?= /usr/bin/cvs
|
|
|
|
|
|
|
|
BUILD_DEFS+= SENDMAIL CVS APACHE_USER APACHE_GROUP
|
2009-01-04 01:38:11 +01:00
|
|
|
PERL5_REQD+= 5.8.1
|
2007-08-27 19:51:32 +02:00
|
|
|
|
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
|
|
|
PKG_GROUPS_VARS+= BZ_WEB_GROUP APACHE_GROUP
|
|
|
|
|
2016-07-09 15:21:05 +02:00
|
|
|
MESSAGE_SUBST+= BZDIR=${BZDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
2007-08-27 19:51:32 +02:00
|
|
|
|
|
|
|
BZDIR= ${PREFIX}/share/bugzilla
|
|
|
|
EGDIR= ${PREFIX}/share/examples/bugzilla
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/bugzilla
|
|
|
|
CONF_FILES= ${EGDIR}/bugzilla.conf ${PKG_SYSCONFDIR}/bugzilla.conf
|
|
|
|
CONF_FILES_PERMS= ${EGDIR}/localconfig ${BZDIR}/localconfig \
|
|
|
|
${APACHE_USER} ${SHAREGRP} 0400
|
|
|
|
PAX_DIRS= Bugzilla skins template
|
|
|
|
|
|
|
|
REPLACE_PERL+= *.pl *.cgi
|
|
|
|
|
|
|
|
SUBST_CLASSES+= conf
|
|
|
|
SUBST_STAGE.conf= pre-install
|
|
|
|
SUBST_MESSAGE.conf= Fixing configuration files.
|
|
|
|
SUBST_FILES.conf= bugzilla.conf localconfig Bugzilla/BugMail.pm
|
|
|
|
SUBST_SED.conf= -e "s|@BZ_WEB_GROUP@|${BZ_WEB_GROUP}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@BZDIR@|${BZDIR}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@CVS@|${CVS}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|@DBDRIVER@|${DBDRIVER}|g"
|
|
|
|
SUBST_SED.conf+= -e "s|/usr/lib/sendmail|${SENDMAIL}|g"
|
|
|
|
|
2016-07-09 15:21:05 +02:00
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} ${DOCDIR}/en ${EGDIR} ${BZDIR} ${BZDIR}/Bugzilla
|
|
|
|
INSTALLATION_DIRS+= ${BZDIR}/js ${BZDIR}/lib ${BZDIR}/template ${BZDIR}/skins
|
|
|
|
INSTALLATION_DIRS+= ${BZDIR}/docs ${BZDIR}/docs/en ${BZDIR}/docs/en/html
|
|
|
|
INSTALLATION_DIRS+= ${BZDIR}/images ${BZDIR}/docs/en/html/api
|
|
|
|
INSTALLATION_DIRS+= ${BZDIR}/docs/en/html/api/Bugzilla
|
2009-02-13 21:41:33 +01:00
|
|
|
|
2007-08-27 19:51:32 +02:00
|
|
|
post-extract:
|
|
|
|
${FIND} ${WRKSRC} -type d -name CVS | ${XARGS} ${RM} -rf
|
|
|
|
${FIND} ${WRKSRC} -type f -name ".cvsignore" | ${XARGS} ${RM} -f
|
|
|
|
${CP} ${FILESDIR}/bugzilla.conf ${WRKSRC}
|
|
|
|
${CP} ${FILESDIR}/localconfig ${WRKSRC}
|
|
|
|
|
|
|
|
do-install:
|
2008-03-03 18:45:33 +01:00
|
|
|
|
2009-01-04 01:38:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/en/txt/Bugzilla-Guide.txt ${DESTDIR}${DOCDIR}/en
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/en/rel_notes.txt ${DESTDIR}${DOCDIR}/en
|
2008-03-03 18:45:33 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${DESTDIR}${BZDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${DESTDIR}${BZDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${BZDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bugzilla.dtd ${DESTDIR}${BZDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Bugzilla.pm ${DESTDIR}${BZDIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bugzilla.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/localconfig ${DESTDIR}${EGDIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/*.png ${DESTDIR}${BZDIR}/images
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/js/*.js ${DESTDIR}${BZDIR}/js
|
2009-01-04 01:38:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/en/html/*.html ${DESTDIR}${BZDIR}/docs/en/html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/en/html/api/*.html ${DESTDIR}${BZDIR}/docs/en/html/api
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/en/html/api/Bugzilla/*.html ${DESTDIR}${BZDIR}/docs/en/html/api/Bugzilla
|
2007-08-27 19:51:32 +02:00
|
|
|
|
|
|
|
.for i in ${PAX_DIRS}
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/${i} && pax -rw . ${DESTDIR}${BZDIR}/${i}
|
2008-03-03 18:45:33 +01:00
|
|
|
${FIND} ${DESTDIR}${BZDIR}/${i} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
${FIND} ${DESTDIR}${BZDIR}/${i} -type d | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${BZDIR}/${i}
|
2007-08-27 19:51:32 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|