aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-04 04:27:04 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-04 04:27:04 +0000
commit742adcabd74aa0adc91246bae79c97658a078415 (patch)
tree909044a5c2de4cbaeeccb4b9e792547ac5791b86 /Mk/bsd.port.subdir.mk
parenta00e77567c7938e3b9f3018d031dbbae7a5e57c9 (diff)
Notes
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r--Mk/bsd.port.subdir.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index 94444778c2bb..25682e8674ec 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -65,6 +65,17 @@ PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
.endif
.endif
+ID?= /usr/bin/id
+UID!= ${ID} -u
+LOCALBASE?= ${DESTDIR}/usr/local
+.if exists(${LOCALBASE}/sbin/pkg_info)
+PKG_INFO?= ${LOCALBASE}/sbin/pkg_info
+.else
+PKG_INFO?= /usr/sbin/pkg_info
+.endif
+SED?= /usr/bin/sed
+PKGINSTALLVER!= ${PKG_INFO} -P 2>/dev/null | ${SED} -e 's/.*: //'
+
.if !defined(OPSYS)
OPSYS!= /usr/bin/uname -s
.endif
@@ -301,7 +312,9 @@ README.html:
OPSYS="${OPSYS:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
OSREL="${OSREL:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
OSVERSION="${OSVERSION:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
- PORTOBJFORMAT="${PORTOBJFORMAT:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}"
+ PORTOBJFORMAT="${PORTOBJFORMAT:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
+ UID="${UID:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
+ PKGINSTALLVER="${PKGINSTALLVER:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}"
.endif