head	1.48;
access;
symbols
	pkgsrc-2026Q1:1.48.0.4
	pkgsrc-2026Q1-base:1.48
	pkgsrc-2025Q4:1.48.0.2
	pkgsrc-2025Q4-base:1.48
	pkgsrc-2025Q3:1.47.0.20
	pkgsrc-2025Q3-base:1.47
	pkgsrc-2025Q2:1.47.0.18
	pkgsrc-2025Q2-base:1.47
	pkgsrc-2025Q1:1.47.0.16
	pkgsrc-2025Q1-base:1.47
	pkgsrc-2024Q4:1.47.0.14
	pkgsrc-2024Q4-base:1.47
	pkgsrc-2024Q3:1.47.0.12
	pkgsrc-2024Q3-base:1.47
	pkgsrc-2024Q2:1.47.0.10
	pkgsrc-2024Q2-base:1.47
	pkgsrc-2024Q1:1.47.0.8
	pkgsrc-2024Q1-base:1.47
	pkgsrc-2023Q4:1.47.0.6
	pkgsrc-2023Q4-base:1.47
	pkgsrc-2023Q3:1.47.0.4
	pkgsrc-2023Q3-base:1.47
	pkgsrc-2023Q2:1.47.0.2
	pkgsrc-2023Q2-base:1.47
	pkgsrc-2023Q1:1.45.0.28
	pkgsrc-2023Q1-base:1.45
	pkgsrc-2022Q4:1.45.0.26
	pkgsrc-2022Q4-base:1.45
	pkgsrc-2022Q3:1.45.0.24
	pkgsrc-2022Q3-base:1.45
	pkgsrc-2022Q2:1.45.0.22
	pkgsrc-2022Q2-base:1.45
	pkgsrc-2022Q1:1.45.0.20
	pkgsrc-2022Q1-base:1.45
	pkgsrc-2021Q4:1.45.0.18
	pkgsrc-2021Q4-base:1.45
	pkgsrc-2021Q3:1.45.0.16
	pkgsrc-2021Q3-base:1.45
	pkgsrc-2021Q2:1.45.0.14
	pkgsrc-2021Q2-base:1.45
	pkgsrc-2021Q1:1.45.0.12
	pkgsrc-2021Q1-base:1.45
	pkgsrc-2020Q4:1.45.0.10
	pkgsrc-2020Q4-base:1.45
	pkgsrc-2020Q3:1.45.0.8
	pkgsrc-2020Q3-base:1.45
	pkgsrc-2020Q2:1.45.0.6
	pkgsrc-2020Q2-base:1.45
	pkgsrc-2020Q1:1.45.0.2
	pkgsrc-2020Q1-base:1.45
	pkgsrc-2019Q4:1.45.0.4
	pkgsrc-2019Q4-base:1.45
	pkgsrc-2019Q3:1.44.0.8
	pkgsrc-2019Q3-base:1.44
	pkgsrc-2019Q2:1.44.0.6
	pkgsrc-2019Q2-base:1.44
	pkgsrc-2019Q1:1.44.0.4
	pkgsrc-2019Q1-base:1.44
	pkgsrc-2018Q4:1.44.0.2
	pkgsrc-2018Q4-base:1.44
	pkgsrc-2018Q3:1.43.0.2
	pkgsrc-2018Q3-base:1.43
	pkgsrc-2018Q2:1.42.0.22
	pkgsrc-2018Q2-base:1.42
	pkgsrc-2018Q1:1.42.0.20
	pkgsrc-2018Q1-base:1.42
	pkgsrc-2017Q4:1.42.0.18
	pkgsrc-2017Q4-base:1.42
	pkgsrc-2017Q3:1.42.0.16
	pkgsrc-2017Q3-base:1.42
	pkgsrc-2017Q2:1.42.0.12
	pkgsrc-2017Q2-base:1.42
	pkgsrc-2017Q1:1.42.0.10
	pkgsrc-2017Q1-base:1.42
	pkgsrc-2016Q4:1.42.0.8
	pkgsrc-2016Q4-base:1.42
	pkgsrc-2016Q3:1.42.0.6
	pkgsrc-2016Q3-base:1.42
	pkgsrc-2016Q2:1.42.0.4
	pkgsrc-2016Q2-base:1.42
	pkgsrc-2016Q1:1.42.0.2
	pkgsrc-2016Q1-base:1.42
	pkgsrc-2015Q4:1.41.0.2
	pkgsrc-2015Q4-base:1.41
	pkgsrc-2015Q3:1.40.0.10
	pkgsrc-2015Q3-base:1.40
	pkgsrc-2015Q2:1.40.0.8
	pkgsrc-2015Q2-base:1.40
	pkgsrc-2015Q1:1.40.0.6
	pkgsrc-2015Q1-base:1.40
	pkgsrc-2014Q4:1.40.0.4
	pkgsrc-2014Q4-base:1.40
	pkgsrc-2014Q3:1.40.0.2
	pkgsrc-2014Q3-base:1.40
	pkgsrc-2014Q2:1.39.0.2
	pkgsrc-2014Q2-base:1.39
	pkgsrc-2014Q1:1.38.0.10
	pkgsrc-2014Q1-base:1.38
	pkgsrc-2013Q4:1.38.0.8
	pkgsrc-2013Q4-base:1.38
	pkgsrc-2013Q3:1.38.0.6
	pkgsrc-2013Q3-base:1.38
	pkgsrc-2013Q2:1.38.0.4
	pkgsrc-2013Q2-base:1.38
	pkgsrc-2013Q1:1.38.0.2
	pkgsrc-2013Q1-base:1.38
	pkgsrc-2012Q4:1.37.0.4
	pkgsrc-2012Q4-base:1.37
	pkgsrc-2012Q3:1.37.0.2
	pkgsrc-2012Q3-base:1.37
	pkgsrc-2012Q2:1.30.0.2
	pkgsrc-2012Q2-base:1.30
	pkgsrc-2012Q1:1.29.0.18
	pkgsrc-2012Q1-base:1.29
	pkgsrc-2011Q4:1.29.0.16
	pkgsrc-2011Q4-base:1.29
	pkgsrc-2011Q3:1.29.0.14
	pkgsrc-2011Q3-base:1.29
	pkgsrc-2011Q2:1.29.0.12
	pkgsrc-2011Q2-base:1.29
	pkgsrc-2011Q1:1.29.0.10
	pkgsrc-2011Q1-base:1.29
	pkgsrc-2010Q4:1.29.0.8
	pkgsrc-2010Q4-base:1.29
	pkgsrc-2010Q3:1.29.0.6
	pkgsrc-2010Q3-base:1.29
	pkgsrc-2010Q2:1.29.0.4
	pkgsrc-2010Q2-base:1.29
	pkgsrc-2010Q1:1.29.0.2
	pkgsrc-2010Q1-base:1.29
	pkgsrc-2009Q4:1.28.0.2
	pkgsrc-2009Q4-base:1.28
	pkgsrc-2009Q3:1.27.0.12
	pkgsrc-2009Q3-base:1.27
	pkgsrc-2009Q2:1.27.0.10
	pkgsrc-2009Q2-base:1.27
	pkgsrc-2009Q1:1.27.0.8
	pkgsrc-2009Q1-base:1.27
	pkgsrc-2008Q4:1.27.0.6
	pkgsrc-2008Q4-base:1.27
	pkgsrc-2008Q3:1.27.0.4
	pkgsrc-2008Q3-base:1.27
	cube-native-xorg:1.27.0.2
	cube-native-xorg-base:1.27
	pkgsrc-2008Q2:1.26.0.6
	pkgsrc-2008Q2-base:1.26
	cwrapper:1.26.0.4
	pkgsrc-2008Q1:1.26.0.2
	pkgsrc-2008Q1-base:1.26
	pkgsrc-2007Q4:1.25.0.4
	pkgsrc-2007Q4-base:1.25
	pkgsrc-2007Q3:1.25.0.2
	pkgsrc-2007Q3-base:1.25
	pkgsrc-2007Q2:1.24.0.4
	pkgsrc-2007Q2-base:1.24
	pkgsrc-2007Q1:1.24.0.2
	pkgsrc-2007Q1-base:1.24
	pkgsrc-2006Q4:1.23.0.2
	pkgsrc-2006Q4-base:1.23
	pkgsrc-2006Q3:1.22.0.2
	pkgsrc-2006Q3-base:1.22
	pkgsrc-2006Q2:1.21.0.2
	pkgsrc-2006Q2-base:1.21
	pkgsrc-2006Q1:1.20.0.2
	pkgsrc-2006Q1-base:1.20
	pkgsrc-2005Q4:1.19.0.2
	pkgsrc-2005Q4-base:1.19
	pkgsrc-2005Q3:1.17.0.2
	pkgsrc-2005Q3-base:1.17
	pkgsrc-2005Q2:1.16.0.4
	pkgsrc-2005Q2-base:1.16
	pkgsrc-2005Q1:1.16.0.2
	pkgsrc-2005Q1-base:1.16
	pkgsrc-2004Q4:1.14.0.2
	pkgsrc-2004Q4-base:1.14
	pkgsrc-2004Q3:1.12.0.4
	pkgsrc-2004Q3-base:1.12
	pkgsrc-2004Q2:1.12.0.2
	pkgsrc-2004Q2-base:1.12
	pkgsrc-2004Q1:1.11.0.2
	pkgsrc-2004Q1-base:1.11
	pkgsrc-2003Q4:1.10.0.4
	pkgsrc-2003Q4-base:1.10
	netbsd-1-6-1:1.10.0.2
	netbsd-1-6-1-base:1.10
	netbsd-1-6:1.7.0.6
	netbsd-1-6-RELEASE-base:1.7
	pkgviews:1.7.0.2
	pkgviews-base:1.7
	buildlink2:1.6.0.2
	buildlink2-base:1.7
	netbsd-1-5-PATCH003:1.6
	netbsd-1-5-PATCH001:1.4
	netbsd-1-5-RELEASE:1.4
	netbsd-1-4-PATCH003:1.4
	netbsd-1-4-PATCH002:1.1
	comdex-fall-1999:1.1;
locks; strict;
comment	@# @;


1.48
date	2025.11.20.13.46.58;	author wiz;	state Exp;
branches;
next	1.47;
commitid	HhAEy9m8Gi3AsijG;

1.47
date	2023.06.06.12.42.17;	author riastradh;	state Exp;
branches;
next	1.46;
commitid	xhspr6Z8JLQOWSrE;

1.46
date	2023.04.14.22.58.24;	author nia;	state Exp;
branches;
next	1.45;
commitid	SyLSGe2wH6vt48lE;

1.45
date	2019.11.04.21.28.40;	author rillig;	state Exp;
branches
	1.45.28.1;
next	1.44;
commitid	P8zvC5DaquV1ZzJB;

1.44
date	2018.11.25.20.20.57;	author spz;	state Exp;
branches;
next	1.43;
commitid	tQSV8ZIpz5I9Fm1B;

1.43
date	2018.07.04.13.40.36;	author jperkin;	state Exp;
branches;
next	1.42;
commitid	NnIyRkdX3Lbg3PIA;

1.42
date	2016.02.29.05.50.40;	author mlelstv;	state Exp;
branches;
next	1.41;
commitid	r1Sh7OKwacxkZLWy;

1.41
date	2015.11.25.12.53.29;	author jperkin;	state Exp;
branches;
next	1.40;
commitid	kUtdxNXmOZAjqtKy;

1.40
date	2014.09.25.21.47.06;	author jperkin;	state Exp;
branches;
next	1.39;
commitid	0oJcuwbrYJHl4MRx;

1.39
date	2014.06.10.15.51.37;	author gdt;	state Exp;
branches;
next	1.38;
commitid	gwzw7SBMcdtlxZDx;

1.38
date	2013.01.23.17.58.19;	author wiz;	state Exp;
branches;
next	1.37;

1.37
date	2012.07.30.07.21.11;	author sbd;	state Exp;
branches;
next	1.36;

1.36
date	2012.07.30.07.04.29;	author sbd;	state Exp;
branches;
next	1.35;

1.35
date	2012.07.30.07.03.04;	author sbd;	state Exp;
branches;
next	1.34;

1.34
date	2012.07.30.07.02.17;	author sbd;	state Exp;
branches;
next	1.33;

1.33
date	2012.07.30.07.00.12;	author sbd;	state Exp;
branches;
next	1.32;

1.32
date	2012.07.30.06.57.21;	author sbd;	state Exp;
branches;
next	1.31;

1.31
date	2012.07.19.07.30.55;	author sbd;	state Exp;
branches;
next	1.30;

1.30
date	2012.05.20.11.13.35;	author sbd;	state Exp;
branches;
next	1.29;

1.29
date	2010.02.19.18.55.56;	author joerg;	state Exp;
branches;
next	1.28;

1.28
date	2009.12.14.23.33.01;	author heinz;	state Exp;
branches;
next	1.27;

1.27
date	2008.07.29.17.21.39;	author pgoyette;	state Exp;
branches;
next	1.26;

1.26
date	2008.02.15.16.23.09;	author gdt;	state Exp;
branches;
next	1.25;

1.25
date	2007.07.04.20.54.59;	author jlam;	state Exp;
branches;
next	1.24;

1.24
date	2007.01.05.12.47.27;	author obache;	state Exp;
branches;
next	1.23;

1.23
date	2006.10.02.21.05.44;	author rillig;	state Exp;
branches;
next	1.22;

1.22
date	2006.07.19.19.14.39;	author jlam;	state Exp;
branches;
next	1.21;

1.21
date	2006.05.26.13.19.38;	author joerg;	state Exp;
branches;
next	1.20;

1.20
date	2006.03.04.21.30.40;	author jlam;	state Exp;
branches;
next	1.19;

1.19
date	2005.12.05.23.55.19;	author rillig;	state Exp;
branches;
next	1.18;

1.18
date	2005.12.05.20.50.59;	author rillig;	state Exp;
branches;
next	1.17;

1.17
date	2005.08.02.09.26.06;	author seb;	state Exp;
branches;
next	1.16;

1.16
date	2004.12.28.09.10.50;	author minskim;	state Exp;
branches;
next	1.15;

1.15
date	2004.12.28.09.06.42;	author minskim;	state Exp;
branches;
next	1.14;

1.14
date	2004.11.20.23.10.32;	author kim;	state Exp;
branches;
next	1.13;

1.13
date	2004.11.12.12.13.44;	author mjl;	state Exp;
branches;
next	1.12;

1.12
date	2004.05.12.18.45.25;	author bouyer;	state Exp;
branches;
next	1.11;

1.11
date	2004.02.14.15.29.15;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2002.10.20.03.20.34;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2002.09.05.18.07.54;	author jschauma;	state Exp;
branches;
next	1.8;

1.8
date	2002.08.25.21.50.54;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2002.07.21.19.07.32;	author schmonz;	state Exp;
branches;
next	1.6;

1.6
date	2001.10.19.09.44.10;	author veego;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2001.06.14.21.54.36;	author jlam;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.15.15.59.33;	author skrll;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.17.02.26.29;	author wiz;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.01.11.23.41;	author rh;	state Exp;
branches;
next	1.1;

1.1
date	99.09.06.19.30.20;	author bad;	state Exp;
branches;
next	;

1.45.28.1
date	2023.04.21.18.40.51;	author bsiegert;	state Exp;
branches;
next	;
commitid	P4BLTleiVNiKq0mE;

1.6.2.1
date	2002.08.25.21.21.20;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.48
log
@amanda*: switch HOMEPAGE to https
@
text
@# $NetBSD: Makefile.common,v 1.47 2023/06/06 12:42:17 riastradh Exp $

# used by sysutils/amanda-common/Makefile
# used by sysutils/amanda-client/Makefile
# used by sysutils/amanda-server/Makefile
# used by sysutils/amanda-plot/Makefile

COMMONDIR=		../../sysutils/amanda-common
.include		"${COMMONDIR}/version.mk"

DISTNAME=		amanda-${AMANDA_VERSION}
CATEGORIES=		sysutils
MASTER_SITES?=		${MASTER_SITE_SOURCEFORGE:=amanda/}

MAINTAINER=		pkgsrc-users@@NetBSD.org
HOMEPAGE=		https://www.amanda.org/
LICENSE=		modified-bsd AND gnu-gpl-v3

DISTINFO_FILE=		${.CURDIR}/${COMMONDIR}/distinfo
PATCHDIR=		${.CURDIR}/${COMMONDIR}/patches

CHECK_PORTABILITY_SKIP+=	configure # It gets regend
CHECK_PORTABILITY_SKIP+=	packaging/deb/amanda-backup-server.postinst
CHECK_PORTABILITY_SKIP+=	packaging/common/post_inst_functions.sh
CHECK_PORTABILITY_SKIP+=	packaging/common/test_sh_libs.sh

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
AMANDA_GROUP?=		sysadmin
.else
# NetBSD, Linux and Darwin
AMANDA_GROUP?=		operator
.endif

AMANDA_USER?=		amandabackup
AMANDA_TMP?=		/tmp/amanda
AMANDA_VAR?=		${VARBASE}/amanda

PKG_GROUPS_VARS+=	AMANDA_GROUP
PKG_USERS_VARS+=	AMANDA_USER
BUILD_DEFS+=		AMANDA_TMP AMANDA_USER AMANDA_GROUP AMANDA_VAR VARBASE
FILES_SUBST+=		AMANDA_VAR=${AMANDA_VAR:Q}

AM_PROG_PERMS=		${REAL_ROOT_USER} ${AMANDA_GROUP} 4510

USE_LIBTOOL=		yes
USE_TOOLS+=		gzip:run gtar:run perl:run
USE_TOOLS+=		gmake pkg-config autoconf automake
# for autopoint
TOOL_DEPENDS+=		gettext-tools-[0-9]*:../../devel/gettext-tools
PERL5_CONFIGURE=	no
AUTO_MKDIRS=		yes

SUBST_CLASSES+=		bool
SUBST_MESSAGE.bool=	Fix SWIG messing with stdbool.h.
SUBST_STAGE.bool=	pre-configure
SUBST_FILES.bool=	perl/Amanda/*.c perl/Amanda/*/*.c
SUBST_SED.bool=		-e '/undef bool/d'

GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		ac_cv_path_GZIP=${TOOLS_GZIP_CMD:Q}
CONFIGURE_ENV+=		GNUTAR=${TOOLS_GTAR:Q}

# I am not quite sure what is causing the test for -msse4.2 to fail
# (perhaps cwrappers?). It is basically grepping the output of
# "cc -v --help" which does in fact contain the correct value.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ENV+=		SSE42_CFLAGS=-msse4.2
.endif

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--localstatedir=${AMANDA_VAR:Q}
CONFIGURE_ARGS+=	--with-tmpdir=${AMANDA_TMP:Q}
CONFIGURE_ARGS+=	--with-gnutar-listdir=${AMANDA_VAR:Q}/gnutar-lists
CONFIGURE_ARGS+=	--with-amperldir=${AMPERLDIR:Q}
CONFIGURE_ARGS+=	--with-debugging=${VARBASE:Q}/log/amanda
CONFIGURE_ARGS+=	--with-user=${AMANDA_USER:Q}
CONFIGURE_ARGS+=	--with-group=${AMANDA_GROUP:Q}
CONFIGURE_ARGS+=	--with-owner=${REAL_ROOT_USER:Q}
CONFIGURE_ARGS+=	--with-index-server=localhost
CONFIGURE_ARGS+=	--with-tape-server=localhost
CONFIGURE_ARGS+=	--with-assertions
CONFIGURE_ARGS+=	--with-amandahosts
CONFIGURE_ARGS+=	--with-bsd-security
CONFIGURE_ARGS+=	--with-bsdtcp-security
CONFIGURE_ARGS+=	--with-bsdudp-security
CONFIGURE_ARGS+=	--with-dump-honor-nodump
CONFIGURE_ARGS+=	--disable-installperms
CONFIGURE_ARGS+=	--with-security-file=${PKG_SYSCONFDIR:Q}/amanda/amanda-security.conf

LDFLAGS.SunOS+=		-lsocket
LDFLAGS.NetBSD+=	-lutil

INSTALL_MAKE_FLAGS+=	SETUID_GROUP=${ROOT_GROUP}

AMPERLDIR=		${PREFIX:Q}/${PERL5_SUB_INSTALLVENDORLIB}

.include "../../sysutils/amanda-common/options.mk"

.PHONY: autogen
pre-configure: autogen
autogen:
	${RUN}${_ULIMIT_CMD} cd ${WRKSRC} &&				\
		${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV}		\
			autoreconf -fi

.PHONY: build-perl
post-build: build-perl
build-perl:
.if defined(PERL5_LIBS) && !empty(PERL5_LIBS)
	${RUN}${_ULIMIT_CMD} cd ${WRKSRC}/perl &&			\
		 ${BUILD_MAKE_CMD} ${PERL5_LIBS:@@lib@@lib${lib}.la@@}
.endif

.if defined(PERL5_MODS) && !empty(PERL5_MODS)
INSTALLATION_DIRS+=	${PERL5_MODS:H:@@_t_@@${PERL5_SUB_INSTALLVENDORLIB}/${_t_}@@}
.endif
.if defined(PERL5_LIBS)  && !empty(PERL5_LIBS)
INSTALLATION_DIRS+=	${PERL5_LIBS:@@_t_@@${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/${_t_}@@}
.endif

.PHONY: post-install-extra
post-install: post-install-extra
post-install-extra:
.if defined(PERL5_MODS) && !empty(PERL5_MODS)
.  for mod in ${PERL5_MODS}
	${INSTALL_DATA} ${WRKSRC}/perl/${mod}				\
		${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORLIB}/${mod}
.  endfor
.endif
.if defined(PERL5_LIBS)  && !empty(PERL5_LIBS)
.  for lib in ${PERL5_LIBS}
	${RUN}${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} \
	  ${WRAPPER_BINDIR}/libtool --mode=install ${INSTALL_LIB}	\
	    ${WRKSRC}/perl/lib${lib}.la					\
	    ${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/${lib}
.  endfor
.endif
.if defined(MANPAGES) && !empty(MANPAGES)
.  for manpage in ${MANPAGES}
	${INSTALL_MAN} ${WRKSRC}/man/${manpage}				\
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man${manpage:E}
.  endfor
.endif

.include "../../lang/perl5/module.mk"
.include "../../devel/glib2/buildlink3.mk"
@


1.47
log
@Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.46 2023/04/14 22:58:24 nia Exp $
d16 1
a16 1
HOMEPAGE=		http://www.amanda.org/
@


1.46
log
@amanda-common: Configure fixes

The configure script creates massive amounts of spam when using NetBSD's
sh due to the non-standard test(1) args.

For some reason, the test for compiler flag -msse4.2 is failing, even
though it's present in the cc -v --help output (is cwrappers doing
something strange?). For now, commit a workaround. The package is actually
doing runtime detection of SSE4.2 properly, but expects compiler support
for -msse4.2 to be provided on x86.

PR 57130
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.45 2019/11/04 21:28:40 rillig Exp $
d51 1
a51 1
BUILD_DEPENDS+=		gettext-tools-[0-9]*:../../devel/gettext-tools
@


1.45
log
@sysutils: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

Manually excluded consolekit and dc-tools since pkglint didn't get the
formatting correct.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.44 2018/11/25 20:20:57 spz Exp $
d64 8
@


1.45.28.1
log
@Pullup ticket #6755 - requested by nia
sysutils/amanda-common

Revisions pulled up:
- sysutils/amanda-common/Makefile.common                        1.46
- sysutils/amanda-common/distinfo                               1.26
- sysutils/amanda-common/patches/patch-config_amanda_libs.m4    1.1

---
   Module Name:	pkgsrc
   Committed By:	nia
   Date:		Fri Apr 14 22:58:24 UTC 2023

   Modified Files:
   	pkgsrc/sysutils/amanda-common: Makefile.common distinfo
   Added Files:
   	pkgsrc/sysutils/amanda-common/patches: patch-config_amanda_libs.m4

   Log Message:
   amanda-common: Configure fixes

   The configure script creates massive amounts of spam when using NetBSD's
   sh due to the non-standard test(1) args.

   For some reason, the test for compiler flag -msse4.2 is failing, even
   though it's present in the cc -v --help output (is cwrappers doing
   something strange?). For now, commit a workaround. The package is actually
   doing runtime detection of SSE4.2 properly, but expects compiler support
   for -msse4.2 to be provided on x86.

   PR 57130
@
text
@d1 1
a1 1
# $NetBSD$
a63 8

# I am not quite sure what is causing the test for -msse4.2 to fail
# (perhaps cwrappers?). It is basically grepping the output of
# "cc -v --help" which does in fact contain the correct value.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ENV+=		SSE42_CFLAGS=-msse4.2
.endif

@


1.44
log
@make amanda-security.conf be treated as a config file
make sure amanda finds amanda-security.conf in PKG_SYSCONFDIR
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.43 2018/07/04 13:40:36 jperkin Exp $
d59 1
a59 1
SUBST_SED.bool=	-e '/undef bool/d'
d109 1
a109 1
INSTALLATION_DIRS+= ${PERL5_MODS:H:@@_t_@@${PERL5_SUB_INSTALLVENDORLIB}/${_t_}@@}
d112 1
a112 1
INSTALLATION_DIRS+= ${PERL5_LIBS:@@_t_@@${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/${_t_}@@}
@


1.43
log
@*: Move SUBST_STAGE from post-patch to pre-configure

Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.42 2016/02/29 05:50:40 mlelstv Exp $
d82 1
@


1.42
log
@Add support for NetBSD wedge names.
Bump versions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.41 2015/11/25 12:53:29 jperkin Exp $
d57 1
a57 1
SUBST_STAGE.bool=	post-patch
@


1.41
log
@Remove mk/find-prefix.mk usage from the sysutils category.

The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.40 2014/09/25 21:47:06 jperkin Exp $
d84 1
@


1.40
log
@SunOS needs -lsocket.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.39 2014/06/10 15:51:37 gdt Exp $
d87 1
a87 1
AMPERLDIR=		${PERLDIR:Q}/${PERL5_SUB_INSTALLVENDORLIB}
d119 1
a119 1
		${DESTDIR}${PERLDIR}/${PERL5_SUB_INSTALLVENDORLIB}/${mod}
d127 1
a127 1
	    ${DESTDIR}${PERLDIR}/${PERL5_SUB_INSTALLVENDORLIB}/auto/Amanda/${lib}
@


1.39
log
@Move fix for swig/bool mess to Makefile.common.

With this, amanda-client, amanda-server and amanda-plot also build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.38 2013/01/23 17:58:19 wiz Exp $
d83 2
@


1.38
log
@Fix build with automake-1.13.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.37 2012/07/30 07:21:11 sbd Exp $
d55 6
@


1.37
log
@Update amanda to 3.3.1

Changes in release 3.3.1

   * amrecover
       o New 'settransalte' command.
   * amanda.conf
       o new '$s' substitution in autolabel.
       o new 'max-dle-by-volume' global option.
       o new 'eject-volume' global option.
   * diskfile
       o new 'includefile' option.
   * amcheck
       o new '--client-verbose' argument.
   * All programs have a new '--version' argument.
   * ampgsql can take property from server configuration.
   * amgetconf can print one property of a section.
   * s3 device
       o new S3_SERVER_SIDE_ENCRYPTION property.
       o use multiple thread to speedup deleting a volume.
   * Many bug fix.

Changes in release 3.3.0

   * The default auth is changed to "bsdtcp", if you are using the default bsd
     then you must add it to your configuration.
       o in amanda.conf
       o in amanda-client.conf
       o in dumptype/disklist
       o in xinetd (if no '-auth' argument to amandad)
   * amdump trap crtl-c, it still send the report and do cleanup if you do
     one crtl-c, do it more than once to abort the run.
   * s3 device
       o use multiple threads to speedup the transfer
       o can connect to eucalytus.
       o new NB_THREADS_BACKUP property
       o new NB_THREADS_RECOVERY property
       o new S3_HOST property
       o new S3_SERVICE_PATH property
       o new S3_SUBDOMAIN property
   * chg-aggregate: new changer that use other changer sequentially.
   * meta-volume
   * Add meta label in tapelist file
   * chg-disk:
       o support for removable disk
       o new NUM-SLOT property
       o new AUTO-CREATE-SLOT property
       o new REMOVABLE property
       o new MOUNT property
       o new UMOUNT property
       o new UMOUNT-LOCKFILE property
       o new UMOUNT-IDLE property
   * new taperscan algorithm:
       o oldest: this algorithm try to run through the volumes in the oldest
	 order
       o lexical: this algorithm try to run through the volumes in the natural
	 order
   * Change in amanda.conf
       o new meta-autolabel option
       o autolabel can include org, config, barcode, meta in the label
       o new client-name option in appication and script.
   * application and script in amanda-client.conf can be used to set default
     properties for application or script.
   * amlabel
       o The label argument is no longer required, an autolabel can be
	 generated
       o new --meta option
       o new --barcode option
       o new --assign option
   * amgtar, amstar: The path must be specified, it will not works with a
     device.
   * amrecover: decompression and decryption are now done on the client if
		compression/encryption was done on the client.
   * amtape: inventory print the current slot
   * amanda.conf:
       o autoflush have value "no|yes|all"
       o script have single-execution setting.
       o Add pre-amcheck, post-amcheck, pre-estimate, post-estimate, pre-backup
         and post-backup to execute-on of script.
       o Add taperscan and interactivity section.
       o add 'server' value in recovery-limit.
       o add dump-limit in a dumptype.
   * amanda-client.conf
       o add amdump-server setting.
   * script are searched in $APPLICATION_DIR, $CONFIG_DIR/<conf>/application
     and $CONFIG_DIR/application
   * amservice
       o add -s argument
       o is also installed on client
   * new amdumpd server service, if enable, it allow client to start a backup
     of itself.
   * new amdump_client program, it is use on client to start a backup of itself
   * implement restore command amzfs-sendrecv, it can be use with amrecover.

Changes in release 3.2.2

   * Do not restore the NUL padding bytes, some program fail with them.
   * Fix driver doing nothing if taper crash early.
   * Fix taperalog *FIT no going to second volume.
   * Fix amrestore '-p' not going to next file.
   * flush even if flush threshold are not met if it save tape space.
   * fix crash in amtrmidx due to memory leak.
   * amsamba use 'Use smbclient -TF' for restore.

Changes in release 3.2.1

   * barcode are added to the tapelist file.
   * Faster 'amadmin find', improve speed on many programs.
   * device-output-buffer-size default to a minimum of 4*block_size.
   * ssh auth use the client-port
   * Bug fixed:
      o "Can't opendata output stream: Connection refused".
      o Better handling of dump to tape.
      o Corrupted 'amdump' log file, amstatus not showing correct state.
      o Execute subprocess with the config overwrite.
      o tape-device allow to set LEOM.
      o Crash in robot changer.
      o Script output property are not sent to application.

Changes in release 3.2.0

   * Support for multiple simultaneous writes to storage devices
      o Can write to all available drives in parallel.
      o Works only with the new changer API.
      o Useful if two or more volumes are used in a single run.
      o dump direct to tape can be scheduled any time during the run,
        previously they were done sequencially after all dump to holding disk.
      o enabled with the new 'taper-parallel-write' configuration option.
   * Support for LEOM in storage devices
      o allows splitting without partial parts, saving space
      o much more efficient, since parts need not be cached on disk in most
        cases
   * new, simpler splitting commands in the tapetype section:
     part-size, part-cache-type, part-cache-dir, part-cache-max-size; see
     amanda.conf(5) for details
   * Amanda server configuration file changes (amanda.conf)
      o new configuration keyword:
         + taper-parallel-write -- How many drive amanda can write to
                                   in parallel.
      o deprecated configuration keywords:
         + amrecover_do_fsf
         + amrecover_check_label
   * the CONFIG parameter to amidxtaped is now required; this means that
     versions of amrecover older than 2.4.3 will be unable to recover from
     servers running Amanda-3.2 and later.
   * The new dumptype and global parameters 'recovery-limit' can be used to
     limit which hosts may recover from a particular DLE.  See amanda.conf(5)
     and amanda-auth(7) for more information.
   * Several old changers have been removed - these changers will work with
     Amanda for the forseeable future, but are no longer included in the
     distribution.
      o chg-chio
      o chg-chs
      o chg-iomega
      o chg-juke
      o chg-mcutil
      o chg-mtx
      o chg-null (use the new "chg-null:")
      o chg-rait (use the new "chg-rait:{dev1,dev2}")
      o chg-rth
      o chg-scsi-chio
      o chg-scsi
   * Amdump change:
      o new '--no-taper' option to start the run in degraded mode
   * Amvault is much improved, but still experimental:
      o supports assembling split parts on the source volume and re-splitting
        them on the destination
      o supports filtering dumps with the same syntax as amfetchdump
      o a --fulls-only option skips all incremental dumps on the source
      o an --export option tries to move tertiary volumes to import/export
        slots when completed
      o command-line syntax has changed incompatibly; see manpage or
        'amvault --help'
   * Rewritten and improved:
      o amoverview
      o amcheckdump

Changes in release 3.1.0

   * Deprecated old changers; see amanda-changers(7) for replacements.  These
     changers are still available in the distribution, but will be removed in a
     future release.
      o chg-null
      o chg-zd-mtx
      o chg-rait
      o chg-disk
      o chg-multi
   * Although chg-zd-mtx is still supported, we recommend that all users upgrade
     to the more efficient chg-robot.  See contrib/convert-zd-mtx-to-robot.sh
     for a useful conversion script.
   * Amanda server configuration file changes (amanda.conf)
      o deprecated configuration keywords:
	 + label_new_tapes
      o keywords deprecated in 2.6.1:
         + rawtapedev
	 + tapebufs
	 + file-pad
      o new configuration keyword
         + autolabel   -- replace label_new_tapes
         + columnspec  -- can specify a precision.
         + order       -- in script, to specify script order execution.
         + client_port -- in dumptype, to specify which port to connect on
                          the client.
         + estimate    -- in dumptype, can specify multiple estimate method.
      o accept 'define' keyword for defining an holdingdisk
   * Amanda client configuration file changes (amanda-client.conf)
      o new configuration keyword
         + debug_days  -- how many days to keep debug files.
         + client_port -- use by amrecover, specify which port to connect on
                          the server.
   * Removed compile-time default --with-changer-device: specify a device
     explicitly in amanda.conf instead
   * amtape behavior has changed:
      o 'device' subcommand removed
      o 'slot advance' subcommand removed
      o 'update' subcommand no longer displays each slot as it is updated, and
        is not supported by all changers
      o taperscan output has changed
      o new 'inventory' subcommand
   * amrmtape rewrite
      o use long option
         + --changer    -- Specify which changer to use
         + --cleanup    -- Remove logs and indexes associated with label
         + --dryrun     -- do not update the original copies.
         + --erase      -- Attempt to erase the data contained on the volume
         + --keep-label -- Do not remove label from the tapelist
         + --quiet      -- Opposite of --verbose
         + --verbose    -- List backups of hosts and disks that are being
                           discarded.
   * amdevcheck
      o new --label option.
      o new --properties option.
   * Device API
      o changed wildcard setting for S3_BUCKET_LOCATION from "" to "*"
      o new 'ndmp:' device to write to a tape on an ndmp server.
      o new 'dvdrw:' device to write to a dvd drive.
   * Application API
      o new properties to many applications
      o amgtar
         + new ACLS, SELINUX and XATTRS properties
      o amsamba
         + Allow '\' in diskname and amandapass.
         + new ALLOW-ANONYMOUS property.
      o new applications:
         + ampgsql  -- Backup PostgreSQL using continuous WAL archiving
         + amsuntar -- Backup filesytem with the SUN tar
         + amraw    -- Backup only one directory entry
   * New taper, with DirectTCP support, changed tape and catalog format:
      o all dumpfiles are now F_SPLIT_DUMPFILE
      o all on-tape dumpfiles have numparts=-1, since it's no longer possible
        to calculate this value in advance
      o there is no logging or reporting of zero-byte, successful parts (this
        may cause gaps in filenums in the catalog)
   * Redesigned amreport
      o much more natural command-line interface (just run 'amreport $config')
      o experimental XML output
   * configuration override for dumptype works with inheritance.

Changes in release 2.6.1p2
   * amtapetype: new -p option
   * Bugs fixed
      o S3 device driver
      o amcheckdump
      o file not removed from holding disk
      o sendbackup compatibility with a 2.4.2 server
      o handle EROFS error from tape device.
      o zfs snapshot name us the diskname.
      o fix fd allocation in amandad
      o crash in amflush

Changes in release 2.6.1p1

   * amplot: better output
   * Don't include genversion.h in distribution tarballs.
   * Bugs fixed
      o S3 device driver
      o rait device driver
      o amstatus
      o configure
      o application-api
      o compilation on some platform
      o others small bug

Changes in release 2.6.1

   * Amanda server configuration file changes (amanda.conf)
      o deprecated configuration keywords:
         + rawtapedev
	 + tapebufs
	 + file-pad
   * Application API: Allow to easily write wrappers around any backup program,
     See the 'amanda-applications' man page.
      o amgtar: Use GNU tar, it is a lot more configurable than the GNUTAR
        program. See 'amgtar' man page.
      o amstar: Use star to do a backup, it work only on a partition. See
        'amstar' man page.
      o amsamba: Use smbclient to backup a cifs share, see amsamba man page.
      o amzfs-sendrecv: Do a backup of a ZFS filesystem with 'zfs send'.
   * Script API: Allow to run script before and after amanda process, see the
     'amanda-scripts' man page.
      o amzfs-snapshot: Do a snapshot of a ZFS filesystem, then 'amgtar'
        application will backup the snapshot. See 'amzfs-snapshot' man page.
      o script-email: Simple script to send email. see 'script-email' man page.
   * Changer API v2.0: perl-based changer interface supporting concurrent
     use of multiple devices and changers.
      o currently operating in "compatibility mode," calling old changer
        shell scripts.
      o under active development.
   * Xfer API: generic library to move and filter data with maximal efficiency
      o can read from and write to arbitrary devices, files, etc.
      o only used in some applications.
   * Amanda archive format: A simple archive format that an application can
     use to create backup image.
   * 'amarchiver' program to manipulate file in amanda archive format.
   * Many improvements to report better error message to user.
   * amtape subcommands 'slot prev' and 'slot last' are removed.
   * Dozens more perl libraries, with more stable interfaces.
   * Many bugs fixed and improvement.
   * amgetconf '--client' option to retrieve config from
     amanda-client.conf on a client.
   * Amanda configuration file changes
       o new application-tool section
       o new script-tool section
       o new device section
       o new changer section

Changes in release 2.6.0

   * configure --disable-shared doesn't work because perl modules require
     shared libraries.  Use configure --with-static-binaries to build
     statically linked binaries.
   * 'amverify' and 'amverifyrun' are deprecated and replaced with the
     new, more flexible 'amcheckdump'
   * 'amdd' and 'ammt' are deprecated.
   * Some Amanda files are now installed in new "amanda/" subdirectories:
     libraries are now installed in $libdir/amanda and internal programs
     are now installed in $libexecdir/amanda.
   * The amandates file, previously at /etc/amandates, is now at
     $localstatedir/amanda/amandates.  You may want to move your existing
     /etc/amandates when you upgrade Amanda.
   * New 'amcryptsimple', 'amgpgcrypt' - encryption plugins based on gpg.
   * New 'amserverconfig', 'amaddclient' - Initial Amanda configuration tools
     these tools make assumptions, please see man page.
   * Many bugs fixed and code rewrite/cleanup
   * glib is required to compile and run amanda.
   * Device API: pluggable interface to storage devices, supporting tapes,
     vtapes, RAIT, and Amazon S3
   * New perl modules link directly to Amanda, to support writing Amanda
     applications in Perl. Perl module are installed by default in the perl
     installsitelib directory. It can be changed with
     'configure --with-amperldir'.
   * New 'local' security driver supports backups of the amanda server
     without any network connection or other configuration.
   * Almost 200 unit tests are available via 'make installcheck'.
   * Amanda configuration file changes
         o amanda.conf changes
               + flush-threshold-dumped
               + flush-threshold-scheduled
               + taperflush
               + device_property
               + usetimestamps default to yes
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.36 2012/07/30 07:04:29 sbd Exp $
d50 2
d88 1
a88 1
			${CONFIG_SHELL} ./autogen
@


1.36
log
@Add SPECIAL_PERMS entries for binaries the need special perms.
Because of the above change switch all amanda packages to user-destdir
support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.35 2012/07/30 07:03:04 sbd Exp $
d17 9
a25 1
LICENSE=		modified-bsd AND gnu-gpl-v2
d43 1
d48 4
a51 1
USE_TOOLS+=		gzip:run gtar:run
d60 1
a64 1
CONFIGURE_ARGS+=	--with-mmap
d77 2
d80 49
@


1.35
log
@+ Change the AMANADA_USER to 'amandabackup' to be consistent with other
  packages (and because I think its a good idea).
+ Set the AMANDA_USER's home directory to AMANDA_VAR.
+ Update the AMANDA_USER's gecos comment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.34 2012/07/30 07:02:17 sbd Exp $
d36 2
d61 3
@


1.34
log
@Add some new configure args to bring the config in-line with other binary
distributions:

	+ Add bsd-security, bsdtcp-security, bsdudp-security.
	+ Set default index and tape server to localhost
	+ Build with assertions.
	+ Use a debugging log directory (and add it to OWN_DIRS_PERMS
          in amanda-common)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.33 2012/07/30 07:00:12 sbd Exp $
d28 1
a28 1
AMANDA_USER?=		backup
@


1.33
log
@Miscellaneous makefile clean up.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.32 2012/07/30 06:57:21 sbd Exp $
d46 1
d51 3
d55 3
@


1.32
log
@Add a version.mk file with AMANDA_VERSION in it and use that in all amanda
packages (including the meta-package) and in the buildlink.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.31 2012/07/19 07:30:55 sbd Exp $
d34 1
a34 1
BUILD_DEFS+=		AMANDA_TMP AMANDA_VAR VARBASE
d37 1
d39 1
a39 1
USE_TOOLS+=		gzip:run gtar:run
d42 4
a45 2

GNU_CONFIGURE=		yes
a50 3
CONFIGURE_ARGS+=	--with-tmpdir=${AMANDA_TMP:Q}
CONFIGURE_ARGS+=	--localstatedir=${AMANDA_VAR:Q}
CONFIGURE_ARGS+=	--with-gnutar-listdir=${AMANDA_VAR}/gnutar-lists
a51 1
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
@


1.31
log
@Correctly set Amanda license.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.30 2012/05/20 11:13:35 sbd Exp $
d8 4
a11 2
VERS=			2.5.2p1
DISTNAME?=		amanda-${VERS}
@


1.30
log
@Convert AMANDA_SSH and AMANFA_FQDN to pkg options and enable amanda-ssh.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.29 2010/02/19 18:55:56 joerg Exp $
d15 1
a15 1
LICENSE=		modified-bsd # basically equivalent
@


1.29
log
@Use REAL_ROOT_USER here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.28 2009/12/14 23:33:01 heinz Exp $
a51 10
BUILD_DEFS+=		AMANDA_SSH AMANDA_FQDN

.if defined(AMANDA_FQDN) && !empty(AMANDA_FQDN:M[yY][eE][sS])
CONFIGURE_ARGS+=	--with-fqdn
.endif

.if defined(AMANDA_SSH) && !empty(AMANDA_SSH:M[yY][eE][sS])
CONFIGURE_ARGS+=	--with-ssh-security
.endif

@


1.28
log
@LICENSE for the Amanda packages is basically the same as modified-bsd.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.27 2008/07/29 17:21:39 pgoyette Exp $
d43 1
a43 1
CONFIGURE_ARGS+=	--with-owner=${ROOT_USER:Q}
@


1.27
log
@Disable IPv6 by default, since this doesn't work on systems which are
configured for IPv4 only.  IPv6 can still be enabled via PKG_OPTIONS.

Fixes my PR pkg/38957

ok gdt@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.26 2008/02/15 16:23:09 gdt Exp $
d15 1
@


1.26
log
@Update to 2.5.2p1, provided by Nick Goffee of BBN.

[bugfixes and minor improvements omitted; see NEWS]

Changes in release 2.5.2

   * krb5 auth is working
   * Works with IPv6 address
   * Amanda configuration file changes
         o amanda.conf changes
               + debugging is enabled in the config file
                 see all debug_* config option
               + tapetype 'readblocksize', if maxtapeblocksize is set too
                 larger for your hardware
   * Amanda command changes
         o amadmin: new 'holding list' and 'holding delete' subcommand.

Changes in release 2.5.1p3

   * Works with tar-1.16 and exit status of 1.

Changes in release 2.5.1p2

   * amoverview is working
   * dumptype starttime is working

   * Amanda command changes
         o amtape accept the -o arguments
         o amgetconf --list to list all tapetype, dumptype, holdingdisk
           or interface
         o amgetconf can return a value of a specific tapetype, dumptype,
           holdingdisk or interface

Changes in release 2.5.1p1

   * Remove contrib/sst.

Changes in release 2.5.1

   * Defects found by Coverity scan and Klocwork K7 analysis tools fixed.
   * Works with GNU tar 1.15.91 - work with new gtar state file format.
   * Open SSL encryption support
   * Two new authentication methods: bsdtcp, bsdudp.
   * Unlimited number of DLEs on a client with bsdtcp, rsh and ssh
     authentication methods.
   * Recovery process amrecover uses Secure API. amoldrecover command
     (same syntax and functionality as amrecover command) is provided for
     compatibility with old Amanda releases. amoldrecover command uses old
     amidxtaped/amindexd protocol.
   * Amanda debug files are separated into client/server/amandad and
     are also classified based on Amanda configuration name.

   * Amanda command changes
         o amfetchdump -o is replaced by -O.
         o amcheck -w option does all tests including the tape writable test.
           Use amcheck -t -w to do only the tape writable test.
         o -o command option to override Amanda configuration. See amanda man
           page for details.
         o amgetconf command doesn't write the BUGGY message when a entry
           is not found in the configuration file.

   * Amanda configuration file changes
         o amanda.conf changes
               + amrecover_do_fsf in amanda.conf defaults to yes
               + amrecover_check_label in amanda.conf defaults to yes
               + usetimestamps in amanda.conf to support multiple
                 backup runs in a calendar day.
               + holdingdisk in amanda.conf supports new values:
                 NEVER, AUTO, REQUIRED.
               + amandad_path, client_username and ssh_keys in
                 amanda.conf for ssh/rsh authentication.
         o New amanda client configuration file - amanda-client.conf.
           Different client configuration file can be used for each Amanda
           configuration.
               + gnutar_list-dir and amandates can be specified in
                 Amanda client configuration file - amanda-client.conf
         o .amandahosts format changes to allow use of secure API for recovery.
         o Amanda service entries in xinetd configuration has changed.

Changes in release 2.5.0p1

* Add the 'amtape update' command.

Changes in release 2.5.0

* Communication security/authentication: Kerberos 4/5, OpenSSH
* Data security: Symmetric/Assymetric encrytion algorithms (aesutil
  and gpg encryption),  Encryption can be done on server or client,
  Custom encryption utilities can be used.
* Compression: Ability to add custom compression tools. This is a
  really useful feature especially since it can specified for a DLE.  You
  can use different compression algorithm for images, binaries, ascii files
  and so on.
* Dump images spanning multiple media volumes - Dump images are no
  longer restricted to a single media volume (tape or vtape).  Data restoration
  can be done using amrecover and amfetchdump commands.
* Auto tape labelling - This optional feature is good for disk backups.

Change in release 2.4.5

* new displayunit global option to select the unit use to display number
  k=kilo, m=mega, g=giga, t=tera.
* new amoverview -skipmissed option.

Change in release 2.4.5b1

* holding disk disk use timestamped directory.
* autoflush flush today's dump.
* new bumppercent global option, this should improve bumping criteria,
  the bumpsize is set to a fixed value which can be adequate for small
  and large disk.
* bumpsize, bumppercent, bumpdays and bumpmult can be in a dumptype.
* calcsize support include and exclude like gnutar.
* new 'estimate' dumptype option to select estimate type:
    CLIENT: estimate by the dumping program.
    CALCSIZE: estimate by the calcsize program, a lot faster but less acurate.
    SERVER: estimate based on statistic from previous run, take second but
            can be wrong on the estimate size.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.25 2007/07/04 20:54:59 jlam Exp $
d60 2
@


1.25
log
@Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
@
text
@d1 1
a1 4
# $NetBSD: Makefile.common,v 1.24 2007/01/05 12:47:27 obache Exp $
#
# common make file fragment shared by all amanda-* pkgs.
#
d3 6
a8 1
VERS=			2.4.4p4
d31 1
a31 1
BUILD_DEFS+=		AMANDA_SMB AMANDA_TMP AMANDA_VAR VARBASE
d50 10
@


1.24
log
@Use MASTER_SITE_SOURCEFORGE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.23 2006/10/02 21:05:44 rillig Exp $
d27 3
a29 2
BUILD_DEFS+=		AMANDA_USER AMANDA_GROUP AMANDA_SMB
BUILD_DEFS+=		AMANDA_TMP AMANDA_VAR VARBASE
@


1.23
log
@Fixed pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.22 2006/07/19 19:14:39 jlam Exp $
d9 1
a9 1
MASTER_SITES?=		http://download.sourceforge.net/amanda/
@


1.22
log
@Drop support for LTCONFIG_OVERRIDE.  For quite a long time, pkgsrc
had actually been ignoring LTCONFIG_OVERRIDE anyway and just using
the default LIBTOOL_OVERRIDE to replace libtool scripts in packages.
This just formalizes the fact that LTCONFIG_OVERRIDE is not used
meaningfully by pkgsrc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.21 2006/05/26 13:19:38 joerg Exp $
d6 4
a9 4
VERS=                   2.4.4p4
DISTNAME?=              amanda-${VERS}
CATEGORIES=             sysutils
MASTER_SITES?=          http://download.sourceforge.net/amanda/
d11 4
a14 2
MAINTAINER=             pkgsrc-users@@NetBSD.org
HOMEPAGE=               http://www.amanda.org/
d28 1
a28 1
BUILD_DEFS+=		AMANDA_TMP AMANDA_VAR
@


1.21
log
@Remove explicit GNU tar dependency. It is an unnecessary alternative
and the tools framework already does the right thing. Bump revisions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.20 2006/03/04 21:30:40 jlam Exp $
a28 1
LTCONFIG_OVERRIDE=	${WRKSRC}/config/ltconfig
@


1.20
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.19 2005/12/05 23:55:19 rillig Exp $
a33 1
TOOLS_DEPENDS.gtar=	{gtar,gtar-base}>=1.12:../../archivers/gtar-base
@


1.19
log
@Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.18 2005/12/05 20:50:59 rillig Exp $
d11 1
a11 1
MAINTAINER=             tech-pkg@@NetBSD.org
@


1.18
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.17 2005/08/02 09:26:06 seb Exp $
d37 3
a39 3
CONFIGURE_ARGS+=	--with-user=${AMANDA_USER}
CONFIGURE_ARGS+=	--with-group=${AMANDA_GROUP}
CONFIGURE_ARGS+=	--with-owner=${ROOT_USER}
d42 2
a43 2
CONFIGURE_ARGS+=	--with-tmpdir=${AMANDA_TMP}
CONFIGURE_ARGS+=	--localstatedir=${AMANDA_VAR}
d46 1
a46 1
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
@


1.17
log
@Prevent paths of the build directories from being included in all amanda
packages. Set runtime dependencies on GNU tar and gzip for all amanda
packages.

Bump PKGREVISIONs to 1 for amanda-client and amanda-plot, to 2 for
amanda-common and amanda-server.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.16 2004/12/28 09:10:50 minskim Exp $
d32 2
a33 2
CONFIGURE_ENV+=		ac_cv_path_GZIP=${TOOLS_GZIP_CMD}
CONFIGURE_ENV+=		GNUTAR=${TOOLS_GTAR}
@


1.16
log
@Use VARBASE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.15 2004/12/28 09:06:42 minskim Exp $
d31 5
@


1.15
log
@Use ROOT_USER instead of hardcoding root.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.14 2004/11/20 23:10:32 kim Exp $
d23 1
a23 1
AMANDA_VAR?=		/var/amanda
@


1.14
log
@Add AMANDA_TMP
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.13 2004/11/12 12:13:44 mjl Exp $
d34 1
a34 1
CONFIGURE_ARGS+=	--with-owner=root
@


1.13
log
@Update amanda to 2.4.4p4

Bug fix release and minor improvements:

new chg-iomega changer script.
amanda will not use a tape if it's label is not in the tapelist file.
amflush.c: Don't start a driver if nothing to flush.
amadmin.c: Call check_dumpuser() as soon as posible.
amadmin.c: Don't core dump if DUMPCYLE is too  big.
dumper.c: Parse warning message.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.12 2004/05/12 18:45:25 bouyer Exp $
d22 1
d25 2
a26 1
BUILD_DEFS+=		AMANDA_USER AMANDA_GROUP AMANDA_SMB AMANDA_VAR
d37 1
@


1.12
log
@Update the amanda packages to 2.4.4p2. From Paul Shupak in pkg/24550,
with some additionnal fixes by me.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.11 2004/02/14 15:29:15 jlam Exp $
d6 1
a6 1
VERS=                   2.4.4p2
@


1.11
log
@CONFIG_{GUESS,SUB}_OVERRIDE are now relative to ${WRKSRC} and will
automatically substitute for any config.{guess,sub} files found up to a
directory depth of 2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.10 2002/10/20 03:20:34 grant Exp $
d6 8
@


1.10
log
@honour PKG_SYSCONFDIR.

fixes pkg/18530 from Hauke Fath <hf@@tangro.de>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2002/09/05 18:07:54 jschauma Exp $
a19 2
CONFIG_GUESS_OVERRIDE=	${WRKSRC}/config/config.guess
CONFIG_SUB_OVERRIDE=	${WRKSRC}/config/config.sub
@


1.9
log
@Changes to make amanda* work nicely on Linux:
 - do not depend on gtar; GNU/Linux tar is gtar, obviously
 - set AMANDA_GROUP as on NetBSD and Darwin
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2002/08/25 21:50:54 jlam Exp $
d32 1
@


1.8
log
@Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6.2.1 2002/08/25 21:21:20 jlam Exp $
d6 1
a6 3
.if ${OPSYS} == "NetBSD"
AMANDA_GROUP?=		operator
.elif ${OPSYS} == "SunOS"
d8 2
a9 1
.elif ${OPSYS} == "Darwin"
@


1.7
log
@Add a default AMANDA_GROUP for Darwin, and use canonical pkgsrc
config.guess and config.sub. Noted by Randy Beaudreault
<maccult@@pacbell.net> in private mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6 2001/10/19 09:44:10 veego Exp $
@


1.6
log
@Use AMANDA_GROUP?= instead of AMANDA_GROUP=, so you can overwrite the
default amanda group.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.5 2001/06/14 21:54:36 jlam Exp $
d10 2
d21 2
@


1.6.2.1
log
@Merge changes in the main trunk into the buildlink2 branch for those
packages that have been converted to USE_BUILDLINK2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2002/07/21 19:07:32 schmonz Exp $
a9 2
.elif ${OPSYS} == "Darwin"
AMANDA_GROUP?=		operator
a18 2
CONFIG_GUESS_OVERRIDE=	${WRKSRC}/config/config.guess
CONFIG_SUB_OVERRIDE=	${WRKSRC}/config/config.sub
@


1.5
log
@- Migrate BUILD_DEFS to Makefile.common
- Apply the patch from pkg/13188 by Ron Roskens <roskens@@elfin.net> to
  fix problems with hard-coding /var/amanda.
- Remove USE_X11 from amanda-server since amanda-plot has already been
  split out.
- Don't explicitly look for headers in ${PREFIX}/include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2000/09/15 15:59:33 skrll Exp $
d7 1
a7 1
AMANDA_GROUP=		operator
d9 1
a9 1
AMANDA_GROUP=		sysadmin
@


1.4
log
@Use pkgsrc libtool not internal one.
Remove unnecessary versionsuffix dependency on libamclient.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2000/08/17 02:26:29 wiz Exp $
d15 2
d19 1
d21 8
a28 9
CONFIGURE_ARGS+=	--with-user=${AMANDA_USER} \
			--with-group=${AMANDA_GROUP} \
			--with-owner=root \
			--with-mmap --with-amandahosts \
			--with-includes=${PREFIX}/include \
			--with-libraries=${PREFIX}/lib \
			--localstatedir=${AMANDA_VAR} \
			--with-gnutar-listdir=${AMANDA_VAR}/gnutar-lists \
			--with-dump-honor-nodump
@


1.3
log
@USE_PKGLIBTOOL -> USE_LIBTOOL.
While I'm here, convert it from addnerd to user.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.2 2000/06/01 11:23:41 rh Exp $
d16 1
@


1.2
log
@s/USE_LIBTOOL/USE_PKGLIBTOOL/
Add a new USE_LIBTOOL definition that uses the libtool package instead of
pkglibtool which is now considered outdated.
USE_PKGLIBTOOL is available for backwards compatibility with old packages
but is deprecated for new packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.1 1999/09/06 19:30:20 bad Exp $
d15 1
a15 1
USE_PKGLIBTOOL=		yes
@


1.1
log
@Split out the common code in the amanda make files into
amanda-common/Makefile.common.
@
text
@d1 1
a1 1
# $NetBSD$
d15 1
a15 1
USE_LIBTOOL=		yes
@

