Patch from Geert Hendrickx for ideas from Sergey Svishchev:

Change BACULA_PIDDIR from /var/run/bacula to /var/run.
Add CONFIGURE_ARGS+=--with-sbin-perm=0755.
Remove tcp_wrappers bl3.mk, configure doesn't check for it,
and even if explicitly enabled, build breaks.

Ride recent PKGREVISION bump.
This commit is contained in:
wiz 2005-10-31 09:52:22 +00:00
parent c6348f404b
commit c03963bdea

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.13 2005/10/31 09:45:47 wiz Exp $
# $NetBSD: Makefile.common,v 1.14 2005/10/31 09:52:22 wiz Exp $
DISTNAME= bacula-1.36.3
CATEGORIES= sysutils
@ -20,10 +20,9 @@ BACULA_SD_USER?= bacula-sd
BUILD_DEFS= BACULA_DIR_USER BACULA_SD_USER BACULA_GROUP
PKG_SYSCONFSUBDIR?= bacula
BACULA_PIDDIR?= ${VARBASE}/run/bacula
BACULA_PIDDIR?= ${VARBASE}/run
BACULA_WORKINGDIR?= ${VARBASE}/spool/bacula
OWN_DIRS_PERMS= ${BACULA_PIDDIR} root ${BACULA_GROUP} 770
OWN_DIRS_PERMS+= ${BACULA_WORKINGDIR} root ${BACULA_GROUP} 770
FILES_SUBST+= BACULA_ETCDIR=${PKG_SYSCONFDIR}
@ -34,6 +33,7 @@ FILES_SUBST+= BACULA_SD_USER=${BACULA_SD_USER}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-scriptdir=${PREFIX}/libexec/bacula
CONFIGURE_ARGS+= --with-sbin-perm=0755
CONFIGURE_ARGS+= --with-working-dir=${BACULA_WORKINGDIR}
CONFIGURE_ARGS+= --with-pid-dir=${BACULA_PIDDIR}
CONFIGURE_ARGS+= --with-readline=${PREFIX}/include/readline
@ -56,5 +56,4 @@ pre-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"