196036cd082377975b75eb45913b84e23b228af2
[dragonfly.git] / usr.sbin / pkg_install / add / add.h
1 /* $FreeBSD: src/usr.sbin/pkg_install/add/add.h,v 1.9.2.1 2001/10/23 09:16:03 sobomax Exp $ */
2 /* $DragonFly: src/usr.sbin/pkg_install/add/Attic/add.h,v 1.2 2003/06/17 04:29:59 dillon Exp $ */
3
4 /*
5  * FreeBSD install - a package for the installation and maintainance
6  * of non-core utilities.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * Jordan K. Hubbard
18  * 18 July 1993
19  *
20  * Include and define various things wanted by the add command.
21  *
22  */
23
24 #ifndef _INST_ADD_H_INCLUDE
25 #define _INST_ADD_H_INCLUDE
26
27 typedef enum { NORMAL, MASTER, SLAVE } add_mode_t;
28
29 extern char     *Prefix;
30 extern Boolean  NoInstall;
31 extern Boolean  NoRecord;
32 extern Boolean  Force;
33 extern char     *Mode;
34 extern char     *Owner;
35 extern char     *Group;
36 extern char     *Directory;
37 extern char     *PkgName;
38 extern char     FirstPen[];
39 extern add_mode_t AddMode;
40
41 int             make_hierarchy(char *);
42 void            extract_plist(const char *, Package *);
43 void            apply_perms(const char *, const char *);
44
45 #endif  /* _INST_ADD_H_INCLUDE */