most recent changes, diff for bugzilla
Index: devel/bugzilla/Portfile
--- devel/bugzilla/Portfile (revision 36064)
+++ devel/bugzilla/Portfile (revision 36065)
@@ -55,17 +55,19 @@
patchfiles patch-checksetup.pl
post-patch {
- system "cd ${worksrcpath}"
- foreach item [exec find . -type f -name .cvsignore] {
+ foreach item [exec find ${worksrcpath} -type f -name .cvsignore] {
file delete -force ${item}
}
- foreach item [exec find . -type d -name CVS] {
+ foreach item [exec find ${worksrcpath} -type d -name CVS] {
file delete -force ${item}
}
- foreach item [glob *.cgi *.pl contrib/*.pl docs/*.pl] {
+ foreach item [glob ${worksrcpath}/*.cgi ${worksrcpath}/*.pl \
+ ${worksrcpath}/contrib/*.pl ${worksrcpath}/docs/*.pl] {
reinplace "s%^#!.*perl%#!${prefix}/bin/perl%" ${item}
}
- foreach item [glob *.pl contrib/*.pl Bugzilla/*.pm docs/html/*.html docs/txt/*.txt docs/xml/*.xml] {
+ foreach item [glob ${worksrcpath}/*.pl ${worksrcpath}/contrib/*.pl \
+ ${worksrcpath}/Bugzilla/*.pm ${worksrcpath}/docs/html/*.html \
+ ${worksrcpath}/docs/txt/*.txt ${worksrcpath}/docs/xml/*.xml] {
reinplace "s%/usr/lib/sendmail%/usr/sbin/sendmail%g" ${item}
}
}
@@ -109,12 +111,13 @@
set docPath "${prefix}/share/doc/${name}"
xinstall -d -m 0755 ${destroot}${docPath}
- system "cd ${worksrcpath}"
xinstall -m 0644 \
- README QUICKSTART UPGRADING UPGRADING-pre-2.8 \
+ ${worksrcpath}/README ${worksrcpath}/QUICKSTART \
+ ${worksrcpath}/UPGRADING \
+ ${worksrcpath}/UPGRADING-pre-2.8 \
${destroot}${docPath}/
ui_info "copying docs\n to ${destroot}${docPath}/guide"
- system "cp -R docs ${destroot}${docPath}/guide"
+ system "cp -R ${worksrcpath}/docs ${destroot}${docPath}/guide"
foreach item [exec find ${destroot}${docPath}/guide -type f] {
file attributes ${item} -permissions go+r
}