dpkg-deb.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * dpkg-deb - construction and deconstruction of *.deb archives
  3. * dpkg-deb.h - external definitions for this program
  4. *
  5. * Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
  6. *
  7. * This is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2,
  10. * or (at your option) any later version.
  11. *
  12. * This is distributed in the hope that it will be useful, but
  13. * 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.
  16. *
  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/>.
  19. */
  20. #ifndef DPKG_DEB_H
  21. #define DPKG_DEB_H
  22. typedef void dofunction(const char *const *argv);
  23. dofunction do_build DPKG_ATTR_NORET;
  24. dofunction do_contents, do_control, do_showinfo;
  25. dofunction do_info, do_field, do_extract, do_vextract, do_fsystarfile;
  26. extern int debugflag, nocheckflag, oldformatflag;
  27. extern const struct cmdinfo *cipaction;
  28. extern dofunction *action;
  29. void extracthalf(const char *debar, const char *directory,
  30. const char *taroption, int admininfo);
  31. extern const char *compression;
  32. extern const char* showformat;
  33. extern enum compress_type compress_type;
  34. #define ARCHIVEVERSION "2.0"
  35. #define BUILDCONTROLDIR "DEBIAN"
  36. #define EXTRACTCONTROLDIR BUILDCONTROLDIR
  37. /* Set BUILDOLDPKGFORMAT to 1 to build old-format archives by default. */
  38. #ifndef BUILDOLDPKGFORMAT
  39. #define BUILDOLDPKGFORMAT 0
  40. #endif
  41. #define OLDARCHIVEVERSION "0.939000"
  42. #define OLDDEBDIR "DEBIAN"
  43. #define OLDOLDDEBDIR ".DEBIAN"
  44. #define DEBMAGIC "!<arch>\ndebian-binary "
  45. #define ADMINMEMBER "control.tar.gz "
  46. #define ADMINMEMBER_COMPAT "control.tar.gz/ "
  47. #define DATAMEMBER_GZ "data.tar.gz "
  48. #define DATAMEMBER_COMPAT_GZ "data.tar.gz/ "
  49. #define DATAMEMBER_BZ2 "data.tar.bz2 "
  50. #define DATAMEMBER_COMPAT_BZ2 "data.tar.bz2/ "
  51. #define DATAMEMBER_LZMA "data.tar.lzma "
  52. #define DATAMEMBER_COMPAT_LZMA "data.tar.lzma/ "
  53. #define DATAMEMBER_CAT "data.tar "
  54. #define DATAMEMBER_COMPAT_CAT "data.tar/ "
  55. #define MAXFILENAME 2048
  56. #define MAXFIELDNAME 200
  57. #ifdef PATH_MAX
  58. # define INTERPRETER_MAX PATH_MAX
  59. #else
  60. # define INTERPRETER_MAX 1024
  61. #endif
  62. #endif /* DPKG_DEB_H */