1# ex:ts=8 sw=4: 2# $OpenBSD: Paths.pm,v 1.7 2009/04/14 17:53:58 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 chmod() { '/bin/chmod' } # external command is used for symbolic modes. 36sub gzip() { '/usr/bin/gzip' } 37sub ftp() { $ENV{'FETCH_CMD'} || '/usr/bin/ftp' } 38sub groff() { '/usr/bin/groff' } 39sub sh() { '/bin/sh' } 40sub arch() { '/usr/bin/arch' } 41sub uname() { '/usr/bin/uname' } 42sub userdel() { '/usr/sbin/userdel' } 43sub groupdel() { '/usr/sbin/groupdel' } 44sub mknod() { '/sbin/mknod' } 45sub mount() { '/sbin/mount' } 46sub df() { '/bin/df' } 47sub ssh() { '/usr/bin/ssh' } 48sub make() { '/usr/bin/make' } 49sub mklocatedb() { '/usr/libexec/locate.mklocatedb' } 50 51# Various paths 52sub shells() { '/etc/shells' } 53sub pkgdb() { '/var/db/pkg' } 54sub localbase() { '/usr/local' } 55sub vartmp() { '/var/tmp' } 56sub portsdir() { '/usr/ports' } 57 58sub library_dirs() { ("/usr", "/usr/X11R6") } 59sub master_keys() { ("/etc/master_key") } 60 61sub font_cruft() { ("fonts.alias", "fonts.dir", "fonts.cache-1", "fonts.scale") } 62sub man_cruft() { ("whatis.db") } 63sub info_cruft() { ("dir") } 64 651; 66