summaryrefslogtreecommitdiff
path: root/net/ethereal
diff options
context:
space:
mode:
authortron <tron>2001-06-30 23:55:55 +0000
committertron <tron>2001-06-30 23:55:55 +0000
commit61979c8f42cc0e17e65ccb2f7aaf11a7f4e57ff4 (patch)
tree7ca66b4203cf8253582dcf247e411d20ea01d360 /net/ethereal
parentd85a24f34d4f576e21fddafcf0e48f4e50d627a7 (diff)
downloadpkgsrc-61979c8f42cc0e17e65ccb2f7aaf11a7f4e57ff4.tar.gz
Get rid of "ETHEREAL_VERSION" variable by extracting the version number
from the package name.
Diffstat (limited to 'net/ethereal')
-rw-r--r--net/ethereal/Makefile8
-rw-r--r--net/ethereal/pkg/PLIST16
2 files changed, 11 insertions, 13 deletions
diff --git a/net/ethereal/Makefile b/net/ethereal/Makefile
index cfd1ab4a249..86d20c97a30 100644
--- a/net/ethereal/Makefile
+++ b/net/ethereal/Makefile
@@ -1,8 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2001/06/12 20:33:06 jlam Exp $
-#
+# $NetBSD: Makefile,v 1.48 2001/06/30 23:55:55 tron Exp $
-ETHEREAL_VERSION= 0.8.18
-DISTNAME= ethereal-${ETHEREAL_VERSION}
+DISTNAME= ethereal-0.8.18
CATEGORIES= net
MASTER_SITES= ftp://ftp.ethereal.com/pub/ethereal/ \
ftp://ftp.sunet.se/pub/network/monitoring/ethereal/
@@ -26,7 +24,7 @@ CONFIGURE_ARGS+= --with-gtk-prefix="${GTKDIR}" \
--with-ucdsnmp=${LOCALBASE}
LIBS+= -lcrypto
-PLIST_SUBST+= ETHEREAL_VERSION=${ETHEREAL_VERSION}
+PLIST_SUBST+= PKGVERSION=${PKGNAME:S/ethereal-//}
post-install:
${INSTALL_MAN} ${WRKSRC}/editcap.1 ${PREFIX}/man/man1
diff --git a/net/ethereal/pkg/PLIST b/net/ethereal/pkg/PLIST
index 0637c78c857..b61331875bf 100644
--- a/net/ethereal/pkg/PLIST
+++ b/net/ethereal/pkg/PLIST
@@ -1,17 +1,17 @@
-@comment $NetBSD: PLIST,v 1.11 2000/11/29 04:02:01 mycroft Exp $
+@comment $NetBSD: PLIST,v 1.12 2001/06/30 23:55:56 tron Exp $
bin/editcap
bin/ethereal
bin/tethereal
etc/manuf
-lib/ethereal/plugins/${ETHEREAL_VERSION}/gryphon.la
-lib/ethereal/plugins/${ETHEREAL_VERSION}/gryphon.a
-lib/ethereal/plugins/${ETHEREAL_VERSION}/gryphon.so
-lib/ethereal/plugins/${ETHEREAL_VERSION}/mgcp.la
-lib/ethereal/plugins/${ETHEREAL_VERSION}/mgcp.a
-lib/ethereal/plugins/${ETHEREAL_VERSION}/mgcp.so
+lib/ethereal/plugins/${PKGVERSION}/gryphon.la
+lib/ethereal/plugins/${PKGVERSION}/gryphon.a
+lib/ethereal/plugins/${PKGVERSION}/gryphon.so
+lib/ethereal/plugins/${PKGVERSION}/mgcp.la
+lib/ethereal/plugins/${PKGVERSION}/mgcp.a
+lib/ethereal/plugins/${PKGVERSION}/mgcp.so
man/man1/editcap.1
man/man1/ethereal.1
man/man1/tethereal.1
-@dirrm lib/ethereal/plugins/${ETHEREAL_VERSION}
+@dirrm lib/ethereal/plugins/${PKGVERSION}
@dirrm lib/ethereal/plugins
@dirrm lib/ethereal