032306f2fa
include: * Drop support for "-b=..." and "-t=..." which are transformation options that are not supported by BSD install. * Add support for "-b" and "-B fmt" to allow backing up existing files. Only specifying "-b" yields a backup suffix of ".old" and "-B fmt" allows for sprintf(3)-style backup suffices. Number backups are supported using awk(1).
34 lines
888 B
Makefile
34 lines
888 B
Makefile
# $NetBSD: Makefile,v 1.3 2007/07/12 18:32:50 jlam Exp $
|
|
|
|
DISTNAME= install-sh-20070712
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= install script compatible with the BSD install program
|
|
|
|
USE_TOOLS+= sed
|
|
NO_CHECKSUM= yes
|
|
NO_MTREE= yes
|
|
NO_BUILD= yes
|
|
|
|
# Use the install script to perform installation to avoid bootstrapping
|
|
# issues.
|
|
#
|
|
INSTALL_SCRIPT= \
|
|
${SH} ${WRKSRC}/install-sh -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
|
|
INSTALL_SCRIPT_DIR= \
|
|
${SH} ${WRKSRC}/install-sh -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
|
|
|
|
do-extract:
|
|
@${CP} -R ${FILESDIR} ${WRKSRC}
|
|
|
|
do-configure:
|
|
${SED} -e "s|@DEFAULT_INSTALL_MODE@|"${PKGDIRMODE}"|g" \
|
|
${WRKSRC}/install-sh.in > ${WRKSRC}/install-sh
|
|
do-install:
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/install-sh ${PREFIX}/bin
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|