DESCRIPTION = "ipkg configuration files"
SECTION = "base"
LICENSE = "MIT"
PR = "r7"
PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = " \
file://ipkg.conf.comments	\
file://lists \
file://dest \
file://src \
"

do_compile () {
	cat ${WORKDIR}/ipkg.conf.comments >${WORKDIR}/ipkg.conf
	cat ${WORKDIR}/src	>>${WORKDIR}/ipkg.conf
	cat ${WORKDIR}/dest	>>${WORKDIR}/ipkg.conf
	cat ${WORKDIR}/lists	>>${WORKDIR}/ipkg.conf
}

do_install () {
	install -d ${D}${sysconfdir}/
	install -m 0644 ${WORKDIR}/ipkg.conf ${D}${sysconfdir}/ipkg.conf
}

CONFFILES_${PN} = "${sysconfdir}/ipkg.conf"