2008-06-23 00:33:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.34 2008/06/22 22:33:37 dsainty Exp $
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
|
2008-06-23 00:33:37 +02:00
|
|
|
DISTNAME= dar-2.3.8
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
CATEGORIES= archivers sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dar/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
HOMEPAGE= http://dar.linux.free.fr/
|
|
|
|
COMMENT= Disk archiver
|
|
|
|
|
2004-05-29 20:16:15 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2007-12-11 23:34:49 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-05-29 20:16:15 +02:00
|
|
|
|
2004-05-16 18:37:02 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_LIBTOOL= yes
|
2005-06-30 20:31:24 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2007-12-11 23:34:49 +01:00
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-dar-static
|
2007-12-11 23:34:49 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-static=no
|
2006-05-26 12:10:08 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nodump-flag
|
2004-05-12 07:31:28 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-upx
|
2006-05-26 12:10:08 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-examples
|
2007-01-07 14:29:20 +01:00
|
|
|
CONFIGURE_ARGS+= doxygen=no
|
|
|
|
|
2007-12-11 23:34:49 +01:00
|
|
|
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.
|
|
|
|
#
|
2007-08-30 15:54:23 +02:00
|
|
|
CHECK_INTERPRETER_SKIP+= share/dar/samples/*
|
2007-12-11 23:34:49 +01:00
|
|
|
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
|
2007-08-20 14:36:24 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dar
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= int
|
|
|
|
PKG_OPTIONS_GROUP.int= dar-int32 dar-int64
|
2007-12-11 23:34:49 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= dar-int64 ${USE_FEATURES.dar}
|
|
|
|
PKG_SUPPORTED_OPTIONS= threads
|
2006-07-08 09:09:34 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2007-12-11 23:34:49 +01:00
|
|
|
## 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
|
2007-03-18 05:36:23 +01:00
|
|
|
.else
|
2007-12-11 23:34:49 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-thread-safe
|
2006-07-08 09:09:34 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-26 12:10:08 +02:00
|
|
|
UNLIMIT_RESOURCES= datasize
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
|
2007-12-11 23:34:49 +01:00
|
|
|
## XXX Needed for getopt() with SunPro (USE_FEATURES?)
|
|
|
|
#
|
2005-12-05 21:20:10 +01:00
|
|
|
CPPFLAGS.SunOS+= -D__EXTENSIONS__
|
|
|
|
|
2004-03-30 20:56:50 +02:00
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2005-09-07 20:17:22 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2004-03-30 20:56:50 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2007-12-11 23:34:49 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2007-10-23 13:15:25 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2007-12-11 23:34:49 +01:00
|
|
|
|
Initial import of dar-2.0.2 into the NetBSD Packages Collection.
Provided in PR 23738 by David Simas.
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 facillitate
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.
See http://dar.sourceforge.net/
2003-12-15 18:51:43 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|