summaryrefslogtreecommitdiff
path: root/apmd/apmd_3.2.2.oe
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-06-10 22:38:35 +0000
committerPhil Blundell <philb@gnu.org>2004-06-10 22:38:35 +0000
commitd52612d6d782160dbd8cda77811fa7798f70149b (patch)
treea0aa1feb2f3836d385734853538addabff8a1dfc /apmd/apmd_3.2.2.oe
parentaafc161a44eba3694021a9f85f70c390a53affef (diff)
package libapm separately. install apm.h into staging.
BKrev: 40c8e2ebUPRp-OiKCrgZL0yZlQf_cQ
Diffstat (limited to 'apmd/apmd_3.2.2.oe')
-rw-r--r--apmd/apmd_3.2.2.oe9
1 files changed, 8 insertions, 1 deletions
diff --git a/apmd/apmd_3.2.2.oe b/apmd/apmd_3.2.2.oe
index d2abf40f67..49fc929759 100644
--- a/apmd/apmd_3.2.2.oe
+++ b/apmd/apmd_3.2.2.oe
@@ -1,9 +1,15 @@
+PR = "r1"
SECTION = "base"
PRIORITY = "required"
MAINTAINER = "Greg Gilbert <greg@treke.net>"
DEPENDS = "libtool-cross"
DESCRIPTION = "Set of tools for managing notebook power consumption."
+PACKAGES =+ "libapm libapm-dev "
+
+FILES_libapm = "${libdir}/libapm.so.*"
+FILES_libapm-dev = "${libdir}/libapm.* ${includedir}"
+
SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz; \
file://debian.patch;patch=1 \
file://workaround.patch;patch=1 \
@@ -25,11 +31,11 @@ do_compile() {
}
do_stage() {
+ install -m 0644 apm.h ${STAGING_INCDIR}
oe_libinstall -so libapm ${STAGING_LIBDIR}
}
do_install() {
-
install -d ${D}/${sysconfdir}
install -d ${D}/${sysconfdir}/apm
install -d ${D}/${sysconfdir}/apm/event.d
@@ -50,6 +56,7 @@ do_install() {
install -m 0644 ${WORKDIR}/apmd_proxy.conf ${D}/${datadir}/apmd/
install -m 0644 ${WORKDIR}/default ${D}/${sysconfdir}/default/apmd
oe_libinstall -so libapm ${D}/${libdir}
+ install -m 0644 apm.h ${D}/${includedir}
cat ${WORKDIR}/init | sed -e 's,/usr/sbin,${sbindir},g; s,/etc,${sysconfdir},g;' > ${D}/${sysconfdir}/init.d/apmd
chmod 755 ${D}/${sysconfdir}/init.d/apmd