GARNAME = dhcdbd
GARVERSION = 1.14
CATEGORIES = bootstrap
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
PATCHFILES = makefile-fix.diff

MASTER_SITES = http://people.redhat.com/jvdias/dhcdbd/

DESCRIPTION = bootstrap
define BLURB
 #FIXME: blurb goes here
endef

BUILD_SCRIPTS = custom
INSTALL_SCRIPTS = custom

include ../category.mk

dbus_includes=`pkg-config dbus-1 --cflags`
dbus_libs=`pkg-config dbus-1 --libs`

build-custom:
	DBUS_INCLUDES=$(dbus_includes) DBUS_LIBS=$(dbus_libs) CC="$(CC)" $(MAKE) -C $(WORKSRC);
	$(MAKECOOKIE)

install-custom:
	DESTDIR=$(prefix) $(MAKE) -C $(WORKSRC) install;
	$(MAKECOOKIE)

uninstall:
	rm -f $(sbindir)/dhcdbd
	rm -f $(sysconfdir)/dbus-1/system.d/dhcdbd.conf
	rm -f $(sharedstatedir)/dbus-1/services/dhcdbd.service
	rm -rf cookies/main.d/install*
