add.h revision 173513
1226031Sstas/* $FreeBSD: head/usr.sbin/pkg_install/add/add.h 173513 2007-11-10 09:40:39Z krion $ */
2226031Sstas
3226031Sstas/*
4226031Sstas * FreeBSD install - a package for the installation and maintainance
5226031Sstas * of non-core utilities.
6226031Sstas *
7226031Sstas * Redistribution and use in source and binary forms, with or without
8226031Sstas * modification, are permitted provided that the following conditions
9226031Sstas * are met:
10226031Sstas * 1. Redistributions of source code must retain the above copyright
11226031Sstas *    notice, this list of conditions and the following disclaimer.
12226031Sstas * 2. Redistributions in binary form must reproduce the above copyright
13226031Sstas *    notice, this list of conditions and the following disclaimer in the
14226031Sstas *    documentation and/or other materials provided with the distribution.
15226031Sstas *
16226031Sstas * Jordan K. Hubbard
17226031Sstas * 18 July 1993
18226031Sstas *
19226031Sstas * Include and define various things wanted by the add command.
20226031Sstas *
21226031Sstas */
22226031Sstas
23226031Sstas#ifndef _INST_ADD_H_INCLUDE
24226031Sstas#define _INST_ADD_H_INCLUDE
25226031Sstas
26226031Sstastypedef enum { NORMAL, MASTER, SLAVE } add_mode_t;
27226031Sstas
28226031Sstasextern char	*Prefix;
29226031Sstasextern Boolean	PrefixRecursive;
30226031Sstasextern Boolean	NoInstall;
31226031Sstasextern Boolean	NoRecord;
32226031Sstasextern Boolean	FailOnAlreadyInstalled;
33226031Sstasextern Boolean	KeepPackage;
34226031Sstasextern Boolean	IgnoreDeps;
35226031Sstasextern char	*Mode;
36226031Sstasextern char	*Owner;
37226031Sstasextern char	*Group;
38226031Sstasextern char	*Directory;
39226031Sstasextern char	*PkgName;
40226031Sstasextern char	*PkgAddCmd;
41226031Sstasextern char	FirstPen[];
42226031Sstasextern add_mode_t AddMode;
43226031Sstas
44226031Sstasint		make_hierarchy(char *);
45226031Sstasvoid		extract_plist(const char *, Package *);
46226031Sstasvoid		apply_perms(const char *, const char *);
47226031Sstas
48226031Sstas#endif	/* _INST_ADD_H_INCLUDE */
49226031Sstas