4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __RPM_INSTALLER_TYPE_H_
23 #define __RPM_INSTALLER_TYPE_H_
25 /* For multi-user support */
26 #include <tzplatform_config.h>
27 #include <pkgmgr-info.h>
32 #endif /* __cplusplus */
34 #define MAX_BUF_SIZE 4096
36 #define TEMP_DIR tzplatform_mkpath(TZ_USER_HOME, ".rpminstaller")
37 #define CPIO_SCRIPT "/usr/bin/cpio_rpm_package.sh"
38 #define CPIO_SCRIPT_UPDATE_XML "/usr/bin/cpio_rpm_package_update_xml.sh"
39 #define RPM_UPDATE_XML "/usr/bin/rpm_update_xml.sh"
40 #define MANIFEST_RW_DIRECTORY tzplatform_getenv(TZ_SYS_RW_PACKAGES)
41 #define MANIFEST_RO_DIRECTORY tzplatform_getenv(TZ_SYS_RO_PACKAGES)
42 #define USR_APPS tzplatform_getenv(TZ_SYS_RO_APP)
43 #define OPT_USR_APPS tzplatform_getenv(TZ_USER_APP)
44 #define OPT_SHARE_PACKAGES getUserManifestPath(getuid())
45 #define USR_SHARE_PACKAGES tzplatform_getenv(TZ_SYS_RO_PACKAGES)
46 #define PRE_CHECK_FOR_MANIFEST
47 #define INSTALL_SCRIPT "/usr/bin/install_rpm_package.sh"
48 #define INSTALL_SCRIPT_WITH_DBPATH_RO "/usr/bin/install_rpm_package_with_dbpath_ro.sh"
49 #define INSTALL_SCRIPT_WITH_DBPATH_RW "/usr/bin/install_rpm_package_with_dbpath_rw.sh"
50 #define UNINSTALL_SCRIPT "/usr/bin/uninstall_rpm_package.sh"
51 #define UPGRADE_SCRIPT "/usr/bin/upgrade_rpm_package.sh"
52 #define UPGRADE_SCRIPT_WITH_DBPATH_RO "/usr/bin/upgrade_rpm_package_with_dbpath_ro.sh"
53 #define UPGRADE_SCRIPT_WITH_DBPATH_RW "/usr/bin/upgrade_rpm_package_with_dbpath_rw.sh"
54 #define TEMP_DBPATH "/opt/usr/rpmdb_tmp"
55 #define RPM2CPIO "/usr/bin/rpm2cpio"
56 #define DEACTIVATION_PKGID_LIST "/opt/share/packages/.pkgmgr/rpm-installer/rpm_installer_deactvation_list.txt"
57 #define OPT_ZIP_FILE "/usr/system/RestoreDir/opt.zip"
58 #define EFLWGT_TYPE_STR "eflwgt"
59 #define TOKEN_PACKAGE_STR "package="
60 #define TOKEN_PKGID_STR "pkgid="
61 #define TOKEN_STATE_STR "state="
62 #define TOKEN_PATH_STR "path="
63 #define TOKEN_OPERATION_STR "op="
64 #define TOKEN_REMOVE_STR "removable="
65 #define SEPERATOR_END ':'
66 #define SEPERATOR_START '"'
67 #define APP_OWNER_ID 5000
68 #define APP_GROUP_ID 5000
69 #define MAX_BUFF_LEN 4096
70 #define MAX_CERT_NUM 9
71 #define TERMINATE_RETRY_COUNT 100
72 #define BIN_DIR_STR "bin"
73 #define RES_DIR_STR "res"
74 #define SHARED_RES_DIR_STR "shared/res"
75 #define LIBAIL_PATH "/usr/lib/libail.so.0"
76 #define QUERY_PACKAGE "/usr/bin/query_rpm_package.sh"
77 #define RPM_PKG_INFO "/var/rpmpkg.info"
78 #define RPM "/usr/etc/package-manager/backend/rpm"
79 #define SMACK_RULES_ALT_PATH "/etc/smack/accesses2.d/"
80 #define CORETPK_XML "tizen-manifest.xml"
83 #endif /* __cplusplus */
84 #endif /* __RPM_INSTALLER_TYPE_H_ */