summaryrefslogtreecommitdiff
path: root/sysutils/install-sh/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-17 14:19:01 +0000
committerjlam <jlam@pkgsrc.org>2006-07-17 14:19:01 +0000
commitd60529991ea2c9a0578d188ac8c1ef6b20bac921 (patch)
tree789035abea221908291fd0a61a8634ee2b6d27d5 /sysutils/install-sh/Makefile
parent35d5c8403474b841910be2e223d135e1f15354ae (diff)
downloadpkgsrc-d60529991ea2c9a0578d188ac8c1ef6b20bac921.tar.gz
This package provides a script ``install-sh'' that is compatible with
the BSD install program. The script comes from pkgsrc/bootstrap.
Diffstat (limited to 'sysutils/install-sh/Makefile')
-rw-r--r--sysutils/install-sh/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/install-sh/Makefile b/sysutils/install-sh/Makefile
new file mode 100644
index 00000000000..6bd9a6772f6
--- /dev/null
+++ b/sysutils/install-sh/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/17 14:19:01 jlam Exp $
+
+DISTNAME= install-sh-20060714
+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"