diff options
Diffstat (limited to 'meta/packages/sed/sed_4.1.2.bb')
-rw-r--r-- | meta/packages/sed/sed_4.1.2.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/sed/sed_4.1.2.bb b/meta/packages/sed/sed_4.1.2.bb new file mode 100644 index 0000000000..fe80f3e687 --- /dev/null +++ b/meta/packages/sed/sed_4.1.2.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | LICENSE = "GPL" | ||
2 | SECTION = "console/utils" | ||
3 | DESCRIPTION = "sed is a Stream EDitor." | ||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz" | ||
7 | S = "${WORKDIR}/sed-${PV}" | ||
8 | |||
9 | inherit autotools | ||
10 | |||
11 | do_install () { | ||
12 | autotools_do_install | ||
13 | install -d ${D}${base_bindir} | ||
14 | mv ${D}${bindir}/sed ${D}${base_bindir}/sed.${PN} | ||
15 | } | ||
16 | |||
17 | |||
18 | pkg_postinst_${PN} () { | ||
19 | update-alternatives --install ${base_bindir}/sed sed sed.${PN} 100 | ||
20 | } | ||
21 | |||
22 | |||
23 | pkg_prerm_${PN} () { | ||
24 | update-alternatives --remove sed sed.${PN} | ||
25 | } | ||
26 | |||