1/*
2 * Copyright 2011-2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _PACKAGE__PACKAGE_INFO_ATTRIBUTES_H_
6#define _PACKAGE__PACKAGE_INFO_ATTRIBUTES_H_
7
8
9namespace BPackageKit {
10
11
12enum BPackageInfoAttributeID {
13	B_PACKAGE_INFO_NAME = 0,
14	B_PACKAGE_INFO_SUMMARY,		// single line
15	B_PACKAGE_INFO_DESCRIPTION,	// multiple lines possible
16	B_PACKAGE_INFO_VENDOR,		// e.g. "Haiku Project"
17	B_PACKAGE_INFO_PACKAGER,	// e-mail address preferred
18	B_PACKAGE_INFO_ARCHITECTURE,
19	B_PACKAGE_INFO_VERSION,		// <major>[.<minor>[.<micro>]][-<pre>]
20								//		-<revision>
21	B_PACKAGE_INFO_COPYRIGHTS,	// list
22	B_PACKAGE_INFO_LICENSES,	// list
23	B_PACKAGE_INFO_PROVIDES,	// list of resolvables this package provides,
24								// each optionally giving a version
25	B_PACKAGE_INFO_REQUIRES,	// list of resolvables required by this package,
26								// each optionally specifying a version relation
27								// (e.g. libssl.so >= 0.9.8)
28	B_PACKAGE_INFO_SUPPLEMENTS,	// list of resolvables that are supplemented
29								// by this package, i.e. this package marks
30								// itself as an extension to other packages
31	B_PACKAGE_INFO_CONFLICTS,	// list of resolvables that inhibit installation
32								// of this package
33	B_PACKAGE_INFO_FRESHENS,	// list of resolvables that this package
34								// contains a patch for
35	B_PACKAGE_INFO_REPLACES,	// list of resolvables that this package
36								// will replace (upon update)
37	B_PACKAGE_INFO_FLAGS,
38	B_PACKAGE_INFO_URLS,		// list
39	B_PACKAGE_INFO_SOURCE_URLS,	// list
40	B_PACKAGE_INFO_CHECKSUM,	// sha256-checksum
41	B_PACKAGE_INFO_INSTALL_PATH, // package install path; only for package
42								// building
43	B_PACKAGE_INFO_BASE_PACKAGE, // name of the base package for this package
44	B_PACKAGE_INFO_GLOBAL_WRITABLE_FILES,
45								// list of global writable file infos
46	B_PACKAGE_INFO_USER_SETTINGS_FILES,
47								// list of user settings file infos
48	B_PACKAGE_INFO_USERS,
49								// list of (Unix) users defined/needed
50	B_PACKAGE_INFO_GROUPS,
51								// list of (Unix) groups defined/needed
52	B_PACKAGE_INFO_POST_INSTALL_SCRIPTS,
53								// list of scripts to be executed post-install
54	B_PACKAGE_INFO_PRE_UNINSTALL_SCRIPTS,
55								// list of scripts to be run before uninstalling
56	//
57	B_PACKAGE_INFO_ENUM_COUNT,
58};
59
60
61}	// namespace BPackageKit
62
63
64#endif	// _PACKAGE__PACKAGE_INFO_ATTRIBUTES_H_
65