Add WITH_CONTRIB knob to install contributed scripts.
Submitted by: Alexey Neyman <alexey.neyman (at) auriga.ru>
This commit is contained in:
parent
775f41988a
commit
c928f4bc0f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77394
6 changed files with 123 additions and 0 deletions
|
@ -35,6 +35,12 @@ RUN_DEPENDS+= ${PERL_SITEDIR}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
|
|||
RUN_DEPENDS+= ${PERL_SITEDIR}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
PLIST_SUB+= CONTRIB=""
|
||||
.else
|
||||
PLIST_SUB+= CONTRIB="@comment "
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
NO_BUILD= yes
|
||||
|
@ -62,6 +68,10 @@ pre-everything::
|
|||
@${ECHO_MSG} " export/import feature to move bugs to or from"
|
||||
@${ECHO_MSG} " other bugzilla installations"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} " WITH_CONTRIB to install various user-contributed scripts,"
|
||||
@${ECHO_MSG} " e.g. to import bugs from other databases, to
|
||||
@${ECHO_MSG} " allow follow-ups/submissions by e-mail etc."
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
post-patch:
|
||||
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
|
||||
|
@ -93,6 +103,19 @@ do-install:
|
|||
${MKDIR} ${DOCSDIR}
|
||||
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
|
||||
.endif
|
||||
.if defined(WITH_CONTRIB)
|
||||
${MKDIR} ${BUGZILLADIR}/contrib ${BUGZILLADIR}/contrib/cmdline
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_SCRIPT} BugzillaEmail.pm bug_email.pl \
|
||||
bugzilla_email_append.pl cvs-update.sh gnats2bz.pl jb2bz.py \
|
||||
mysqld-watcher.pl yp_nomail.sh ${BUGZILLADIR}/contrib
|
||||
cd ${WRKSRC}/contrib/cmdline; ${INSTALL_SCRIPT} buglist bugs \
|
||||
query.conf ${BUGZILLADIR}/contrib/cmdline
|
||||
.if !defined(NOPORTSDOCS)
|
||||
${MKDIR} ${DOCSDIR}/contrib
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_DATA} README README.Mailif \
|
||||
bugmail_help.html bugzilla.procmailrc ${DOCSDIR}/contrib
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
|
||||
|
|
|
@ -53,6 +53,21 @@
|
|||
%%PORTDOCS%%share/doc/bugzilla/images/warning.gif
|
||||
%%PORTDOCS%%share/doc/bugzilla/rel_notes.txt
|
||||
%%PORTDOCS%%share/doc/bugzilla/txt/Bugzilla-Guide.txt
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README.Mailif
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugmail_help.html
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugzilla.procmailrc
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/BugzillaEmail.pm
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bug_email.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bugzilla_email_append.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cvs-update.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/gnats2bz.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/jb2bz.py
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/mysqld-watcher.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/yp_nomail.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/buglist
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/bugs
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/query.conf
|
||||
www/data.default/bugzilla/buglist.cgi
|
||||
www/data.default/bugzilla/1x1.gif
|
||||
www/data.default/bugzilla/ant.jpg
|
||||
|
@ -204,6 +219,8 @@ www/data.default/bugzilla/template/en/default/search/search.html.tmpl
|
|||
www/data.default/bugzilla/template/en/default/sidebar.xul.tmpl
|
||||
www/data.default/bugzilla/css/buglist.css
|
||||
www/data.default/bugzilla/css/panel.css
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib/cmdline
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/email
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/password
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/prefs
|
||||
|
@ -227,6 +244,7 @@ www/data.default/bugzilla/css/panel.css
|
|||
@dirrm www/data.default/bugzilla
|
||||
@unexec rmdir %D/www/data.default || true
|
||||
@unexec rmdir %D/www || true
|
||||
%%PORTDOCS%%%%CONTRIB%%@dirrm share/doc/bugzilla/contrib
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/txt
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/images
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/html
|
||||
|
|
|
@ -35,6 +35,12 @@ RUN_DEPENDS+= ${PERL_SITEDIR}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
|
|||
RUN_DEPENDS+= ${PERL_SITEDIR}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
PLIST_SUB+= CONTRIB=""
|
||||
.else
|
||||
PLIST_SUB+= CONTRIB="@comment "
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
NO_BUILD= yes
|
||||
|
@ -62,6 +68,10 @@ pre-everything::
|
|||
@${ECHO_MSG} " export/import feature to move bugs to or from"
|
||||
@${ECHO_MSG} " other bugzilla installations"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} " WITH_CONTRIB to install various user-contributed scripts,"
|
||||
@${ECHO_MSG} " e.g. to import bugs from other databases, to
|
||||
@${ECHO_MSG} " allow follow-ups/submissions by e-mail etc."
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
post-patch:
|
||||
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
|
||||
|
@ -93,6 +103,19 @@ do-install:
|
|||
${MKDIR} ${DOCSDIR}
|
||||
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
|
||||
.endif
|
||||
.if defined(WITH_CONTRIB)
|
||||
${MKDIR} ${BUGZILLADIR}/contrib ${BUGZILLADIR}/contrib/cmdline
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_SCRIPT} BugzillaEmail.pm bug_email.pl \
|
||||
bugzilla_email_append.pl cvs-update.sh gnats2bz.pl jb2bz.py \
|
||||
mysqld-watcher.pl yp_nomail.sh ${BUGZILLADIR}/contrib
|
||||
cd ${WRKSRC}/contrib/cmdline; ${INSTALL_SCRIPT} buglist bugs \
|
||||
query.conf ${BUGZILLADIR}/contrib/cmdline
|
||||
.if !defined(NOPORTSDOCS)
|
||||
${MKDIR} ${DOCSDIR}/contrib
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_DATA} README README.Mailif \
|
||||
bugmail_help.html bugzilla.procmailrc ${DOCSDIR}/contrib
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
|
||||
|
|
|
@ -53,6 +53,21 @@
|
|||
%%PORTDOCS%%share/doc/bugzilla/images/warning.gif
|
||||
%%PORTDOCS%%share/doc/bugzilla/rel_notes.txt
|
||||
%%PORTDOCS%%share/doc/bugzilla/txt/Bugzilla-Guide.txt
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README.Mailif
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugmail_help.html
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugzilla.procmailrc
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/BugzillaEmail.pm
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bug_email.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bugzilla_email_append.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cvs-update.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/gnats2bz.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/jb2bz.py
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/mysqld-watcher.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/yp_nomail.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/buglist
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/bugs
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/query.conf
|
||||
www/data.default/bugzilla/buglist.cgi
|
||||
www/data.default/bugzilla/1x1.gif
|
||||
www/data.default/bugzilla/ant.jpg
|
||||
|
@ -204,6 +219,8 @@ www/data.default/bugzilla/template/en/default/search/search.html.tmpl
|
|||
www/data.default/bugzilla/template/en/default/sidebar.xul.tmpl
|
||||
www/data.default/bugzilla/css/buglist.css
|
||||
www/data.default/bugzilla/css/panel.css
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib/cmdline
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/email
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/password
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/prefs
|
||||
|
@ -227,6 +244,7 @@ www/data.default/bugzilla/css/panel.css
|
|||
@dirrm www/data.default/bugzilla
|
||||
@unexec rmdir %D/www/data.default || true
|
||||
@unexec rmdir %D/www || true
|
||||
%%PORTDOCS%%%%CONTRIB%%@dirrm share/doc/bugzilla/contrib
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/txt
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/images
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/html
|
||||
|
|
|
@ -35,6 +35,12 @@ RUN_DEPENDS+= ${PERL_SITEDIR}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools
|
|||
RUN_DEPENDS+= ${PERL_SITEDIR}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
PLIST_SUB+= CONTRIB=""
|
||||
.else
|
||||
PLIST_SUB+= CONTRIB="@comment "
|
||||
.endif
|
||||
|
||||
USE_REINPLACE= yes
|
||||
|
||||
NO_BUILD= yes
|
||||
|
@ -62,6 +68,10 @@ pre-everything::
|
|||
@${ECHO_MSG} " export/import feature to move bugs to or from"
|
||||
@${ECHO_MSG} " other bugzilla installations"
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} " WITH_CONTRIB to install various user-contributed scripts,"
|
||||
@${ECHO_MSG} " e.g. to import bugs from other databases, to
|
||||
@${ECHO_MSG} " allow follow-ups/submissions by e-mail etc."
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
post-patch:
|
||||
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
|
||||
|
@ -93,6 +103,19 @@ do-install:
|
|||
${MKDIR} ${DOCSDIR}
|
||||
${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} --unlink -C ${DOCSDIR} -xf -
|
||||
.endif
|
||||
.if defined(WITH_CONTRIB)
|
||||
${MKDIR} ${BUGZILLADIR}/contrib ${BUGZILLADIR}/contrib/cmdline
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_SCRIPT} BugzillaEmail.pm bug_email.pl \
|
||||
bugzilla_email_append.pl cvs-update.sh gnats2bz.pl jb2bz.py \
|
||||
mysqld-watcher.pl yp_nomail.sh ${BUGZILLADIR}/contrib
|
||||
cd ${WRKSRC}/contrib/cmdline; ${INSTALL_SCRIPT} buglist bugs \
|
||||
query.conf ${BUGZILLADIR}/contrib/cmdline
|
||||
.if !defined(NOPORTSDOCS)
|
||||
${MKDIR} ${DOCSDIR}/contrib
|
||||
cd ${WRKSRC}/contrib; ${INSTALL_DATA} README README.Mailif \
|
||||
bugmail_help.html bugzilla.procmailrc ${DOCSDIR}/contrib
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
|
||||
|
|
|
@ -53,6 +53,21 @@
|
|||
%%PORTDOCS%%share/doc/bugzilla/images/warning.gif
|
||||
%%PORTDOCS%%share/doc/bugzilla/rel_notes.txt
|
||||
%%PORTDOCS%%share/doc/bugzilla/txt/Bugzilla-Guide.txt
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/README.Mailif
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugmail_help.html
|
||||
%%PORTDOCS%%%%CONTRIB%%share/doc/bugzilla/contrib/bugzilla.procmailrc
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/BugzillaEmail.pm
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bug_email.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/bugzilla_email_append.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cvs-update.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/gnats2bz.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/jb2bz.py
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/mysqld-watcher.pl
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/yp_nomail.sh
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/buglist
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/bugs
|
||||
%%CONTRIB%%www/data.default/bugzilla/contrib/cmdline/query.conf
|
||||
www/data.default/bugzilla/buglist.cgi
|
||||
www/data.default/bugzilla/1x1.gif
|
||||
www/data.default/bugzilla/ant.jpg
|
||||
|
@ -204,6 +219,8 @@ www/data.default/bugzilla/template/en/default/search/search.html.tmpl
|
|||
www/data.default/bugzilla/template/en/default/sidebar.xul.tmpl
|
||||
www/data.default/bugzilla/css/buglist.css
|
||||
www/data.default/bugzilla/css/panel.css
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib/cmdline
|
||||
%%CONTRIB%%@dirrm www/data.default/bugzilla/contrib
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/email
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/password
|
||||
@dirrm www/data.default/bugzilla/template/en/default/account/prefs
|
||||
|
@ -227,6 +244,7 @@ www/data.default/bugzilla/css/panel.css
|
|||
@dirrm www/data.default/bugzilla
|
||||
@unexec rmdir %D/www/data.default || true
|
||||
@unexec rmdir %D/www || true
|
||||
%%PORTDOCS%%%%CONTRIB%%@dirrm share/doc/bugzilla/contrib
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/txt
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/images
|
||||
%%PORTDOCS%%@dirrm share/doc/bugzilla/html
|
||||
|
|
Loading…
Reference in a new issue