summaryrefslogtreecommitdiff
path: root/pkgtools/libkver
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
committerjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
commit841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a (patch)
treefdd67c81079412bf94013749a954125434a9baca /pkgtools/libkver
parent6874584eae20f517f70816571f6d4ac696db16b3 (diff)
downloadpkgsrc-841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'pkgtools/libkver')
-rw-r--r--pkgtools/libkver/Makefile6
-rw-r--r--pkgtools/libkver/PLIST4
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/libkver/Makefile b/pkgtools/libkver/Makefile
index 3a4bb6522bc..b0ed8471516 100644
--- a/pkgtools/libkver/Makefile
+++ b/pkgtools/libkver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2007/07/26 12:24:52 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2008/04/12 22:43:09 jlam Exp $
DISTNAME= libkver-${VERSION}
CATEGORIES= pkgtools
@@ -26,13 +26,13 @@ ONLY_FOR_PLATFORM= NetBSD-*-*
BUILDLINK_PASSTHRU_DIRS= ${BSDSRCDIR}/sys
+PLIST_VARS= sysctl
LDD_SYSCTL!= ldd /sbin/sysctl 2>&1 || ${TRUE}
MAKE_ENV+= LDD_SYSCTL=${LDD_SYSCTL:Q} # save another ldd run
.if empty(LDD_SYSCTL:M*libc*)
-PLIST_SUBST+= HAS_SYSCTL=
+PLIST.sysctl= yes
FILES_SUBST+= HAS_SYSCTL=true
.else
-PLIST_SUBST+= HAS_SYSCTL="@comment "
FILES_SUBST+= HAS_SYSCTL=false
.endif
diff --git a/pkgtools/libkver/PLIST b/pkgtools/libkver/PLIST
index 1303710dbb6..56ed050cf42 100644
--- a/pkgtools/libkver/PLIST
+++ b/pkgtools/libkver/PLIST
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2003/12/13 17:45:59 seb Exp $
+@comment $NetBSD: PLIST,v 1.3 2008/04/12 22:43:09 jlam Exp $
lib/libkver.a
lib/libkver.so
lib/libkver.so.1
lib/libkver.so.1.0
man/cat3/kver.0
man/man3/kver.3
-${HAS_SYSCTL}sbin/sysctl
+${PLIST.sysctl}sbin/sysctl