Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / pkg_install / dist / create / create.h
blob6e07915bbe7715f1768f8f2ba4422a68819374cd
1 /* $NetBSD: create.h,v 1.14 2009/11/05 16:22:32 joerg Exp $ */
3 /* from FreeBSD Id: create.h,v 1.13 1997/10/08 07:46:19 charnier Exp */
5 /*
6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
18 * Jordan K. Hubbard
19 * 18 July 1993
21 * Include and define various things wanted by the create command.
25 #ifndef _INST_CREATE_H_INCLUDE
26 #define _INST_CREATE_H_INCLUDE
28 struct memory_file {
29 struct stat st;
30 const char *name;
31 const char *owner;
32 const char *group;
33 mode_t mode;
35 char *data;
36 size_t len;
39 extern char *Prefix;
40 extern char *Comment;
41 extern char *Desc;
42 extern char *Display;
43 extern char *Install;
44 extern char *DeInstall;
45 extern char *Contents;
46 extern char *Pkgdeps;
47 extern char *BuildPkgdeps;
48 extern char *Pkgcfl;
49 extern char *BuildVersion;
50 extern char *BuildInfo;
51 extern char *SizePkg;
52 extern char *SizeAll;
53 extern char *Preserve;
54 extern char *realprefix;
55 extern char *DefaultOwner;
56 extern char *DefaultGroup;
57 extern const char *CompressionType;
58 extern int PlistOnly;
59 extern int RelativeLinks;
60 extern int update_pkgdb;
61 extern int create_views;
63 void check_list(package_t *, const char *);
64 void copy_plist(char *, package_t *);
66 struct memory_file
67 *load_memory_file(const char *, const char *,
68 const char *, const char *, mode_t);
69 struct memory_file
70 *make_memory_file(const char *, void *, size_t,
71 const char *, const char *, mode_t);
72 void free_memory_file(struct memory_file *);
74 int pkg_perform(const char *);
75 int pkg_build(const char *, const char *, const char *, package_t *plist);
77 #endif /* _INST_CREATE_H_INCLUDE */