summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorasau <asau>2013-02-23 23:52:32 +0000
committerasau <asau>2013-02-23 23:52:32 +0000
commitfedb9b1576af1d91e19dd33e8517328db0c71501 (patch)
tree2e44efd3314df41510c7fc7464cc4f8e6c7d4ed8 /pkgtools
parent8498c7c2ca7a13bbdb5654c4dd8b91b486095cd5 (diff)
downloadpkgsrc-fedb9b1576af1d91e19dd33e8517328db0c71501.tar.gz
Help people using mk files outside pkgsrc, provide saner default values.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/bootstrap-mk-files/files/bootstrap.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/bootstrap.sh b/pkgtools/bootstrap-mk-files/files/bootstrap.sh
index b27bacf9674..d9a02f19920 100755
--- a/pkgtools/bootstrap-mk-files/files/bootstrap.sh
+++ b/pkgtools/bootstrap-mk-files/files/bootstrap.sh
@@ -12,6 +12,14 @@
# - SYSCONFDIR
#
+: ${CP:=cp}
+: ${SED:=sed}
+: ${OPSYS:=$(uname)}
+: ${ROOT_USER:=$(id -un 0)}
+: ${ROOT_GROUP:=$(id -gn "${ROOT_USER}")}
+: ${MK_DST:=/usr/local/share/mk}
+: ${SYSCONFDIR:=/usr/local/etc}
+
for file in bsd.README bsd.dep.mk bsd.depall.mk bsd.doc.mk bsd.files.mk \
bsd.hostprog.mk bsd.inc.mk bsd.info.mk bsd.kernobj.mk bsd.kinc.mk \
bsd.kmod.mk bsd.lib.mk bsd.links.mk bsd.man.mk bsd.nls.mk \