pkgsrc/sysutils/install-sh/Makefile
tez 8f71f52613 Make -c (copy) the default operation (vs. move) to come in line with other
install tools this is built to emulate.  This should fix at least:
pkg/42976
pkg/43951
2010-10-08 19:57:05 +00:00

34 lines
929 B
Makefile

# $NetBSD: Makefile,v 1.8 2010/10/08 19:57:05 tez Exp $
DISTNAME= install-sh-20100824
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= install script compatible with the BSD install program
PKG_DESTDIR_SUPPORT= user-destdir
BOOTSTRAP_PKG= yes
USE_TOOLS+= sed
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} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/install-sh ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"