Lines Matching defs:meta

147 free_pkg_meta(struct pkg_meta *meta)
152 free(*(char **)((char *)meta + descr->entry_offset));
154 free(meta);
162 struct pkg_meta *meta;
171 meta = xcalloc(1, sizeof(*meta));
194 target = (char **)((char *)meta + descr->entry_offset);
204 errx(2, "cannot read package meta data");
210 errx(2, "package meta data too large to process");
213 errx(2, "cannot read package meta data");
222 meta->is_installed = 0;
224 free_pkg_meta(meta);
225 meta = NULL;
228 return meta;
235 struct pkg_meta *meta;
242 meta = xcalloc(1, sizeof(*meta));
254 err(2, "cannot read meta data file %s of package %s",
257 target = (char **)((char *)meta + descr->entry_offset);
260 err(2, "cannot stat meta data");
262 errx(1, "meta data is not regular file");
264 err(2, "meta data file too large to process");
267 err(2, "cannot read meta data");
272 meta->is_installed = 1;
274 return meta;
278 build_full_reqby(lpkg_head_t *reqby, struct pkg_meta *meta, int limit)
287 if (meta->is_installed == 0 || meta->meta_required_by == NULL)
290 for (iter = meta->meta_required_by; *iter != '\0'; iter = next) {
326 struct pkg_meta *meta;
351 meta = read_meta_data_from_archive(archive, entry);
375 meta = read_meta_data_from_pkgdb(pkg);
378 if (meta == NULL) {
391 show_index(meta->meta_comment, tmp);
395 if (meta->meta_installed_info)
396 show_var(meta->meta_installed_info, BuildInfoVariable);
398 if (meta->meta_build_info)
399 show_var(meta->meta_build_info, BuildInfoVariable);
407 parse_plist(&plist, meta->meta_contents);
412 if (meta->meta_preserve) {
417 show_summary(meta, &plist, binpkgfile);
420 show_file(meta->meta_comment, "Comment:\n", TRUE);
428 if ((Flags & SHOW_REQBY) && meta->meta_required_by) {
429 show_file(meta->meta_required_by, "Required by:\n", TRUE);
431 if ((Flags & SHOW_FULL_REQBY) && meta->is_installed) {
434 build_full_reqby(&reqby, meta, 0);
438 show_file(meta->meta_desc, "Description:\n", TRUE);
440 if ((Flags & SHOW_DISPLAY) && meta->meta_display) {
441 show_file(meta->meta_display, "Install notice:\n",
447 if ((Flags & SHOW_INSTALL) && meta->meta_install) {
448 show_file(meta->meta_install, "Install script:\n",
451 if ((Flags & SHOW_DEINSTALL) && meta->meta_deinstall) {
452 show_file(meta->meta_deinstall, "De-Install script:\n",
455 if ((Flags & SHOW_MTREE) && meta->meta_mtree) {
456 show_file(meta->meta_mtree, "mtree file:\n", TRUE);
464 if ((Flags & SHOW_BUILD_VERSION) && meta->meta_build_version) {
465 show_file(meta->meta_build_version, "Build version:\n",
469 if (meta->meta_build_info) {
470 show_file(meta->meta_build_info, "Build information:\n",
473 if (meta->meta_installed_info) {
474 show_file(meta->meta_installed_info, "Installed information:\n",
478 if ((Flags & SHOW_PKG_SIZE) && meta->meta_size_pkg) {
479 show_file(meta->meta_size_pkg, "Size of this package in bytes: ",
482 if ((Flags & SHOW_ALL_SIZE) && meta->meta_size_all) {
483 show_file(meta->meta_size_all, "Size in bytes including required pkgs: ",
487 if (meta->meta_preserve) {
494 free_pkg_meta(meta);