[go: up one dir, main page]

File: usepackage.conf

package info (click to toggle)
usepackage 1.6.3-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 528 kB
  • ctags: 353
  • sloc: ansic: 1,621; sh: 766; yacc: 197; makefile: 85; lex: 59
file content (149 lines) | stat: -rw-r--r-- 4,731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Usepackage Environment Manager 
# Copyright (C) 1995-2002  Jonathan Hogg  <jonathan@onegoodidea.com> 
# 
# This program is free software; you can redistribute it and/or modify 
# it under the terms of the GNU General Public License as published by 
# the Free Software Foundation; either version 2 of the License, or 
# (at your option) any later version.   
# 
# This program is distributed in the hope that it will be useful, 
# but WITHOUT ANY WARRANTY; without even the implied warranty of 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
# GNU General Public License for more details. 
# 
# You should have received a copy of the GNU General Public License 
# along with this program; if not, write to the Free Software 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
#
#
# Usepackage Sample Configuration File
#
# Format:
#
# 	<packagename> <arch> <os> <release> <host> [<= <requires>...] :
#		<variable>[, <variable>...] ;
#
# <packagename>, <arch>, <os>, and <host> may use a restricted shell-style
# pattern matching ('*' for anything, '<pre>*' for prefix, '{<a>,<b>,...}'
# for a choice. <variables> are of the form <name>=<value> or <name>+=<value>.
# A <value> is either a path list (colon separated) or a literal string in
# double quotes. New-lines are ignored in path lists and in literal strings.
# A path may begin with '~' or '~user' which will be expanded respectively
# to the home directory of the user invoking usepackage or the specified user.
# The optional <requires> list is a comma-separated list of package or
# group names that must be loaded into the environment before this package.
# Whatever you do, DON'T create a mutually dependant loop!
#
# e.g.:
#
#	X * * * * : PATH+=/usr/X11/bin, LD_LIBRARY_PATH+=/usr/X11/lib ;
#	frib * * * mymachine : PATH+=/special/frib/bin ;
#	frib sun4* * * * : PATH+=/usr/local/frib/bin/sun4 ;
#	frib alpha * * * : PATH+=/usr/local/frib/bin/alpha ;
#	cvs * * * * <= gnu : CVSROOT=/usr/local/src/cvsroot ;
#
# NOTE: Sun SPARCs identify themselves as 'sun4m' or 'sun4c' not 'sun4',
#       so use 'sun4*' to match both.
#
# Package matching is done sequentially through the file and _every_ record
# that matches will be added to the environment. Path additions (+=) are
# made to the head of a path list and duplicates are removed from the tail.
# Matches are case insensitive.
#
#
# Groups format:
#
#	<groupname> := <packagename>[, <packagename>...] ;
#
# No pattern matching is available for <groupname> or <packagename>. Groups
# cannot reference other groups, only packages. Names are case insensitive.
#
# E.g.:
#
#	standard-user-settings := standard, X, TeX ;
#	openwin-user-settings := standard, OpenWin, TeX ;
#
#
# Annotations:
#
#	>> name : "..." <<
#
# Annotations are used to document packages. The name and description of
# each package should be given. These are listed with the '-l' option of
# usepackage.
#


### Basic groups: ###

X11-user := hw-os, standard, X11 ;


### Empty path: ###

>> none : "empty paths" <<

none * * * * :			PATH = "",
				MANPATH = "",
				LD_LIBRARY_PATH = "" ;


### If you absolutely insist on such a security hole: ###

>> dot : "add current directory to PATH (possible security hole)" <<

dot * * * * :			PATH += . ;


### Useful side-effect use of usepackage: ###

# This is useful if you want to switch on machine type in your startup
# script. Add more matches here as necessary.

>> hw-os : "sets the HW_OS variable" <<

hw-os sun4* SunOS 5.* * :	HW_OS="sparc-sun-solaris2" ;
hw-os alpha OSF1 * * :		HW_OS="alpha-dec-osf" ;
hw-os i86pc SunOS 5.* * :	HW_OS="i386-unknown-solaris2" ;
hw-os IP22 IRIX * * :		HW_OS="mips-sgi-irix" ;
hw-os {i86pc,i586} Linux * * :	HW_OS="i386-unknown-linux" ;
hw-os powerpc Darwin 5.* * :	HW_OS="powerpc-apple-darwin" ;


### Standard things that everyone should have: ###

>> standard : "normal system paths" <<

standard * SunOS 5.* * :	PATH += /usr/ccs/bin,
				LD_LIBRARY_PATH += /usr/ccs/lib ;
standard * * * * :		PATH += /usr/local/bin:/usr/bin:/bin,
				MANPATH += /usr/local/man:/usr/man,
				LD_LIBRARY_PATH += /usr/lib:/lib ;

# Neglect not the Berkelian way...

>> bsd : "Berkeley UNIX style commands" <<

bsd * * * * :			PATH += /usr/ucb ;
bsd * SunOS * * :		LD_LIBRARY_PATH += /usr/ucblib ;

# System administration binaries

>> sysadm : "system administration commands" <<

sysadm * * * * :		PATH += /usr/local/sbin:/usr/sbin:/sbin ;

# X binaries etc

>> X11:	"locally installed X11 distribution" <<

X11 * * * * :		PATH += /usr/X11/bin,
			MANPATH += /usr/X11/man,
			LD_LIBRARY_PATH += /usr/X11/lib,
			XFILESEARCHPATH += /usr/X11/lib/%T/%N%S ;


### Include user's own packages information: ###

(include ~/.packages)