NetBSD pkgsrc (package source) is a package management system for
Unix-like operating systems
DAR is a Disk ARchiver, for backing-up file systems to disk. It's rather
in the spirit of TAR, with some additions. Notably:
DAR can break up a archive into multiple files, to facilitate
storage on portable media, like CDs or DVDs.
Can perform incremental back-ups against a reference archive, or,
more conveniently, a "catalog" of an archive, which is sort of a
combination of a TAR table-of-contents and a file checksum list.
DAR also supports filtering, so files or directories can be excluded from
an archive, compression, filtered compression, and the inclusion of parity
in archives, to help recover from media errors.
# $NetBSD: Makefile,v 1.34 2008/06/22 22:33:37 dsainty Exp $
DISTNAME= dar-2.3.8
CATEGORIES= archivers sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dar/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://dar.linux.free.fr/
COMMENT= Disk archiver
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-dar-static
CONFIGURE_ARGS+= --enable-static=no
CONFIGURE_ARGS+= --disable-nodump-flag
CONFIGURE_ARGS+= --disable-upx
CONFIGURE_ARGS+= --enable-examples
CONFIGURE_ARGS+= doxygen=no
PKGCONFIG_OVERRIDE= src/libdar/libdar.pc.tmpl.in
## We use the logic below to find a path for a non-existent ${BASH}.
## Yeah, I suppose it's a hack, but it does work.
#
CHECK_INTERPRETER_SKIP+= share/dar/samples/*
REPLACE_PERL+= doc/samples/dar_backup
REPLACE_BASH+= doc/samples/*.bash doc/samples/clust*.sh
.if defined(TOOLS_PLATFORM.bash) && exists(${${TOOLS_PLATFORM.bash}:L})
BASH?= ${TOOLS_PLATFORM.bash}
.else
BASH?= ${TOOLS_PREFIX.bash}/bin/bash
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bash=bash
.endif
## Our threading check here is the same as the one used in devel/perl5.
#
CHECK_BUILTIN.pthread:=yes
. include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:=no
## XXX I'm following the USE_FEATURES semantics used in security/openssl.
#
.if !empty(USE_BUILTIN.pthread:tl:Myes)
USE_FEATURES.dar= threads
.else
USE_FEATURES.dar= # empty
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.dar
PKG_OPTIONS_OPTIONAL_GROUPS+= int
PKG_OPTIONS_GROUP.int= dar-int32 dar-int64
PKG_SUGGESTED_OPTIONS= dar-int64 ${USE_FEATURES.dar}
PKG_SUPPORTED_OPTIONS= threads
.include "../../mk/bsd.options.mk"
## Dar is built by default with an arbitrary-size-integer library for
## managing all file length/timestamp details. If 32-bit or 64-bit
## integers (with overflow protection) are sufficient for requirements,
## the following options can significantly reduce the run-time memory
## and CPU overheads of Dar.
#
DARBITS= ${PKG_OPTIONS:C/[^[:digit:]]*//:M[36][24]}
PLIST_SUBST+= DARBITS=${DARBITS}
.if !empty(DARBITS)
CONFIGURE_ARGS+= --enable-mode=${DARBITS:Q}
.endif
## We want the threading library to be specified by pkgsrc, and only
## when desired, viz. in the case below. Using PTHREAD_AUTO_VARS
## with the accompanying BUILDLINK_TRANSFORM directive is easier
## then patching configure.
#
.if !empty(PKG_OPTIONS:Mthreads)
USE_FEATURES.openssl+= threads
PTHREAD_AUTO_VARS= yes
BUILDLINK_TRANSFORM+= rm:-lpthread
.else
CONFIGURE_ARGS+= --disable-thread-safe
.endif
UNLIMIT_RESOURCES= datasize
## XXX Needed for getopt() with SunPro (USE_FEATURES?)
#
CPPFLAGS.SunOS+= -D__EXTENSIONS__
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.9 2007/09/16 07:33:15 dsainty Exp $
bin/dar
bin/dar_cp
bin/dar_manager
bin/dar_slave
bin/dar_xform
include/dar/archive.hpp
include/dar/catalogue.hpp
include/dar/compressor.hpp
include/dar/config.h
include/dar/crypto.hpp
include/dar/data_tree.hpp
include/dar/database.hpp
include/dar/deci.hpp
include/dar/ea.hpp
include/dar/erreurs.hpp
include/dar/generic_file.hpp
include/dar/gettext.h
include/dar/header_version.hpp
include/dar/infinint.hpp
include/dar/int_tools.hpp
include/dar/integers.hpp
include/dar/libdar.hpp
include/dar/limitint.hpp
include/dar/mask.hpp
include/dar/mask_list.hpp
include/dar/my_config.h
include/dar/path.hpp
include/dar/real_infinint.hpp
include/dar/scrambler.hpp
include/dar/special_alloc.hpp
include/dar/statistics.hpp
include/dar/storage.hpp
include/dar/string_file.hpp
include/dar/thread_cancellation.hpp
include/dar/tools.hpp
include/dar/tronconneuse.hpp
include/dar/tuyau.hpp
include/dar/user_group_bases.hpp
include/dar/user_interaction.hpp
include/dar/wrapperlib.hpp
lib/libdar${DARBITS}.la
lib/pkgconfig/libdar${DARBITS}.pc
man/man1/dar.1
man/man1/dar_cp.1
man/man1/dar_manager.1
man/man1/dar_slave.1
man/man1/dar_xform.1
share/dar/samples/JH-dar-make_user_backup.sh
share/dar/samples/JH-readme.txt
share/dar/samples/JH_dar_archiver.options
share/dar/samples/JH_darrc
share/dar/samples/README
share/dar/samples/automatic_backup
share/dar/samples/automatic_backup.txt
share/dar/samples/cdbackup.sh
share/dar/samples/cluster_digital_backups.sh
share/dar/samples/cluster_digital_readme.txt
share/dar/samples/dar_backup
share/dar/samples/dar_par.dcf
share/dar/samples/dar_par_create.duc
share/dar/samples/dar_par_test.duc
share/dar/samples/dar_rqck.bash
share/dar/samples/darrc_sample
share/dar/samples/index.html
share/dar/samples/pause_every_n_slice.duc
share/dar/samples/sample1.txt
share/doc/dar/FAQ.html
share/doc/dar/Features.html
share/doc/dar/Good_Backup_Practice.html
share/doc/dar/Known_Bugs.html
share/doc/dar/Limitations.html
share/doc/dar/Notes.html
share/doc/dar/README
share/doc/dar/Tutorial.html
share/doc/dar/api_tutorial.html
share/doc/dar/authentification.html
share/doc/dar/dar-catalog-1.0.dtd
share/doc/dar/dar-differential-backup-mini-howto.en.html
share/doc/dar/dar-differential-backup-mini-howto.es.html
share/doc/dar/dar-differential-backup-mini-howto.it.html
share/doc/dar/dar_doc.jpg
share/doc/dar/dar_key.txt
share/doc/dar/dar_s_doc.jpg
share/doc/dar/index.html
share/doc/dar/man/dar.html
share/doc/dar/man/dar_cp.html
share/doc/dar/man/dar_manager.html
share/doc/dar/man/dar_slave.html
share/doc/dar/man/dar_xform.html
share/doc/dar/man/index.html
share/doc/dar/mini-howto/dar-differential-backup-mini-howto.en.html
share/doc/dar/mini-howto/dar-differential-backup-mini-howto.es.html
share/doc/dar/mini-howto/dar-differential-backup-mini-howto.it.html
share/doc/dar/mini-howto/index.html
share/locale/de/LC_MESSAGES/dar.mo
share/locale/fr/LC_MESSAGES/dar.mo
share/locale/sv/LC_MESSAGES/dar.mo
@dirrm share/doc/dar/mini-howto
@dirrm share/doc/dar/man
@dirrm share/doc/dar
@dirrm share/dar/samples
@dirrm share/dar
@dirrm include/dar
$NetBSD: distinfo,v 1.23 2008/06/22 22:33:37 dsainty Exp $
SHA1 (dar-2.3.8.tar.gz) = d0394ff9dd6a287e3b9b62ebe99e126bb6d8abd0
RMD160 (dar-2.3.8.tar.gz) = 0927b59ba0426634ba5c2ca8b7cad157d6579b13
Size (dar-2.3.8.tar.gz) = 1195944 bytes
SHA1 (patch-aa) = d9d9cef20573582c2f56aa70ae1b3af98b11725a
SHA1 (patch-ab) = d442f8ec95909bf9a5e72e1ff10042ec263ec8d2
SHA1 (patch-ac) = 34ba67a1ae794c1069824347b67a204455d18f2e
SHA1 (patch-ad) = a0089fd534a98d5daae87b92b61f869ed146bed3
SHA1 (patch-ae) = 54220384bf2031df64c38f5abea038382ca37e8e
SHA1 (patch-af) = c25351dbf2f115b649207f88981710e04a0a038e
# $NetBSD: hacks.mk,v 1.3 2005/12/05 20:49:47 rillig Exp $
.if !defined(DAR_HACKS_MK)
DAR_HACKS_MK= # defined
### [Mon Jan 24 16:39:35 UTC 2005 : tv]
### Interix has no
###
.if ${OPSYS} == "Interix"
PKG_HACKS+= standard-headers
CONFIGURE_ARGS+= --enable-os-bits=32
.endif
.endif