aboutsummaryrefslogtreecommitdiff
path: root/sysutils/backuppc
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/backuppc')
-rw-r--r--sysutils/backuppc/Makefile6
-rw-r--r--sysutils/backuppc/files/patch-lib__BackupPC__CGI__View.pm11
-rw-r--r--sysutils/backuppc/pkg-plist5
3 files changed, 15 insertions, 7 deletions
diff --git a/sysutils/backuppc/Makefile b/sysutils/backuppc/Makefile
index 721118f98041..2ff146ce7314 100644
--- a/sysutils/backuppc/Makefile
+++ b/sysutils/backuppc/Makefile
@@ -3,7 +3,7 @@
PORTNAME= backuppc
PORTVERSION= 3.3.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -95,9 +95,6 @@ post-patch:
-e 's|^(use lib ")\.(/lib";)$$|\1${PREFIX}\2|' \
${WRKSRC}/update.pl
@${REINPLACE_CMD} \
- -e 's,"/doc/BackupPC.html","/${DOCSDIR_REL}/BackupPC.html",' \
- ${WRKSRC}/lib/BackupPC/CGI/View.pm
- @${REINPLACE_CMD} \
-e 's|STDERR "Please su |STDERR "Please su [-m] |' \
${WRKSRC}/lib/BackupPC/Lib.pm
@${REINPLACE_CMD} \
@@ -127,6 +124,7 @@ do-install:
${WRKSRC}/doc/BackupPC.pod ${WRKSRC}/${PORTNAME}.1
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/BackupPC.html ${STAGEDIR}${WWWDIR}
${RM} ${STAGEDIR}${ETCDIR}/config.pl
${RM} ${STAGEDIR}${ETCDIR}/hosts
${CP} ${WRKSRC}/conf/config.pl ${STAGEDIR}${ETCDIR}/config.pl.sample
diff --git a/sysutils/backuppc/files/patch-lib__BackupPC__CGI__View.pm b/sysutils/backuppc/files/patch-lib__BackupPC__CGI__View.pm
new file mode 100644
index 000000000000..94ad75a787ed
--- /dev/null
+++ b/sysutils/backuppc/files/patch-lib__BackupPC__CGI__View.pm
@@ -0,0 +1,11 @@
+--- ./lib/BackupPC/CGI/View.pm.orig 2014-08-30 15:21:07.000000000 +0400
++++ ./lib/BackupPC/CGI/View.pm 2014-08-30 15:21:18.000000000 +0400
+@@ -89,7 +89,7 @@
+ $file = $bpc->ConfDir() . "/hosts";
+ $linkHosts = 1;
+ } elsif ( $type eq "docs" ) {
+- $file = $bpc->InstallDir() . "/doc/BackupPC.html";
++ $file = "$Conf{CgiImageDir}/BackupPC.html";
+ } elsif ( $host ne "" ) {
+ if ( !defined($In{num}) ) {
+ # get the latest LOG file
diff --git a/sysutils/backuppc/pkg-plist b/sysutils/backuppc/pkg-plist
index 9eaf11a1e584..119f2186b39a 100644
--- a/sysutils/backuppc/pkg-plist
+++ b/sysutils/backuppc/pkg-plist
@@ -76,9 +76,7 @@ lib/BackupPC/Zip/FileMember.pm
lib/Net/FTP/AutoReconnect.pm
lib/Net/FTP/RetrHandle.pm
man/man1/backuppc.1.gz
-@comment Main html doc should be unconditionally installed.
-@comment CGI uses the BackupPC.html as a documentation page.
-%%DOCSDIR%%/BackupPC.html
+%%PORTDOCS%%%%DOCSDIR%%/BackupPC.html
%%PORTDOCS%%%%DOCSDIR%%/BackupPC.pod
%%WWWDIR%%/0000000.gif
%%WWWDIR%%/0000011.gif
@@ -116,6 +114,7 @@ man/man1/backuppc.1.gz
%%WWWDIR%%/1111101.gif
%%WWWDIR%%/1111110.gif
%%WWWDIR%%/1111111.gif
+%%WWWDIR%%/BackupPC.html
%%WWWDIR%%/BackupPC_stnd.css
%%WWWDIR%%/BackupPC_stnd_orig.css
%%WWWDIR%%/favicon.ico