# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
homepage http://backuppc.sourceforge.net/
description BackupPC is a high-performance, enterprise-grade system for backing up Linux, WinXX and Mac OS X PCs and laptops to a server.
long_description ${description} BackupPC is highly configurable and easy to install and maintain.
master_sites sourceforge:project/backuppc/backuppc/${version}
# TODO: variants are only needed if mod_perl2 has multiple variants
perl5.require_variant yes
perl5.conflict_variants yes
perl5.create_variants ${perl5.branches}
# TODO: this has to be the same branch as for mod_perl2
perl5.default_branch 5.26
require_active_variants mod_perl2 ${perl5.variant}
port:p${perl5.major}-archive-zip \
port:p${perl5.major}-compress-raw-zlib \
port:p${perl5.major}-file-rsyncp \
port:perl${perl5.major} \
distname BackupPC-${version}
checksums rmd160 f9160354a47ea04cfd0da1bcd400850615af9e07 \
sha256 fbade2c8d8039297e826a75d2c39d5ac9a6f66e0c84c0cf8c4cef0bcf64d2152
--backuppc-user=backuppc \
--cgi-dir ${prefix}/var/wwwbackup/cgi-bin \
--data-dir ${prefix}/var/backups \
--html-dir ${prefix}/var/wwwbackup/htdocs/backuppc \
--html-dir-url /backuppc \
--install-dir ${prefix} \
--config-dir ${prefix}/etc/BackupPC \
--log-dir ${prefix}/var/log/BackupPC
patchfiles patch-docdir.diff \
destroot.violate_mtree yes
destroot.keepdirs ${destroot}${prefix}/var/backups \
${destroot}${prefix}/var/backups/cpool \
${destroot}${prefix}/var/backups/log \
${destroot}${prefix}/var/backups/trash \
${destroot}${prefix}/var/backups/pool \
${destroot}${prefix}/var/backups/pc \
${destroot}${prefix}/var/backups/ \
${destroot}${prefix}/var/log/BackupPC \
${destroot}${prefix}/var/wwwbackup/htdocs\
${destroot}${prefix}/var/wwwbackup/logs
set hostname [exec "hostname"]
reinplace "s|@@PERL@@|perl${perl5.major}|g" ${worksrcpath}/configure.pl
reinplace "s|@@PERL_FULL@@|${perl5.bin}|g" ${worksrcpath}/configure.pl
ui_debug "Hostname: ${hostname}"
configure.args-append --hostname ${hostname}
set gid [existsgroup backuppc]
adduser backuppc gid=${gid} realname=BackupPC