diff options
Diffstat (limited to 'meta/packages/prelink/prelink_20100106.bb')
-rw-r--r-- | meta/packages/prelink/prelink_20100106.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/prelink/prelink_20100106.bb b/meta/packages/prelink/prelink_20100106.bb new file mode 100644 index 0000000000..a84aaa267a --- /dev/null +++ b/meta/packages/prelink/prelink_20100106.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SECTION = "devel" | ||
2 | DEPENDS = "elfutils" | ||
3 | DESCRIPTION = " The prelink package contains a utility which modifies ELF shared libraries \ | ||
4 | and executables, so that far fewer relocations need to be resolved at \ | ||
5 | runtime and thus programs come up faster." | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "http://people.redhat.com/jakub/prelink/prelink-${PV}.tar.bz2 \ | ||
10 | file://prelink.conf \ | ||
11 | file://prelink.cron.daily \ | ||
12 | file://prelink.default" | ||
13 | |||
14 | TARGET_OS_ORIG := "${TARGET_OS}" | ||
15 | OVERRIDES_append = ":${TARGET_OS_ORIG}" | ||
16 | |||
17 | S = "${WORKDIR}/prelink" | ||
18 | |||
19 | EXTRA_OECONF = "--disable-64bit" | ||
20 | |||
21 | inherit autotools | ||
22 | |||
23 | do_install_append () { | ||
24 | install -d ${D}${sysconfdir}/cron.daily ${D}${sysconfdir}/default | ||
25 | install -m 0644 ${WORKDIR}/prelink.conf ${D}${sysconfdir}/prelink.conf | ||
26 | install -m 0644 ${WORKDIR}/prelink.cron.daily ${D}${sysconfdir}/cron.daily/prelink | ||
27 | install -m 0644 ${WORKDIR}/prelink.default ${D}${sysconfdir}/default/prelink | ||
28 | } | ||
29 | |||
30 | pkg_postinst_prelink() { | ||
31 | #!/bin/sh | ||
32 | |||
33 | if [ "x$D" != "x" ]; then | ||
34 | exit 1 | ||
35 | fi | ||
36 | |||
37 | prelink -a | ||
38 | } | ||
39 | |||
40 | pkg_postrm_prelink() { | ||
41 | #!/bin/sh | ||
42 | |||
43 | prelink -au | ||
44 | } | ||
45 | |||