>>> Building on exopi-1 under sysutils/backuppc BDEPENDS = [net/rsync;archivers/gtar;devel/p5-File-RsyncP;net/samba] DIST = [sysutils/backuppc:BackupPC-3.3.2.tar.gz] FULLPKGNAME = backuppc-3.3.2p3 RDEPENDS = [www/spawn-fcgi;textproc/p5-XML-RSS;www/p5-libwww;archivers/p5-Archive-Zip;devel/p5-File-RsyncP] (Junk lock obtained for exopi-1 at 1735152816.22) >>> Running depends in sysutils/backuppc at 1735152816.27 last junk was in x11/fltk /usr/sbin/pkg_add -aI -Drepair gtar-1.35p0 p5-File-RsyncP-0.76 rsync-3.3.0p2 samba-4.21.2p1v0 was: /usr/sbin/pkg_add -aI -Drepair gtar-1.35p0 p5-File-RsyncP-0.76 rsync-3.3.0p2 samba-4.21.2p1v0 /usr/sbin/pkg_add -aI -Drepair gtar-1.35p0 p5-File-RsyncP-0.76 rsync-3.3.0p2 samba-4.21.2p1v0 The following new rcscripts were installed: /etc/rc.d/nmbd /etc/rc.d/rsyncd /etc/rc.d/samba /etc/rc.d/saslauthd /etc/rc.d/smbd /etc/rc.d/winbindd See rcctl(8) for details. New and changed readme(s): /usr/local/share/doc/pkg-readmes/libinotify /usr/local/share/doc/pkg-readmes/samba >>> Running show-prepare-results in sysutils/backuppc at 1735152827.44 ===> sysutils/backuppc ===> Building from scratch backuppc-3.3.2p3 ===> backuppc-3.3.2p3 depends on: gtar-* -> gtar-1.35p0 ===> backuppc-3.3.2p3 depends on: samba-* -> samba-4.21.2p1v0 ===> backuppc-3.3.2p3 depends on: rsync-* -> rsync-3.3.0p2 ===> backuppc-3.3.2p3 depends on: p5-File-RsyncP-* -> p5-File-RsyncP-0.76 gtar-1.35p0 p5-File-RsyncP-0.76 rsync-3.3.0p2 samba-4.21.2p1v0 (Junk lock released for exopi-1 at 1735152828.32) distfiles size=557300 >>> Running build in sysutils/backuppc at 1735152828.36 ===> sysutils/backuppc ===> Checking files for backuppc-3.3.2p3 `/exopi-cvs/ports/distfiles/BackupPC-3.3.2.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for backuppc-3.3.2p3 ===> Patching for backuppc-3.3.2p3 ===> Applying OpenBSD patch patch-cgi-bin_BackupPC_Admin Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Use patch from http://users.k12system.com/mrwizard/backuppc-3.2.0-fastcgi.patch |to allow fcgi workflow |--- cgi-bin/BackupPC_Admin.orig Sat Sep 17 17:22:41 2011 |+++ cgi-bin/BackupPC_Admin Sat Sep 17 17:24:46 2011 -------------------------- Patching file cgi-bin/BackupPC_Admin using Plan A... Hunk #1 succeeded at 49. Hunk #2 succeeded at 83. Hunk #3 succeeded at 110. done ===> Applying OpenBSD patch patch-configure_pl Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- configure.pl.orig Mon Jan 12 01:19:53 2015 |+++ configure.pl Sun Sep 20 09:22:47 2015 -------------------------- Patching file configure.pl using Plan A... Hunk #1 succeeded at 522. Hunk #2 succeeded at 558. Hunk #3 succeeded at 687. Hunk #4 succeeded at 728. done ===> Applying OpenBSD patch patch-lib_BackupPC_CGI_Browse_pm Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Fix errors with perl 5.22 | |https://bugzilla.redhat.com/show_bug.cgi?id=1259481 | |--- lib/BackupPC/CGI/Browse.pm.orig Wed May 18 10:01:30 2016 |+++ lib/BackupPC/CGI/Browse.pm Wed May 18 10:02:15 2016 -------------------------- Patching file lib/BackupPC/CGI/Browse.pm using Plan A... Hunk #1 succeeded at 106. Hunk #2 succeeded at 134. Hunk #3 succeeded at 171. Hunk #4 succeeded at 197. done ===> Applying OpenBSD patch patch-lib_BackupPC_CGI_Lib_pm Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- lib/BackupPC/CGI/Lib.pm.orig Mon Apr 25 05:31:55 2011 |+++ lib/BackupPC/CGI/Lib.pm Sat Sep 17 17:21:37 2011 -------------------------- Patching file lib/BackupPC/CGI/Lib.pm using Plan A... Hunk #1 succeeded at 90. done ===> Applying OpenBSD patch patch-lib_BackupPC_CGI_View_pm Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |First chunk: |Security fix for SA46615 |BackupPC "num" Cross-Site Scripting Vulnerability | |From http://patches.ubuntu.com/b/backuppc/backuppc_3.2.1-1ubuntu2.patch | |--- lib/BackupPC/CGI/View.pm.orig Sun Apr 14 22:43:32 2013 |+++ lib/BackupPC/CGI/View.pm Tue Dec 3 22:53:53 2013 -------------------------- Patching file lib/BackupPC/CGI/View.pm using Plan A... Hunk #1 succeeded at 46. Hunk #2 succeeded at 89. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for backuppc-3.3.2p3 ===> Configuring for backuppc-3.3.2p3 >>> Running package in sysutils/backuppc at 1735152828.94 ===> sysutils/backuppc ===> Faking installation for backuppc-3.3.2p3 cd /exopi-obj/pobj/backuppc-3.3.2/BackupPC-3.3.2 && perl ./configure.pl --html-dir /usr/local/share/backuppc --html-dir-url /backuppc --cgi-dir /usr/local/bin --data-dir /var/db/backuppc --log-dir /var/log/backuppc --config-dir /etc/backuppc --install-dir /usr/local --dest-dir /exopi-obj/pobj/backuppc-3.3.2/fake-amd64 --hostname example.com --uid-ignore --no-set-perms --batch -backuppc-user=_backuppc Is this a new installation or upgrade for BackupPC? If this is an upgrade please tell me the full path of the existing BackupPC configuration file (eg: /etc/BackupPC/config.pl). Otherwise, just hit return. --> Full path to existing main config.pl [] I found the following locations for these programs: bzip2 => /usr/local/bin/bzip2 cat => /bin/cat df => /bin/df gtar/tar => /usr/local/bin/gtar gzip => /usr/bin/gzip hostname => /bin/hostname nmblookup => /usr/local/bin/nmblookup par2 => perl => /usr/bin/perl ping => /sbin/ping rsync => /usr/local/bin/rsync sendmail => /usr/sbin/sendmail smbclient => /usr/local/bin/smbclient split => /usr/bin/split ssh/ssh2 => /usr/bin/ssh --> Are these paths correct? [y] Please tell me the hostname of the machine that BackupPC will run on. --> BackupPC will run on host [example.com] BackupPC should run as a dedicated user with limited privileges. You need to create a user. This user will need read/write permission on the main data directory and read/execute permission on the install directory (these directories will be setup shortly). The primary group for this user should also be chosen carefully. The data directories and files will have group read permission, so group members can access backup files. --> BackupPC should run as user [_backuppc] Please specify an install directory for BackupPC. This is where the BackupPC scripts, library and documentation will be installed. --> Install directory (full path) [/usr/local] Please specify a data directory for BackupPC. This is where all the PC backup data is stored. This file system needs to be big enough to accommodate all the PCs you expect to backup (eg: at least several GB per machine). --> Data directory (full path) [/var/db/backuppc] BackupPC can compress pool files, providing around a 40% reduction in pool size (your mileage may vary). Specify the compression level (0 turns off compression, and 1 to 9 represent good/fastest to best/slowest). The recommended values are 0 (off) or 3 (reasonable compression and speed). Increasing the compression level to 5 will use around 20% more cpu time and give perhaps 2-3% more compression. --> Compression level [3] BackupPC has a powerful CGI perl interface that runs under Apache. A single executable needs to be installed in a cgi-bin directory. This executable needs to run as set-uid _backuppc, or it can be run under mod_perl with Apache running as user _backuppc. Leave this path empty if you don't want to install the CGI interface. --> CGI bin directory (full path) [/usr/local/bin] BackupPC's CGI script needs to display various PNG/GIF images that should be stored where Apache can serve them. They should be placed somewhere under Apache's DocumentRoot. BackupPC also needs to know the URL to access these images. Example: Apache image directory: /var/www/htdocs/BackupPC URL for image directory: /BackupPC The URL for the image directory should start with a slash. --> Apache image directory (full path) [/usr/local/share/backuppc] --> URL for image directory (omit http://host; starts with '/') [/backuppc] Ok, we're about to: - install the binaries, lib and docs in /usr/local, - create the data directory /var/db/backuppc, - create/update the config.pl file /etc/backuppc/config.pl, - optionally install the cgi-bin interface. --> Do you want to continue? [y] Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/doc/backuppc Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/CGI Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/Config Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/Lang Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/Storage Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/Xfer Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/BackupPC/Zip Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib/Net/FTP Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/backuppc Created /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/examples/backuppc/ Installing binaries in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/bin Installing library in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/lib Installing images in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/backuppc Making init.d scripts Making Apache configuration file for suid-perl Installing docs in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/doc/backuppc Installing config.pl and hosts in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/examples/backuppc PING localhost. (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.079 ms --- localhost. ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.079/0.079/0.079/0.000 ms Installing cgi script BackupPC_Admin in /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/bin Ok, it looks like we are finished. There are several more things you will need to do: - Browse through the config file, /etc/backuppc/config.pl, and make sure all the settings are correct. In particular, you will need to set $Conf{CgiAdminUsers} so you have administration privileges in the CGI interface. - Edit the list of hosts to backup in /etc/backuppc/hosts. - Read the documentation in /usr/local/doc/BackupPC.html. Please pay special attention to the security section. - Verify that the CGI script BackupPC_Admin runs correctly. You might need to change the permissions or group ownership of BackupPC_Admin. If this is an upgrade and you are using mod_perl, you will need to restart Apache. Otherwise it will have stale code. - BackupPC should be ready to start. Don't forget to run it as user _backuppc! The installation also contains an init.d/backuppc script that can be copied to /etc/init.d so that BackupPC can auto-start on boot. This will also enable administrative users to start the server from the CGI interface. See init.d/README. Enjoy! # needed since we use --no-set-perms chmod 555 /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/bin/* # add extension for the sake of clarity cd /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/bin/ && ln -sf BackupPC_Admin{,.fcgi} /exopi-obj/pobj/backuppc-3.3.2/bin/install -c -m 644 /exopi-cvs/ports/sysutils/backuppc/files/httpd-backuppc.conf /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/examples/backuppc/ Installing /exopi-cvs/ports/sysutils/backuppc/pkg/README as /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/usr/local/share/doc/pkg-readmes/backuppc Installing /exopi-cvs/ports/sysutils/backuppc/pkg/backuppc.rc as /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/etc/rc.d/backuppc Installing /exopi-cvs/ports/sysutils/backuppc/pkg/wwbackuppc.rc as /exopi-obj/pobj/backuppc-3.3.2/fake-amd64/etc/rc.d/wwbackuppc ===> Building package for backuppc-3.3.2p3 Create /exopi-cvs/ports/packages/amd64/all/backuppc-3.3.2p3.tgz Creating package backuppc-3.3.2p3 reading plist| checking dependencies| checking dependencies|archivers/p5-Archive-Zip checking dependencies|devel/p5-File-RsyncP checking dependencies|textproc/p5-XML-RSS checking dependencies|www/p5-libwww checking dependencies|www/spawn-fcgi checksumming| checksumming| | 0% checksumming| | 1% checksumming|* | 1% checksumming|* | 2% checksumming|** | 3% checksumming|** | 4% checksumming|*** | 5% checksumming|*** | 6% checksumming|**** | 6% checksumming|**** | 7% checksumming|***** | 7% checksumming|***** | 8% checksumming|***** | 9% checksumming|****** | 9% checksumming|****** | 10% checksumming|******* | 11% checksumming|******* | 12% checksumming|******** | 13% checksumming|******** | 14% checksumming|********* | 14% checksumming|********* | 15% checksumming|********** | 16% checksumming|********** | 17% checksumming|*********** | 18% checksumming|*********** | 19% checksumming|************ | 19% checksumming|************ | 20% checksumming|************* | 21% checksumming|************* | 22% checksumming|************** | 22% checksumming|************** | 23% checksumming|*************** | 24% checksumming|*************** | 25% checksumming|**************** | 26% checksumming|**************** | 27% checksumming|***************** | 27% checksumming|***************** | 28% checksumming|****************** | 29% checksumming|****************** | 30% checksumming|******************* | 31% checksumming|******************* | 32% checksumming|******************** | 32% checksumming|******************** | 33% checksumming|******************** | 34% checksumming|********************* | 34% checksumming|********************* | 35% checksumming|********************** | 36% checksumming|*********************** | 37% checksumming|*********************** | 38% checksumming|************************ | 39% checksumming|************************ | 40% checksumming|************************* | 40% checksumming|************************* | 41% checksumming|************************** | 42% checksumming|************************** | 43% checksumming|*************************** | 44% checksumming|*************************** | 45% checksumming|**************************** | 45% checksumming|**************************** | 46% checksumming|**************************** | 47% checksumming|***************************** | 47% checksumming|***************************** | 48% checksumming|****************************** | 49% checksumming|******************************* | 50% checksumming|******************************* | 51% checksumming|******************************** | 52% checksumming|******************************** | 53% checksumming|********************************* | 53% checksumming|********************************* | 54% checksumming|********************************* | 55% checksumming|********************************** | 55% checksumming|********************************** | 56% checksumming|*********************************** | 57% checksumming|*********************************** | 58% checksumming|************************************ | 59% checksumming|************************************ | 60% checksumming|************************************* | 60% checksumming|************************************* | 61% checksumming|************************************** | 62% checksumming|************************************** | 63% checksumming|*************************************** | 64% checksumming|**************************************** | 65% checksumming|**************************************** | 66% checksumming|***************************************** | 66% checksumming|***************************************** | 67% checksumming|***************************************** | 68% checksumming|****************************************** | 68% checksumming|****************************************** | 69% checksumming|******************************************* | 70% checksumming|******************************************* | 71% checksumming|******************************************** | 72% checksumming|******************************************** | 73% checksumming|********************************************* | 73% checksumming|********************************************* | 74% checksumming|********************************************** | 75% checksumming|********************************************** | 76% checksumming|*********************************************** | 77% checksumming|*********************************************** | 78% checksumming|************************************************ | 78% checksumming|************************************************ | 79% checksumming|************************************************* | 80% checksumming|************************************************* | 81% checksumming|************************************************** | 81% checksumming|************************************************** | 82% checksumming|*************************************************** | 83% checksumming|*************************************************** | 84% checksumming|**************************************************** | 85% checksumming|**************************************************** | 86% checksumming|***************************************************** | 86% checksumming|***************************************************** | 87% checksumming|***************************************************** | 88% checksumming|****************************************************** | 88% checksumming|****************************************************** | 89% checksumming|******************************************************* | 90% checksumming|******************************************************* | 91% checksumming|******************************************************** | 91% checksumming|******************************************************** | 92% checksumming|******************************************************** | 93% checksumming|********************************************************* | 93% checksumming|********************************************************* | 94% checksumming|********************************************************** | 94% checksumming|********************************************************** | 95% checksumming|*********************************************************** | 96% checksumming|*********************************************************** | 97% checksumming|************************************************************ | 98% checksumming|************************************************************ | 99% checksumming|*************************************************************| 99% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|** | 4% archiving|*** | 4% archiving|*** | 5% archiving|***** | 8% archiving|****** | 9% archiving|****** | 10% archiving|******* | 11% archiving|******* | 12% archiving|******** | 12% archiving|********* | 13% archiving|********* | 14% archiving|********* | 15% archiving|********** | 15% archiving|********** | 16% archiving|************ | 19% archiving|************* | 20% archiving|************* | 21% archiving|************** | 21% archiving|************** | 22% archiving|************** | 23% archiving|*************** | 23% archiving|*************** | 24% archiving|**************** | 25% archiving|**************** | 26% archiving|****************** | 28% archiving|******************** | 31% archiving|********************* | 34% archiving|*********************** | 36% archiving|************************* | 39% archiving|*************************** | 42% archiving|***************************** | 45% archiving|****************************** | 47% archiving|******************************** | 50% archiving|********************************** | 53% archiving|************************************ | 56% archiving|************************************** | 59% archiving|*************************************** | 62% archiving|***************************************** | 64% archiving|***************************************** | 65% archiving|****************************************** | 66% archiving|******************************************* | 66% archiving|******************************************* | 67% archiving|******************************************** | 68% archiving|******************************************** | 69% archiving|********************************************* | 70% archiving|********************************************** | 72% archiving|*********************************************** | 73% archiving|*********************************************** | 74% archiving|************************************************ | 75% archiving|************************************************ | 76% archiving|************************************************* | 76% archiving|******************************************************** | 87% archiving|************************************************************* | 96% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/backuppc-3.3.2p3.tgz >>> Running clean in sysutils/backuppc at 1735152832.97 ===> sysutils/backuppc ===> Cleaning for backuppc-3.3.2p3 >>> Ended at 1735152833.23 max_stuck=4.79/depends=11.16/show-prepare-results=0.93/build=0.58/package=4.00/clean=0.32