diff options
author | Anders Darander <anders@chargestorm.se> | 2014-06-13 15:01:21 +0200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-06-18 17:55:55 +0100 |
commit | 8a9d356a9202350766a68aa07f97ea97e9ed0a51 (patch) | |
tree | c35a7e58557debc9806dd2c5058a1c8337e1224a /meta-webserver/recipes-webadmin | |
parent | b67780140ee4cdbb874c99ef83e1ca616f038c42 (diff) | |
download | meta-openembedded-8a9d356a9202350766a68aa07f97ea97e9ed0a51.tar.gz |
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>
Diffstat (limited to 'meta-webserver/recipes-webadmin')
-rw-r--r-- | meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb b/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb index a561de2c7..7eb1d6319 100644 --- a/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb +++ b/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb | |||
@@ -113,7 +113,7 @@ RDEPENDS_${PN} += "perl-module-warnings perl-module-xsloader perl-module-posix p | |||
113 | RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant" | 113 | RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant" |
114 | RDEPENDS_${PN} += "perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature" | 114 | RDEPENDS_${PN} += "perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature" |
115 | 115 | ||
116 | PACKAGES_DYNAMIC += "webmin-module-*" | 116 | PACKAGES_DYNAMIC += "webmin-module-* webmin-theme-*" |
117 | RRECOMMENDS_${PN} += "webmin-module-system-status" | 117 | RRECOMMENDS_${PN} += "webmin-module-system-status" |
118 | 118 | ||
119 | RDEPENDS_webmin-module-proc = "procps" | 119 | RDEPENDS_webmin-module-proc = "procps" |
@@ -128,12 +128,17 @@ python populate_packages_prepend() { | |||
128 | wadir = bb.data.expand('${libexecdir}/webmin', d) | 128 | wadir = bb.data.expand('${libexecdir}/webmin', d) |
129 | wadir_image = bb.data.expand('${D}', d) + wadir | 129 | wadir_image = bb.data.expand('${D}', d) + wadir |
130 | modules = [] | 130 | modules = [] |
131 | themes = [] | ||
131 | for mod in os.listdir(wadir_image): | 132 | for mod in os.listdir(wadir_image): |
132 | modinfo = os.path.join(wadir_image, mod, "module.info") | 133 | modinfo = os.path.join(wadir_image, mod, "module.info") |
134 | themeinfo = os.path.join(wadir_image, mod, "theme.info") | ||
133 | if os.path.exists(modinfo): | 135 | if os.path.exists(modinfo): |
134 | modules.append(mod) | 136 | modules.append(mod) |
137 | elif os.path.exists(themeinfo): | ||
138 | themes.append(mod) | ||
135 | 139 | ||
136 | do_split_packages(d, wadir, '^(%s)$' % "|".join(modules), 'webmin-module-%s', 'Webmin module for %s', allow_dirs=True, prepend=True) | 140 | do_split_packages(d, wadir, '^(%s)$' % "|".join(modules), 'webmin-module-%s', 'Webmin module for %s', allow_dirs=True, prepend=True) |
141 | do_split_packages(d, wadir, '^(%s)$' % "|".join(themes), 'webmin-theme-%s', 'Webmin theme for %s', allow_dirs=True, prepend=True) | ||
137 | } | 142 | } |
138 | 143 | ||
139 | # Time-savers | 144 | # Time-savers |