[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / dbus

File: [cvs.NetBSD.org] / pkgsrc / sysutils / dbus / Makefile (download)

Revision 1.40, Wed Jan 7 19:11:36 2009 UTC (15 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.39: +3 -3 lines

Update to 1.2.4.2 on the "permissive" branch.

This addresses the security problem CVE-2008-4311. For more
details, read
http://lists.freedesktop.org/archives/dbus/2008-December/010769.html

# $NetBSD: Makefile,v 1.40 2009/01/07 19:11:36 wiz Exp $

DISTNAME=	dbus-1.2.4.2permissive
PKGNAME=	dbus-1.2.4.2
CATEGORIES=	sysutils
MASTER_SITES=	http://dbus.freedesktop.org/releases/dbus/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.freedesktop.org/Software/dbus
COMMENT=	Message bus system

PKG_DESTDIR_SUPPORT=	user-destdir

CONFLICTS+=	dbus-glib<0.71
CONFLICTS+=	py*-dbus<0.71

GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake msgfmt pkg-config
USE_LIBTOOL=		YES

PKGCONFIG_OVERRIDE=	dbus-1.pc.in

PKG_DESTDIR_SUPPORT=	user-destdir

BUILD_DEFS+=		VARBASE

OWN_DIRS_PERMS+=	${VARBASE}/db/dbus ${DBUS_USER} ${DBUS_GROUP} 0755

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

CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

#CFLAGS.NetBSD+=		-D_NETBSD_SOURCE

CONFIGURE_ARGS_GROUPS=	enable disable with without

.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-session-socket-dir=/tmp
.endif

CONFIGURE_ARGS.Linux=	abstract-sockets dnotify selinux
CONFIGURE_ARGS.docs=	doxygen-docs xml-docs

CONFIGURE_ARGS.disable=		ansi gcov
CONFIGURE_ARGS.disable+=	console-owner-file
CONFIGURE_ARGS.disable+=	${CONFIGURE_ARGS.docs}
CONFIGURE_ARGS.enable=		checks static
###
### XXX the spawn test hangs, and some of these tests may be bogus
###
#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
#PKG_OPTIONS.dbus+=		debug
#TEST_TARGET=			check
#.endif

CONFIGURE_ARGS.with=	dbus-user=${DBUS_USER}
CONFIGURE_ARGS.with+=	test-socket-dir=${WRKDIR:Q}
CONFIGURE_ARGS.with+=	xml=expat

PTHREAD_AUTO_VARS=	yes

.if ${OPSYS} != "Linux"
CONFIGURE_ARGS.disable+=\
			${CONFIGURE_ARGS.Linux}
.endif

CONFIGURE_ARGS+=\
	${CONFIGURE_ARGS_GROUPS:@.g.@			\
		${CONFIGURE_ARGS.${.g.}:@.a.@		\
			--${.g.}-${.a.}			\
		@}					\
	@:M*}

MAKE_DIRS=		${PKG_SYSCONFDIR}/dbus-1/event.d
MAKE_DIRS+=		${PKG_SYSCONFDIR}/dbus-1/system.d
MAKE_DIRS+=		${PKG_SYSCONFDIR}/dbus-1/session.d

EGDIR=			${PREFIX}/share/examples/dbus
CONF_FILES=	${EGDIR}/session.conf ${PKG_SYSCONFDIR}/dbus-1/session.conf
CONF_FILES+=	${EGDIR}/system.conf ${PKG_SYSCONFDIR}/dbus-1/system.conf

RCD_SCRIPTS=		dbus

PKG_GROUPS_VARS+=	DBUS_GROUP
PKG_USERS_VARS+=	DBUS_USER

PKG_GROUPS=		${DBUS_GROUP}
PKG_USERS=		${DBUS_USER}:${DBUS_GROUP}
PKG_GECOS.${DBUS_USER}=	System message bus
PKG_HOME.${DBUS_USER}=	${VARBASE}/run/dbus

FILES_SUBST+=		DBUS_USER=${DBUS_USER}
FILES_SUBST+=		DBUS_GROUP=${DBUS_GROUP}

BUILDLINK_TRANSFORM+=	rm:-Wl,--gc-sections

.include "options.mk"

post-install:
	${INSTALL_DATA} ${WRKSRC}/bus/rc.messagebus \
		${DESTDIR}${PREFIX}/share/examples/rc.d/rc.messagebus.slackware
	${INSTALL_DATA} ${WRKSRC}/bus/messagebus \
		${DESTDIR}${PREFIX}/share/examples/rc.d/messagebus.redhat

.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"