a6f8c45bfc
+RCD_SCRIPTS, and +PERMS subscripts to handle copying config files and rc.d scripts, and setting special permissions on files. The +FILES and +RCD_SCRIPTS are basically identical except for different embedded packets of data, and they feature reference-counting for the files in case multiple packages share the same config file. Garbage-collect unused functions and definitions in the install scripts now that the subscripts are self-contained.
108 lines
2 KiB
Text
108 lines
2 KiB
Text
#!@SH@
|
|
#
|
|
# start of header
|
|
#
|
|
# $NetBSD: header,v 1.32 2005/02/02 10:33:01 jlam Exp $
|
|
|
|
PKGNAME=$1
|
|
STAGE=$2
|
|
|
|
AWK="@AWK@"
|
|
BASENAME="@BASENAME@"
|
|
CAT="@CAT@"
|
|
CHGRP="@CHGRP@"
|
|
CHMOD="@CHMOD@"
|
|
CHOWN="@CHOWN@"
|
|
CMP="@CMP@"
|
|
CP="@CP@"
|
|
DIRNAME="@DIRNAME@"
|
|
ECHO="@ECHO@"
|
|
ECHO_N="@ECHO_N@"
|
|
EGREP="@EGREP@"
|
|
EXPR="@EXPR@"
|
|
FALSE="@FALSE@"
|
|
FIND="@FIND@"
|
|
GREP="@GREP@"
|
|
GTAR="@GTAR@"
|
|
HEAD="@HEAD@"
|
|
ID="@ID@"
|
|
LINKFARM="@LINKFARM@"
|
|
LN="@LN@"
|
|
LS="@LS@"
|
|
MKDIR="@MKDIR@"
|
|
MV="@MV@"
|
|
PERL5="@PERL5@"
|
|
PKG_ADMIN="@PKG_ADMIN@"
|
|
PKG_INFO="@PKG_INFO@"
|
|
PWD_CMD="@PWD_CMD@"
|
|
RM="@RM@"
|
|
RMDIR="@RMDIR@"
|
|
SED="@SED@"
|
|
SETENV="@SETENV@"
|
|
SH="@SH@"
|
|
SORT="@SORT@"
|
|
SU="@SU@"
|
|
TEST="@TEST@"
|
|
TOUCH="@TOUCH@"
|
|
TR="@TR@"
|
|
TRUE="@TRUE@"
|
|
XARGS="@XARGS@"
|
|
|
|
: ${PKG_METADATA_DIR=`${PWD_CMD}`}
|
|
PKGBASE="@PKGBASE@"
|
|
|
|
LOCALBASE="@LOCALBASE@"
|
|
X11BASE="@X11BASE@"
|
|
DEPOTBASE="@DEPOTBASE@"
|
|
PREFIX="@PREFIX@"
|
|
case ${PKG_PREFIX} in
|
|
${LOCALBASE}/*) VIEW="${PKG_PREFIX#${LOCALBASE}/}" ;;
|
|
*) VIEW="" ;;
|
|
esac
|
|
|
|
PKG_SYSCONFBASE="@PKG_SYSCONFBASE@"
|
|
PKG_SYSCONFDEPOTBASE="@PKG_SYSCONFDEPOTBASE@"
|
|
PKG_SYSCONFBASEDIR="@PKG_SYSCONFBASEDIR@"
|
|
PKG_SYSCONFDIR="@PKG_SYSCONFDIR@"
|
|
CONF_DEPENDS="@CONF_DEPENDS@"
|
|
|
|
case ${VIEW} in
|
|
"") PKG_SYSCONFVIEWBASE="${PKG_SYSCONFBASE}" ;;
|
|
*) PKG_SYSCONFVIEWBASE="${PKG_SYSCONFBASE}/${VIEW}" ;;
|
|
esac
|
|
|
|
PKG_REGISTER_SHELLS="@PKG_REGISTER_SHELLS@"
|
|
PKG_SHELL="@PKG_SHELL@"
|
|
|
|
CONF_IGNORE_FILES="*[~#] *.OLD *.orig *,v .pkgsrc */.pkgsrc"
|
|
|
|
PKG_INSTALLATION_TYPE="@PKG_INSTALLATION_TYPE@"
|
|
|
|
case "${PKG_CREATE_USERGROUP:-@PKG_CREATE_USERGROUP@}" in
|
|
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
|
_PKG_CREATE_USERGROUP=YES
|
|
;;
|
|
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
|
|
_PKG_CREATE_USERGROUP=NO
|
|
;;
|
|
esac
|
|
|
|
case "${PKG_CONFIG:-@PKG_CONFIG@}" in
|
|
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
|
_PKG_CONFIG=YES
|
|
;;
|
|
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
|
|
_PKG_CONFIG=NO
|
|
;;
|
|
esac
|
|
|
|
case "${PKG_RCD_SCRIPTS:-@PKG_RCD_SCRIPTS@}" in
|
|
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
|
|
_PKG_RCD_SCRIPTS=YES
|
|
;;
|
|
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
|
|
_PKG_RCD_SCRIPTS=NO
|
|
;;
|
|
esac
|
|
|
|
# end of header
|