summaryrefslogtreecommitdiff
path: root/net/rwhoisd
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-03-01 18:37:14 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-03-01 18:37:14 +0000
commit3b5f83421b448d25858c4b205bd08f203ef62fcb (patch)
treeccf0628f6bdeba92d8df1e6ba34784801720d297 /net/rwhoisd
parentupgrade fonts to new version (diff)
Simplify shlib version generation by using PLIST_SUB.
Notes
Notes: svn path=/head/; revision=26472
Diffstat (limited to 'net/rwhoisd')
-rw-r--r--net/rwhoisd/Makefile10
-rw-r--r--net/rwhoisd/pkg-plist3
2 files changed, 4 insertions, 9 deletions
diff --git a/net/rwhoisd/Makefile b/net/rwhoisd/Makefile
index 990819fda3d8..b018063852e6 100644
--- a/net/rwhoisd/Makefile
+++ b/net/rwhoisd/Makefile
@@ -25,16 +25,12 @@ MAN8= rmkdbindex.8 rwhoisd.8
.include <bsd.port.pre.mk>
-PLIST= ${WRKDIR}/PLIST
.if ${OSVERSION} < 400011
-pre-install:
- @${SED} -e "/libc.so.4/d" \
- ${PKGDIR}/PLIST > ${PLIST}
+LIBCVERSION= 3.1
.else
-pre-install:
- @${SED} -e "/libc.so.3/d" \
- ${PKGDIR}/PLIST > ${PLIST}
+LIBCVERSION= 4
.endif
+PLIST_SUB= LIBCVERSION=${LIBCVERSION}
post-install:
${MKDIR} -p ${PREFIX}/share/doc/rwhois
diff --git a/net/rwhoisd/pkg-plist b/net/rwhoisd/pkg-plist
index cc660b5dbec6..6be26bcab95e 100644
--- a/net/rwhoisd/pkg-plist
+++ b/net/rwhoisd/pkg-plist
@@ -87,8 +87,7 @@ lib/rwhois/rwhois.log
lib/rwhois/rwhois.objects
lib/rwhois/rwhois.root
lib/rwhois/sbin/rwhoisd
-lib/rwhois/usr/lib/libc.so.3.1
-lib/rwhois/usr/lib/libc.so.4
+lib/rwhois/usr/lib/libc.so.%%LIBCVERSION%%
lib/rwhois/usr/libexec/ld.so
share/doc/rwhois/EXAMPLES
share/doc/rwhois/INSTALLATION