da4f7e4860
directory in their OS for probably some twenty years. Use /var instead. In particular, fix the defaults for CNF_INFOFILE, CNF_LOGDIR, and CNF_INDEXDIR to use the configured LOCALSTATEDIR, which in pkgsrc will be ${VARBASE}/amanda, instead of hardwiring /usr/adm/amanda. PR 38958. PKGREVISION -> 9.
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.72 2015/08/09 22:50:09 dholland Exp $
|
|
|
|
PKGNAME= amanda-common-${AMANDA_VERSION}
|
|
PKGREVISION= 9
|
|
|
|
COMMENT= Common libraries and binaries for Amanda
|
|
|
|
# genversion.c:37:10: fatal error: 'genversion.h' file not found
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.include "../../sysutils/amanda-common/Makefile.common"
|
|
|
|
CPPFLAGS.SunOS+= -D_LARGEFILE64_SOURCE
|
|
LDFLAGS.SunOS+= -lsocket
|
|
|
|
CONFIGURE_ARGS+= --without-server --without-client --without-gnuplot
|
|
|
|
PKG_GROUPS= ${AMANDA_GROUP}
|
|
PKG_USERS= ${AMANDA_USER}:${AMANDA_GROUP}
|
|
|
|
PKG_GECOS.${AMANDA_USER}= Amanda backup user
|
|
PKG_SHELL.${AMANDA_USER}= ${SH}
|
|
PKG_HOME.${AMANDA_USER}= ${AMANDA_VAR}
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/amanda
|
|
OWN_DIRS_PERMS= ${AMANDA_VAR} ${AMANDA_USER} ${AMANDA_GROUP} 0750
|
|
OWN_DIRS_PERMS+= ${AMANDA_VAR}/gnutar-lists ${AMANDA_USER} ${AMANDA_GROUP} 0750
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/amanda ${AMANDA_USER} ${AMANDA_GROUP} 0750
|
|
|
|
CONF_FILES_PERMS= ${PREFIX}/share/doc/amanda/example/amanda-client.conf \
|
|
${PKG_SYSCONFDIR}/amanda/amanda-client.conf \
|
|
${AMANDA_USER} ${AMANDA_GROUP} 0600
|
|
|
|
REQD_FILES_PERMS+= /dev/null ${AMANDA_VAR}/amandates ${AMANDA_USER} ${AMANDA_GROUP} 0640
|
|
|
|
SPECIAL_PERMS+= sbin/amservice ${AM_PROG_PERMS}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|