2019-02-07 12:29:31 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.68 2019/02/07 11:29:31 markd Exp $
|
2009-01-12 18:37:10 +01:00
|
|
|
#
|
|
|
|
# used by sysutils/bacula-clientonly/Makefile
|
|
|
|
# used by sysutils/bacula-tray-monitor/Makefile
|
2019-02-07 12:29:31 +01:00
|
|
|
# used by sysutils/bacula-tray-monitor-qt5/Makefile
|
2014-10-05 18:41:05 +02:00
|
|
|
# used by sysutils/bacula-qt-console/Makefile
|
2019-02-07 12:29:31 +01:00
|
|
|
# used by sysutils/bacula-qt5-console/Makefile
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2019-02-07 12:29:31 +01:00
|
|
|
DISTNAME= bacula-9.4.1
|
2010-03-09 08:06:00 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bacula/}
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2010-03-09 08:06:00 +01:00
|
|
|
#PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=bacula/}
|
2009-01-06 12:29:26 +01:00
|
|
|
#PATCHFILES=
|
2010-03-09 08:06:00 +01:00
|
|
|
#DIST_SUBDIR= ${DISTNAME}
|
2008-07-10 15:54:56 +02:00
|
|
|
|
2007-01-04 13:29:26 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-11-06 17:17:38 +01:00
|
|
|
HOMEPAGE= http://www.bacula.org/
|
2005-11-18 08:21:04 +01:00
|
|
|
COMMENT?= The Network Backup Solution
|
2013-03-04 22:57:21 +01:00
|
|
|
LICENSE= gnu-agpl-v3
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2006-07-22 06:46:13 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2009-05-15 12:29:05 +02:00
|
|
|
USE_LIBTOOL= yes
|
2004-11-06 17:17:38 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2008-11-21 15:09:30 +01:00
|
|
|
USE_TOOLS+= msgfmt
|
2004-11-06 17:17:38 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-01-19 12:48:15 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-10-31 10:45:47 +01:00
|
|
|
BACULA_GROUP?= bacula
|
|
|
|
BACULA_DIR_USER?= bacula-dir
|
|
|
|
BACULA_SD_USER?= bacula-sd
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= BACULA_GROUP
|
2010-12-26 19:39:45 +01:00
|
|
|
PKG_USERS_VARS= BACULA_DIR_USER BACULA_SD_USER
|
2007-07-04 22:54:31 +02:00
|
|
|
|
2004-11-06 17:17:38 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= bacula
|
2005-10-31 10:52:22 +01:00
|
|
|
BACULA_PIDDIR?= ${VARBASE}/run
|
2004-12-14 15:51:07 +01:00
|
|
|
BACULA_WORKINGDIR?= ${VARBASE}/spool/bacula
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2007-01-19 12:48:15 +01:00
|
|
|
BUILD_DEFS+= VARBASE BACULA_PIDDIR BACULA_WORKINGDIR
|
|
|
|
|
2008-11-21 15:09:30 +01:00
|
|
|
FILES_SUBST+= BACULA_ETCDIR=${PKG_SYSCONFDIR}
|
|
|
|
FILES_SUBST+= BACULA_PIDDIR=${BACULA_PIDDIR}
|
|
|
|
FILES_SUBST+= BACULA_GROUP=${BACULA_GROUP}
|
|
|
|
FILES_SUBST+= BACULA_DIR_USER=${BACULA_DIR_USER}
|
|
|
|
FILES_SUBST+= BACULA_SD_USER=${BACULA_SD_USER}
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2005-12-08 02:04:44 +01:00
|
|
|
SUBST_CLASSES+= egdir
|
2012-04-07 21:35:48 +02:00
|
|
|
SUBST_STAGE.egdir= pre-configure
|
2005-12-08 02:04:44 +01:00
|
|
|
SUBST_FILES.egdir= src/dird/Makefile.in
|
|
|
|
SUBST_FILES.egdir+= src/console/Makefile.in
|
|
|
|
SUBST_FILES.egdir+= src/filed/Makefile.in
|
|
|
|
SUBST_FILES.egdir+= src/stored/Makefile.in
|
|
|
|
SUBST_SED.egdir= -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g'
|
|
|
|
|
2015-06-22 18:50:38 +02:00
|
|
|
SUBST_CLASSES+= fixwrap
|
|
|
|
SUBST_STAGE.fixwrap= post-build
|
|
|
|
SUBST_FILES.fixwrap= scripts/bacula_config
|
|
|
|
SUBST_SED.fixwrap= -e "s,${WRAPPER_BINDIR}/g++,${CXXPATH},g"
|
|
|
|
|
2008-11-21 15:09:30 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2004-11-06 17:17:38 +01:00
|
|
|
CONFIGURE_ARGS+= --with-scriptdir=${PREFIX}/libexec/bacula
|
2005-10-31 10:52:22 +01:00
|
|
|
CONFIGURE_ARGS+= --with-sbin-perm=0755
|
2008-11-21 15:09:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-working-dir=${BACULA_WORKINGDIR}
|
|
|
|
CONFIGURE_ARGS+= --with-pid-dir=${BACULA_PIDDIR}
|
2013-07-15 04:02:17 +02:00
|
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.editlinereadline}/include/readline
|
2005-10-31 10:45:47 +01:00
|
|
|
|
2016-02-26 11:24:10 +01:00
|
|
|
CONFIGURE_ARGS.Linux+= --enable-smartalloc
|
|
|
|
|
|
|
|
CONFIGURE_ARGS.DragonFly+= --disable-xattr
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2004-12-18 21:58:30 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2005-10-31 10:45:47 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/bacula
|
2013-11-06 17:00:05 +01:00
|
|
|
INSTALLATION_DIRS+= ${EXAMPLESDIR}
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2013-07-15 04:02:17 +02:00
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
2019-02-07 12:29:31 +01:00
|
|
|
.include "../../archivers/lzo/buildlink3.mk"
|
2004-11-06 17:17:38 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|