# vim: ft=make ts=4 sw=4 noet

NAME    = pkgutil
VERSION = 2.6.7ozsw
GARTYPE = v2

DESCRIPTION = SVR4 package management utility for OZSW
define BLURB
  pkgutil manages OZSW SVR4 packages: install, upgrade, remove,
  and dependency resolution against the OZSW package catalog.
endef

# Source lives in mgar/pkgutil/ (sibling of gar/ and pkg/)
FILEDIR    = $(abspath $(CURDIR)/../../pkgutil)
FILE_SITES = file://$(FILEDIR)/
DISTFILES  = pkgutil

# Single script — no extraction, configure, build, or test needed
EXTRACT_SCRIPTS   =
WORKSRC           = $(DOWNLOADDIR)
CONFIGURE_SCRIPTS =
BUILD_SCRIPTS     =
TEST_SCRIPTS      =
INSTALL_SCRIPTS   =

# Skip checksumming for the bundled source
NOCHECKSUM = pkgutil

PACKAGES                += OZSWpkgutil
SPKG_DESC_OZSWpkgutil   = SVR4 package management utility for OZSW
CATALOGNAME_OZSWpkgutil = pkgutil
PKGFILES_OZSWpkgutil    = .*

post-install:
	ginstall -d $(DESTDIR)$(bindir)
	ginstall -m 755 $(DOWNLOADDIR)/pkgutil $(DESTDIR)$(bindir)/pkgutil
	@$(MAKECOOKIE)

include gar/category.mk
