2013-04-06 05:45:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2013/04/06 03:45:24 rodent Exp $
|
2006-07-17 16:19:01 +02:00
|
|
|
|
2010-10-08 21:57:05 +02:00
|
|
|
DISTNAME= install-sh-20100824
|
2006-07-17 16:19:01 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2013-04-06 05:45:05 +02:00
|
|
|
COMMENT= Install script compatible with the BSD install program
|
2006-07-17 16:19:01 +02:00
|
|
|
|
2008-06-19 20:36:51 +02:00
|
|
|
BOOTSTRAP_PKG= yes
|
2006-07-17 16:19:01 +02:00
|
|
|
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:
|
2008-05-24 15:30:36 +02:00
|
|
|
${INSTALL_SCRIPT_DIR} ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/install-sh ${DESTDIR}${PREFIX}/bin
|
2006-07-17 16:19:01 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|