aboutsummaryrefslogtreecommitdiff
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
parentf3ebc2c77a3497e1d466cc1d4ceb699797debe34 (diff)
downloadports-3b5f83421b448d25858c4b205bd08f203ef62fcb.tar.gz
ports-3b5f83421b448d25858c4b205bd08f203ef62fcb.zip
Simplify shlib version generation by using PLIST_SUB.
Notes
Notes: svn path=/head/; revision=26472
-rw-r--r--net/rwhois/Makefile10
-rw-r--r--net/rwhois/pkg-plist3
-rw-r--r--net/rwhoisd/Makefile10
-rw-r--r--net/rwhoisd/pkg-plist3
4 files changed, 8 insertions, 18 deletions
diff --git a/net/rwhois/Makefile b/net/rwhois/Makefile
index 990819fda3d8..b018063852e6 100644
--- a/net/rwhois/Makefile
+++ b/net/rwhois/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/rwhois/pkg-plist b/net/rwhois/pkg-plist
index cc660b5dbec6..6be26bcab95e 100644
--- a/net/rwhois/pkg-plist
+++ b/net/rwhois/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
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