add.h revision 156497
150479Speter/* $FreeBSD: head/usr.sbin/pkg_install/add/add.h 156497 2006-03-09 14:49:19Z phk $ */ 2327Sjkh 3327Sjkh/* 4327Sjkh * FreeBSD install - a package for the installation and maintainance 5327Sjkh * of non-core utilities. 6327Sjkh * 7327Sjkh * Redistribution and use in source and binary forms, with or without 8327Sjkh * modification, are permitted provided that the following conditions 9327Sjkh * are met: 10327Sjkh * 1. Redistributions of source code must retain the above copyright 11327Sjkh * notice, this list of conditions and the following disclaimer. 12327Sjkh * 2. Redistributions in binary form must reproduce the above copyright 13327Sjkh * notice, this list of conditions and the following disclaimer in the 14327Sjkh * documentation and/or other materials provided with the distribution. 15327Sjkh * 16327Sjkh * Jordan K. Hubbard 17327Sjkh * 18 July 1993 18327Sjkh * 19327Sjkh * Include and define various things wanted by the add command. 20327Sjkh * 21327Sjkh */ 22327Sjkh 23327Sjkh#ifndef _INST_ADD_H_INCLUDE 24327Sjkh#define _INST_ADD_H_INCLUDE 25327Sjkh 26382Sjkhtypedef enum { NORMAL, MASTER, SLAVE } add_mode_t; 27382Sjkh 28327Sjkhextern char *Prefix; 29152329Skrionextern Boolean PrefixRecursive; 30327Sjkhextern Boolean NoInstall; 31327Sjkhextern Boolean NoRecord; 32156497Sphkextern Boolean FailOnAlreadyInstalled; 33154145Sflzextern Boolean KeepPackage; 34327Sjkhextern char *Mode; 35327Sjkhextern char *Owner; 36327Sjkhextern char *Group; 37327Sjkhextern char *Directory; 38327Sjkhextern char *PkgName; 39131285Seikextern char *PkgAddCmd; 4011780Sjkhextern char FirstPen[]; 41382Sjkhextern add_mode_t AddMode; 42327Sjkh 43327Sjkhint make_hierarchy(char *); 4484745Ssobomaxvoid extract_plist(const char *, Package *); 4584745Ssobomaxvoid apply_perms(const char *, const char *); 46327Sjkh 47327Sjkh#endif /* _INST_ADD_H_INCLUDE */ 48