DESCRIPTION = "ctrlproxy is an IRC server with multiserver support."
SECTION = "console/network"
PRIORITY = "optional"
DEPENDS = "glib-2.0 libxml2 popt libpcre openssl"
PR = "r1"
LICENSE = "GPL"

SRC_URI = "http://sources.nslu2-linux.org/sources/ctrlproxy-2.6.2.tar.gz"
S = "${WORKDIR}/ctrlproxy-2.6.2/"

inherit autotools
# update-rc.d

#INITSCRIPT_NAME = "ctrlproxy"
#INITSCRIPT_PARAMS = "defaults 84"
# CONFFILES_${PN} = "${sysconfdir}/foo.conf"

# To fix this error in autotools_do_configure (which arises after a
# change to pkg-config pkg.m4):
#configure:314: error: possibly undefined macro: PKG_LIBS
do_configure() {
	oe_runconf
}

CFLAGS += "-L${STAGING_LIBDIR}"

#do_install() {
#	autotools_do_install
#	install -d ${D}${sysconfdir}
#	install -d ${D}${sysconfdir}/init.d
#	install -m 0644 ${S}contrib/foo.conf ${D}${sysconfdir}
#	install -m 0755 ${WORKDIR}/foo.init ${D}${sysconfdir}/init.d/foo
#}