Deleted Added
full compact
lib.h (202844) lib.h (206043)
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 202844 2010-01-22 23:32:10Z flz $ */
1/* $FreeBSD: head/usr.sbin/pkg_install/lib/lib.h 206043 2010-04-01 14:27:29Z flz $ */
2
3/*
4 * FreeBSD install - a package for the installation and maintainance
5 * of non-core utilities.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 13 unchanged lines hidden (view full) ---

23#ifndef _INST_LIB_LIB_H_
24#define _INST_LIB_LIB_H_
25
26/* Includes */
27#include <sys/param.h>
28#include <sys/file.h>
29#include <sys/stat.h>
30#include <sys/queue.h>
2
3/*
4 * FreeBSD install - a package for the installation and maintainance
5 * of non-core utilities.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 13 unchanged lines hidden (view full) ---

23#ifndef _INST_LIB_LIB_H_
24#define _INST_LIB_LIB_H_
25
26/* Includes */
27#include <sys/param.h>
28#include <sys/file.h>
29#include <sys/stat.h>
30#include <sys/queue.h>
31#include <sys/utsname.h>
31#include <ctype.h>
32#include <dirent.h>
33#include <stdarg.h>
34#include <stdio.h>
35#include <stdlib.h>
36#include <string.h>
37#include <unistd.h>
38

--- 7 unchanged lines hidden (view full) ---

46
47#ifndef FALSE
48#define FALSE (0)
49#endif
50
51#define YES 2
52#define NO 1
53
32#include <ctype.h>
33#include <dirent.h>
34#include <stdarg.h>
35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>
38#include <unistd.h>
39

--- 7 unchanged lines hidden (view full) ---

47
48#ifndef FALSE
49#define FALSE (0)
50#endif
51
52#define YES 2
53#define NO 1
54
55/* Some more stat macros. */
56#define S_IRALL 0000444
57#define S_IWALL 0000222
58#define S_IXALL 0000111
59
54/* Usually "rm", but often "echo" during debugging! */
55#define REMOVE_CMD "/bin/rm"
56
57/* Usually "rm", but often "echo" during debugging! */
58#define RMDIR_CMD "/bin/rmdir"
59
60/* Where the ports lives by default */
61#define DEF_PORTS_DIR "/usr/ports"

--- 17 unchanged lines hidden (view full) ---

79#define POST_INSTALL_FNAME "+POST-INSTALL"
80#define DEINSTALL_FNAME "+DEINSTALL"
81#define POST_DEINSTALL_FNAME "+POST-DEINSTALL"
82#define REQUIRE_FNAME "+REQUIRE"
83#define REQUIRED_BY_FNAME "+REQUIRED_BY"
84#define DISPLAY_FNAME "+DISPLAY"
85#define MTREE_FNAME "+MTREE_DIRS"
86
60/* Usually "rm", but often "echo" during debugging! */
61#define REMOVE_CMD "/bin/rm"
62
63/* Usually "rm", but often "echo" during debugging! */
64#define RMDIR_CMD "/bin/rmdir"
65
66/* Where the ports lives by default */
67#define DEF_PORTS_DIR "/usr/ports"

--- 17 unchanged lines hidden (view full) ---

85#define POST_INSTALL_FNAME "+POST-INSTALL"
86#define DEINSTALL_FNAME "+DEINSTALL"
87#define POST_DEINSTALL_FNAME "+POST-DEINSTALL"
88#define REQUIRE_FNAME "+REQUIRE"
89#define REQUIRED_BY_FNAME "+REQUIRED_BY"
90#define DISPLAY_FNAME "+DISPLAY"
91#define MTREE_FNAME "+MTREE_DIRS"
92
87#if defined(__FreeBSD_version) && __FreeBSD_version >= 900000
88#define INDEX_FNAME "INDEX-9"
89#elif defined(__FreeBSD_version) && __FreeBSD_version >= 800000
90#define INDEX_FNAME "INDEX-8"
91#elif defined(__FreeBSD_version) && __FreeBSD_version >= 700000
92#define INDEX_FNAME "INDEX-7"
93#elif defined(__FreeBSD_version) && __FreeBSD_version >= 600000
94#define INDEX_FNAME "INDEX-6"
95#else
96#define INDEX_FNAME "INDEX"
97#endif
98
99#define CMD_CHAR '@' /* prefix for extended PLIST cmd */
100
101/* The name of the "prefix" environment variable given to scripts */
102#define PKG_PREFIX_VNAME "PKG_PREFIX"
103
104/*
105 * Version of the package tools - increase whenever you make a change
106 * in the code that is not cosmetic only.
107 */
93#define CMD_CHAR '@' /* prefix for extended PLIST cmd */
94
95/* The name of the "prefix" environment variable given to scripts */
96#define PKG_PREFIX_VNAME "PKG_PREFIX"
97
98/*
99 * Version of the package tools - increase whenever you make a change
100 * in the code that is not cosmetic only.
101 */
108#define PKG_INSTALL_VERSION 20100122
102#define PKG_INSTALL_VERSION 20100401
109
110#define PKG_WRAPCONF_FNAME "/var/db/pkg_install.conf"
111#define main(argc, argv) real_main(argc, argv)
112
113/* Version numbers to assist with changes in package file format */
114#define PLIST_FMT_VER_MAJOR 1
115#define PLIST_FMT_VER_MINOR 1
116

--- 132 unchanged lines hidden ---
103
104#define PKG_WRAPCONF_FNAME "/var/db/pkg_install.conf"
105#define main(argc, argv) real_main(argc, argv)
106
107/* Version numbers to assist with changes in package file format */
108#define PLIST_FMT_VER_MAJOR 1
109#define PLIST_FMT_VER_MINOR 1
110

--- 132 unchanged lines hidden ---