2 * dpkg-deb - construction and deconstruction of *.deb archives
3 * dpkg-deb.h - external definitions for this program
5 * Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
7 * This is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 typedef void dofunction(const char *const *argv
);
25 dofunction do_build DPKG_ATTR_NORET
;
26 dofunction do_contents
, do_control
, do_showinfo
;
27 dofunction do_info
, do_field
, do_extract
, do_vextract
, do_fsystarfile
;
29 extern int debugflag
, nocheckflag
, oldformatflag
;
30 extern const struct cmdinfo
*cipaction
;
31 extern dofunction
*action
;
33 void extracthalf(const char *debar
, const char *directory
,
34 const char *taroption
, int admininfo
);
36 extern const char* showformat
;
37 extern struct compressor
*compressor
;
38 extern int compress_level
;
40 #define ARCHIVEVERSION "2.0"
42 #define BUILDCONTROLDIR "DEBIAN"
43 #define EXTRACTCONTROLDIR BUILDCONTROLDIR
45 /* Set BUILDOLDPKGFORMAT to 1 to build old-format archives by default. */
46 #ifndef BUILDOLDPKGFORMAT
47 #define BUILDOLDPKGFORMAT 0
50 #define OLDARCHIVEVERSION "0.939000"
52 #define OLDDEBDIR "DEBIAN"
53 #define OLDOLDDEBDIR ".DEBIAN"
55 #define DEBMAGIC "debian-binary"
56 #define ADMINMEMBER "control.tar.gz"
57 #define DATAMEMBER "data.tar"
59 #define MAXFILENAME 2048
60 #define MAXFIELDNAME 200
63 # define INTERPRETER_MAX PATH_MAX
65 # define INTERPRETER_MAX 1024
68 #endif /* DPKG_DEB_H */