GARNAME = PolicyKit
GARVERSION = 0.8
CATEGORIES = freedesktop
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

MASTER_SITES = http://hal.freedesktop.org/releases/

LIBDEPS =  freedesktop/dbus

DESCRIPTION = PolicyKit
define BLURB
PolicyKit is a framework for defining policy for system-wide components and
for desktop pieces to configure it. It is used by HAL.
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS) --with-pam-module-dir=$(libdir)/security

include ../category.mk 

# "Cowardly refusing to install with --enable-tests." it said...
CONFIGURE_ARGS := $(shell echo $(CONFIGURE_ARGS) | sed 's,--enable-debug,--disable-debug,')
CONFIGURE_ARGS := $(shell echo $(CONFIGURE_ARGS) | sed 's,--enable-tests,--disable-tests,')

post-install:
	@echo ""
	@echo "   GARNOME will *not* install files into system directories."
	@echo "   To complete installation a soft link must be created:"
	@echo "      ln -s $(libdir)/security/pam_polkit_console.so /lib/security/ "
	@$(MAKECOOKIE)
