mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
webmin: split out webmin themes
The default set of themes taks up ~13MB, with a couple of them weighting in at ~5MB each. Let's split the themes to separate packages, to allow a considerable size reduction of the core webmin package (from +15MB to 2.1MB on my build host). Signed-off-by: Anders Darander <anders@chargestorm.se>
This commit is contained in:
committed by
Paul Eggleton
parent
b67780140e
commit
8a9d356a92
@@ -113,7 +113,7 @@ RDEPENDS_${PN} += "perl-module-warnings perl-module-xsloader perl-module-posix p
|
|||||||
RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant"
|
RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant"
|
||||||
RDEPENDS_${PN} += "perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature"
|
RDEPENDS_${PN} += "perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature"
|
||||||
|
|
||||||
PACKAGES_DYNAMIC += "webmin-module-*"
|
PACKAGES_DYNAMIC += "webmin-module-* webmin-theme-*"
|
||||||
RRECOMMENDS_${PN} += "webmin-module-system-status"
|
RRECOMMENDS_${PN} += "webmin-module-system-status"
|
||||||
|
|
||||||
RDEPENDS_webmin-module-proc = "procps"
|
RDEPENDS_webmin-module-proc = "procps"
|
||||||
@@ -128,12 +128,17 @@ python populate_packages_prepend() {
|
|||||||
wadir = bb.data.expand('${libexecdir}/webmin', d)
|
wadir = bb.data.expand('${libexecdir}/webmin', d)
|
||||||
wadir_image = bb.data.expand('${D}', d) + wadir
|
wadir_image = bb.data.expand('${D}', d) + wadir
|
||||||
modules = []
|
modules = []
|
||||||
|
themes = []
|
||||||
for mod in os.listdir(wadir_image):
|
for mod in os.listdir(wadir_image):
|
||||||
modinfo = os.path.join(wadir_image, mod, "module.info")
|
modinfo = os.path.join(wadir_image, mod, "module.info")
|
||||||
|
themeinfo = os.path.join(wadir_image, mod, "theme.info")
|
||||||
if os.path.exists(modinfo):
|
if os.path.exists(modinfo):
|
||||||
modules.append(mod)
|
modules.append(mod)
|
||||||
|
elif os.path.exists(themeinfo):
|
||||||
|
themes.append(mod)
|
||||||
|
|
||||||
do_split_packages(d, wadir, '^(%s)$' % "|".join(modules), 'webmin-module-%s', 'Webmin module for %s', allow_dirs=True, prepend=True)
|
do_split_packages(d, wadir, '^(%s)$' % "|".join(modules), 'webmin-module-%s', 'Webmin module for %s', allow_dirs=True, prepend=True)
|
||||||
|
do_split_packages(d, wadir, '^(%s)$' % "|".join(themes), 'webmin-theme-%s', 'Webmin theme for %s', allow_dirs=True, prepend=True)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Time-savers
|
# Time-savers
|
||||||
|
|||||||
Reference in New Issue
Block a user