blob: c4b5ff047d4ba444962d44c668b775d94d06c56c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.59 2012/10/03 21:57:35 wiz Exp $
PKGNAME= amanda-common-${AMANDA_VERSION}
PKGREVISION= 2
SVR4_PKGNAME= amaco
COMMENT= Common libraries and binaries for Amanda
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/amanda-common/Makefile.common"
.if ${OPSYS} == "SunOS"
CPPFLAGS+= -D_LARGEFILE64_SOURCE
.endif
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"
|