diff options
Diffstat (limited to 'packages/procps/procps_3.2.7.bb')
-rw-r--r-- | packages/procps/procps_3.2.7.bb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/packages/procps/procps_3.2.7.bb b/packages/procps/procps_3.2.7.bb index e6a6573635..724e1fdc67 100644 --- a/packages/procps/procps_3.2.7.bb +++ b/packages/procps/procps_3.2.7.bb @@ -1,16 +1,26 @@ require procps.inc -PR = "r5" +PR = "r6" + +inherit update-rc.d + +INITSCRIPT_NAME = "procps.sh" +INITSCRIPT_PARAMS = "start 30 S ." SRC_URI += "file://procmodule.patch;patch=1 \ file://psmodule.patch;patch=1 \ - file://linux-limits.patch;patch=1" + file://linux-limits.patch;patch=1 \ + file://sysctl.conf \ + file://procps.init \ + " FILES = "${bindir}/top.${PN} ${base_bindir}/ps.${PN} ${bindir}/uptime.${PN} ${base_bindir}/kill.${PN} \ ${bindir}/free.${PN} ${bindir}/w ${bindir}/watch ${bindir}/pgrep ${bindir}/pmap ${bindir}/pwdx \ ${bindir}/snice ${bindir}/vmstat ${bindir}/slabtop ${bindir}/pkill ${bindir}/skill ${bindir}/tload \ ${base_sbindir}/sysctl.${PN}" +CONFFILES_${PN} = "${sysconfdir}/sysctl.conf" + EXTRA_OEMAKE = "CFLAGS=-I${STAGING_INCDIR} \ CPPFLAGS=-I${STAGING_INCDIR} \ LDFLAGS=-L${STAGING_LIBDIR} -Wl,--rpath-link,${STAGING_LIBDIR} \ @@ -19,6 +29,11 @@ EXTRA_OEMAKE = "CFLAGS=-I${STAGING_INCDIR} \ ldconfig=echo" do_install_append () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/procps.init ${D}${sysconfdir}/init.d/procps.sh + mv ${D}${bindir}/uptime ${D}${bindir}/uptime.${PN} mv ${D}${bindir}/top ${D}${bindir}/top.${PN} mv ${D}${base_bindir}/kill ${D}${base_bindir}/kill.${PN} |