summaryrefslogtreecommitdiff
path: root/classes/update-rc.d.oeclass
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-07 22:05:47 +0000
committerChris Larson <clarson@kergoth.com>2004-12-07 22:05:47 +0000
commita780643c4b6aa11e1a36965a69df7116477c7b4c (patch)
tree17e81e77bde19931facf9b30fa5b5981df796071 /classes/update-rc.d.oeclass
parent88cce8db7ebf88ab9da2366a2ac21a5a723340b8 (diff)
Merge oe-devel@oe-devel.bkbits.net:packages.bb
into handhelds.org:/home/kergoth/code/packages.bb 2004/12/07 04:58:25-06:00 ti.com!kergoth More updates per the core rename. 2004/12/07 04:46:51-06:00 ti.com!kergoth Update soundtracker per the core rename. 2004/12/07 04:44:14-06:00 ti.com!kergoth Merge 2004/12/07 04:42:38-06:00 ti.com!kergoth Updates per the recent rename of the oe core from 'oe' to 'bitbake'. BKrev: 41b6293b91LRHSxMOt6WnrZVAdLbFw
Diffstat (limited to 'classes/update-rc.d.oeclass')
-rw-r--r--classes/update-rc.d.oeclass47
1 files changed, 0 insertions, 47 deletions
diff --git a/classes/update-rc.d.oeclass b/classes/update-rc.d.oeclass
deleted file mode 100644
index 6e1ce007ac..0000000000
--- a/classes/update-rc.d.oeclass
+++ /dev/null
@@ -1,47 +0,0 @@
-DEPENDS_append = " update-rc.d"
-RDEPENDS_append = " update-rc.d"
-
-INIT_D_DIR = "${sysconfdir}/init.d"
-
-updatercd_postinst() {
-if test "x$D" != "x"; then
- D="-r $D"
-else
- D="-s"
-fi
-update-rc.d $D ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
-}
-
-updatercd_postrm() {
-if test "x$D" != "x"; then
- D="-r $D"
-else
- ${INIT_D_DIR}/${INITSCRIPT_NAME} stop
-fi
-update-rc.d $D ${INITSCRIPT_NAME} remove
-}
-
-python __anonymous() {
- if oe.data.getVar('INITSCRIPT_NAME', d) == None:
- raise oe.build.FuncFailed, "%s inherits update-rc.d but doesn't set INITSCRIPT_NAME" % oe.data.getVar('FILE', d)
- if oe.data.getVar('INITSCRIPT_PARAMS', d) == None:
- raise oe.build.FuncFailed, "%s inherits update-rc.d but doesn't set INITSCRIPT_PARAMS" % oe.data.getVar('FILE', d)
-}
-
-python populate_packages_prepend () {
- pkg = oe.data.getVar('PN', d, 1)
- packages = (oe.data.getVar('PACKAGES', d, 1) or "").split()
- if not pkg in packages:
- pkg = packages[0]
- oe.note('adding update-rc.d calls to postinst/postrm for %s' % pkg)
- postinst = oe.data.getVar('pkg_postinst_%s' % pkg, d, 1) or oe.data.getVar('pkg_postinst', d, 1)
- if not postinst:
- postinst = '#!/bin/sh\n'
- postinst += oe.data.getVar('updatercd_postinst', d, 1)
- oe.data.setVar('pkg_postinst_%s' % pkg, postinst, d)
- postrm = oe.data.getVar('pkg_postrm_%s' % pkg, d, 1) or oe.data.getVar('pkg_postrm', d, 1)
- if not postrm:
- postrm = '#!/bin/sh\n'
- postrm += oe.data.getVar('updatercd_postrm', d, 1)
- oe.data.setVar('pkg_postrm_%s' % pkg, postrm, d)
-}