---
name: "port-getpkgpath-helper"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/port-getpkgpath-helper"
---

# port-getpkgpath-helper(1)

deduces PKGPATH from current directory

## NAME

**port-getpkgpath-helper** – deduces PKGPATH from current directory

## SYNOPSIS

**port-getpkgpath-helper** *dir*

## DESCRIPTION

**port-getpkgpath-helper** deduces the PKGPATH corresponding to a given directory *dir*, by trying to strip directories from the environment variable PORTSDIR\_PATH.

This is a helper script for *bsd.port.subdir.mk*.
