1 /*
2 * dpkg - Debian Package library and the Debian Package Maven plugin
3 * (c) Copyright 2016 Gerrit Hohl
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 package net.sourceforge.javadpkg;
20
21 /**
22 * <p>
23 * The constants of the Debian package.
24 * </p>
25 *
26 * @author Gerrit Hohl (gerrit-hohl@users.sourceforge.net)
27 * @version <b>1.0</b>, 26.04.2016 by Gerrit Hohl
28 */
29 public interface DebianPackageConstants extends GlobalConstants {
30
31
32 /**
33 * <p>
34 * The name of the "debian-binary" file containing the version of
35 * the Debian package structure.
36 * </p>
37 */
38 String DEBIAN_BINARY = "debian-binary";
39 /**
40 * <p>
41 * The name of the file containing the control information of the Debian
42 * package without the extension.
43 * </p>
44 */
45 String CONTROL_NAME = "control";
46 /**
47 * <p>
48 * The prefix of the file containing the control information of the Debian
49 * package.
50 * </p>
51 */
52 String CONTROL_TAR_PREFIX = CONTROL_NAME + ".tar.";
53 /**
54 * <p>
55 * The name of the file containing the content of the Debian package without
56 * the extension.
57 * </p>
58 */
59 String DATA_NAME = "data";
60 /** The prefix of the file containing the content of the Debian package. */
61 String DATA_TAR_PREFIX = DATA_NAME + ".tar.";
62
63 /** The suffix of a GZIP compressed TAR file. */
64 String TAR_GZIP_SUFFIX = ".tar.gz";
65 /** The suffix of a XZ compressed TAR file. */
66 String TAR_XZ_SUFFIX = ".tar.xz";
67 /** The suffix of a BZIP2 compressed TAR file. */
68 String TAR_BZIP2_SUFFIX = ".tar.bz2";
69
70 /** The entry for the control file in the control information archive. */
71 String CONTROL_ENTRY = "control";
72 /** The entry for the MD5 sums file in the control information archive. */
73 String MD5SUMS_ENTRY = "md5sums";
74 /**
75 * <p>
76 * The entry for the pre-installation script file in the control information
77 * archive.
78 * </p>
79 */
80 String PREINST_ENTRY = "preinst";
81 /**
82 * <p>
83 * The entry for the post-installation script file in the control
84 * information archive.
85 * </p>
86 */
87 String POSTINST_ENTRY = "postinst";
88 /**
89 * <p>
90 * The entry for the pre-remove script file in the control information
91 * archive.
92 * </p>
93 */
94 String PRERM_ENTRY = "prerm";
95 /**
96 * <p>
97 * The entry for the post-remove script file in the control information
98 * archive.
99 * </p>
100 */
101 String POSTRM_ENTRY = "postrm";
102 /** The entry for the templates file in the control information archive. */
103 String TEMPLATES_ENTRY = "templates";
104 /**
105 * <p>
106 * The entry for the configuration file in the control information archive.
107 * </p>
108 */
109 String CONFIG_ENTRY = "config";
110 /**
111 * <p>
112 * The entry for the configuration files file in the control information
113 * archive.
114 * </p>
115 */
116 String CONFFILES_ENTRY = "conffiles";
117 /**
118 * <p>
119 * The entry for the shared libraries file in the control information
120 * archive.
121 * </p>
122 */
123 String SHLIBS_ENTRY = "shlibs";
124 /** The entry for the symbols file in the control information archive. */
125 String SYMBOLS_ENTRY = "symbols";
126 /** The entry for the triggers file in the control information archive. */
127 String TRIGGERS_ENTRY = "triggers";
128
129
130 /** The user directory. */
131 String USR_PATH = "/usr/";
132 /** The share directory in the user directory. */
133 String USR_SHARE_PATH = USR_PATH + "share/";
134 /** The base of the documentation path. */
135 String DOC_BASE_PATH = USR_SHARE_PATH + "doc/";
136
137
138 /** The group ID for the root group. */
139 long ROOT_GROUP_ID = 0;
140 /** The group name for the root group. */
141 String ROOT_GROUP_NAME = "root";
142 /** The user ID for the root user. */
143 long ROOT_USER_ID = 0;
144 /** The user name for the root user. */
145 String ROOT_USER_NAME = "root";
146
147 /** The mode (access rights) for a directory. */
148 int DIRECTORY_MODE = 00755;
149 /** The mode (access rights) for a normal file. */
150 int FILE_MODE = 00644;
151 /** The mode (access rights) for a script. */
152 int SCRIPT_MODE = 00755;
153
154
155 }