11de7b4b8SPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31de7b4b8SPedro F. Giffuni * 4fb2ad9d3SUlrich Spörlein * Copyright © 2002, Jörg Wunsch 5e97f67f5SJoerg Wunsch * 6e97f67f5SJoerg Wunsch * Redistribution and use in source and binary forms, with or without 7e97f67f5SJoerg Wunsch * modification, are permitted provided that the following conditions 8e97f67f5SJoerg Wunsch * are met: 9e97f67f5SJoerg Wunsch * 1. Redistributions of source code must retain the above copyright 10e97f67f5SJoerg Wunsch * notice, this list of conditions and the following disclaimer. 11e97f67f5SJoerg Wunsch * 2. Redistributions in binary form must reproduce the above copyright 12e97f67f5SJoerg Wunsch * notice, this list of conditions and the following disclaimer in the 13e97f67f5SJoerg Wunsch * documentation and/or other materials provided with the distribution. 14e97f67f5SJoerg Wunsch * 15e97f67f5SJoerg Wunsch * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 16e97f67f5SJoerg Wunsch * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17e97f67f5SJoerg Wunsch * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18e97f67f5SJoerg Wunsch * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, 19e97f67f5SJoerg Wunsch * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20e97f67f5SJoerg Wunsch * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21e97f67f5SJoerg Wunsch * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22e97f67f5SJoerg Wunsch * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23e97f67f5SJoerg Wunsch * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24e97f67f5SJoerg Wunsch * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25e97f67f5SJoerg Wunsch * POSSIBILITY OF SUCH DAMAGE. 26e97f67f5SJoerg Wunsch */ 27e97f67f5SJoerg Wunsch 2811d9aa67SColin Percival /* Where to look for libexec */ 29103d6646SJohan Karlsson #define PATH_LIBEXEC "/usr/libexec" 30103d6646SJohan Karlsson 31e97f67f5SJoerg Wunsch /* Where to look for sources. */ 32e97f67f5SJoerg Wunsch #define PATH_SOURCES \ 33e97f67f5SJoerg Wunsch "/usr/src/bin:/usr/src/usr.bin:/usr/src/sbin:" \ 34e97f67f5SJoerg Wunsch "/usr/src/usr.sbin:/usr/src/libexec:" \ 35e97f67f5SJoerg Wunsch "/usr/src/gnu/bin:/usr/src/gnu/usr.bin:" \ 36e97f67f5SJoerg Wunsch "/usr/src/gnu/sbin:/usr/src/gnu/usr.sbin:" \ 3709d7d4adSEd Maste "/usr/src/contrib:" \ 38e97f67f5SJoerg Wunsch "/usr/src/secure/bin:/usr/src/secure/usr.bin:" \ 39e97f67f5SJoerg Wunsch "/usr/src/secure/sbin:/usr/src/secure/usr.sbin:" \ 408e4c33e9SJohan Karlsson "/usr/src/secure/libexec:/usr/src/crypto:" \ 418e4c33e9SJohan Karlsson "/usr/src/games" 42e97f67f5SJoerg Wunsch 43e97f67f5SJoerg Wunsch /* Each subdirectory of PATH_PORTS will be appended to PATH_SOURCES. */ 44e97f67f5SJoerg Wunsch #define PATH_PORTS "/usr/ports" 45e97f67f5SJoerg Wunsch 46e97f67f5SJoerg Wunsch /* How to query the current manpath. */ 47e97f67f5SJoerg Wunsch #define MANPATHCMD "manpath -q" 48e97f67f5SJoerg Wunsch 49e97f67f5SJoerg Wunsch /* How to obtain the location of manpages, and how to match this result. */ 508e4c33e9SJohan Karlsson #define MANWHEREISCMD "man -S1:8:6 -w %s 2>/dev/null" 511f05bc6cSJohan Karlsson #define MANWHEREISALLCMD "man -a -w %s 2>/dev/null" 52e97f67f5SJoerg Wunsch #define MANWHEREISMATCH "^.* [(]source: (.*)[)]$" 53e97f67f5SJoerg Wunsch 54e97f67f5SJoerg Wunsch /* Command used to locate sources that have not been found yet. */ 55e97f67f5SJoerg Wunsch #define LOCATECMD "locate '*'/%s 2>/dev/null" 56