xref: /openbsd/usr.sbin/pkg_add/OpenBSD/Paths.pm (revision 752d47c3)
1# ex:ts=8 sw=4:
2# $OpenBSD: Paths.pm,v 1.19 2012/01/07 16:28:16 espie Exp $
3#
4# Copyright (c) 2007 Marc Espie <espie@openbsd.org>
5#
6# Permission to use, copy, modify, and distribute this software for any
7# purpose with or without fee is hereby granted, provided that the above
8# copyright notice and this permission notice appear in all copies.
9#
10# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
18use strict;
19use warnings;
20
21package OpenBSD::Paths;
22
23# Commands
24sub ldconfig() { '/sbin/ldconfig' }
25sub chroot() { '/usr/sbin/chroot' }
26sub mkfontscale() { '/usr/X11R6/bin/mkfontscale' }
27sub mkfontdir() { '/usr/X11R6/bin/mkfontdir' }
28sub fc_cache() { '/usr/X11R6/bin/fc-cache' }
29sub install_info() { '/usr/bin/install-info' }
30sub useradd() { '/usr/sbin/useradd' }
31sub groupadd() { '/usr/sbin/groupadd' }
32sub sysctl() { '/sbin/sysctl' }
33sub openssl() { '/usr/sbin/openssl' }
34sub pkgca() { '/etc/ssl/pkgca.pem' }
35sub pkg_add() { '/usr/sbin/pkg_add' }
36sub chmod() { '/bin/chmod' }	# external command is used for symbolic modes.
37sub gzip() { '/usr/bin/gzip' }
38sub ftp() { $ENV{'FETCH_CMD'} || '/usr/bin/ftp' }
39sub groff() { '/usr/local/bin/groff' }
40sub sh() { '/bin/sh' }
41sub arch() { '/usr/bin/arch' }
42sub uname() { '/usr/bin/uname' }
43sub userdel() { '/usr/sbin/userdel' }
44sub groupdel() { '/usr/sbin/groupdel' }
45sub mknod() { '/sbin/mknod' }
46sub mount() { '/sbin/mount' }
47sub df() { '/bin/df' }
48sub ssh() { '/usr/bin/ssh' }
49sub make() { '/usr/bin/make' }
50sub makewhatis() { '/usr/libexec/makewhatis' }
51sub mklocatedb() { '/usr/libexec/locate.mklocatedb' }
52sub hostname() { '/bin/hostname' }
53sub sudo() { '/usr/bin/sudo' }
54sub du() { '/usr/bin/du' }
55sub diff() { '/usr/bin/diff' }
56
57# Various paths
58sub shells() { '/etc/shells' }
59sub pkgdb() { '/var/db/pkg' }
60sub localbase() { '/usr/local' }
61sub vartmp() { '/var/tmp' }
62sub portsdir() { '/usr/ports' }
63
64sub library_dirs() { ("/usr", "/usr/X11R6") }
65sub master_keys() { ("/etc/master_key") }
66sub pkgconf() { "/etc/pkg.conf" }
67
68sub font_cruft() { ("fonts.alias", "fonts.dir", "fonts.cache-1", "fonts.scale") }
69sub man_cruft() { ("whatis.db", "whatis.index") }
70sub info_cruft() { ("dir") }
71
721;
73