pkg-descr

epkg is a package manager which uses the Encap Package Management System, a
method for flexibly handling installation and management of third-party
software on a Unix system. Encap places each package in its own subdirectory,
then automatically manages symlinks to their appropriate places in /usr/local.
The Encap package format includes features like postinstall scripts and
prerequisite checking. Other features include builtin tar/gzip extraction,
optional builtin FTP and HTTP support, transaction logging, and the ability to
automatically upgrade a package to the latest version.

WWW: http://www.encap.org/epkg/

pkg-install

#!/bin/sh

PKG_PREFIX=${PKG_PREFIX:-/usr/local}

if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi

case $2 in
POST-INSTALL)

if [ ! -d "${PKG_PREFIX}/etc" ]; then
echo "creating directory: ${PKG_PREFIX}/etc";
mkdir -p "${PKG_PREFIX}/etc";
fi

if [ ! -f "${PKG_PREFIX}/etc/mkencap_environment" ]; then
echo "installing: ${PKG_PREFIX}/etc/mkencap_environment";
cp "${PKG_PREFIX}/etc/mkencap_environment.sample" "${PKG_PREFIX}/etc/mkencap_environment";
fi
;;
esac

exit 0

pkg-plist

@unexec cmp %D/etc/mkencap_environment.sample %D/etc/mkencap_environment && rm %D/etc/mkencap_environment
bin/epkg
bin/mkencap
etc/mkencap_environment.sample
include/encap.h
include/encap_listhash.h
lib/libencap.a
share/doc/encap/encap2.0-specification.txt
share/doc/encap/encap2.1-specification.txt
share/doc/encap/encap_profile.dtd
share/mkencap.m4
@dirrmtry share/doc/encap