xref: /openbsd/usr.sbin/pkg_add/OpenBSD/Paths.pm (revision 4dce299b)
1# ex:ts=8 sw=4:
2# $OpenBSD: Paths.pm,v 1.27 2014/01/17 10:54:14 espie Exp $
3#
4# Copyright (c) 2007-2014 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 signify() { '/usr/bin/signify' }
36sub signifykey { my $s = $_[1]; "/etc/signify/$s.pub" }
37sub pkg_add() { '/usr/sbin/pkg_add' }
38sub chmod() { '/bin/chmod' }	# external command is used for symbolic modes.
39sub gzip() { '/usr/bin/gzip' }
40sub ftp() { $ENV{'FETCH_CMD'} || '/usr/bin/ftp' }
41sub groff() { '/usr/local/bin/groff' }
42sub sh() { '/bin/sh' }
43sub arch() { '/usr/bin/arch' }
44sub uname() { '/usr/bin/uname' }
45sub userdel() { '/usr/sbin/userdel' }
46sub groupdel() { '/usr/sbin/groupdel' }
47sub mknod() { '/sbin/mknod' }
48sub mount() { '/sbin/mount' }
49sub df() { '/bin/df' }
50sub ssh() { '/usr/bin/ssh' }
51sub make() { '/usr/bin/make' }
52sub mklocatedb() { '/usr/libexec/locate.mklocatedb' }
53sub hostname() { '/bin/hostname' }
54sub sudo() { '/usr/bin/sudo' }
55sub du() { '/usr/bin/du' }
56sub diff() { '/usr/bin/diff' }
57sub sha256() { '/bin/sha256' }
58
59# Various paths
60sub shells() { '/etc/shells' }
61sub pkgdb() { '/var/db/pkg' }
62sub localbase() { '/usr/local' }
63sub vartmp() { '/var/tmp' }
64sub portsdir() { '/usr/ports' }
65
66sub library_dirs() { ("/usr", "/usr/X11R6") }
67sub master_keys() { ("/etc/master_key") }
68sub pkgconf() { "/etc/pkg.conf" }
69
70sub font_cruft() { ("fonts.alias", "fonts.dir", "fonts.cache-1", "fonts.scale") }
71sub man_cruft() { ("whatis.db", "mandoc.db", "mandoc.index") }
72sub info_cruft() { ("dir") }
73
741;
75