From 2fdfb38966eca038b6c6fe0620bb02c8911e970b Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sun, 28 Sep 2003 09:20:34 +0000 Subject: use PLIST_SUBST with DISTNAME to generate the spec file name in PLIST, so that PLIST wouldn't need to be updated on each pkg update --- databases/mysql-client/Makefile | 3 ++- databases/mysql-client/PLIST | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'databases/mysql-client') diff --git a/databases/mysql-client/Makefile b/databases/mysql-client/Makefile index 64092cd6b5a..c67125db514 100644 --- a/databases/mysql-client/Makefile +++ b/databases/mysql-client/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2003/09/28 09:03:52 jdolecek Exp $ +# $NetBSD: Makefile,v 1.27 2003/09/28 09:20:34 jdolecek Exp $ PKGNAME= ${DISTNAME:S/-/-client-/} PKGREVISION= 1 @@ -11,6 +11,7 @@ CONFIGURE_ARGS+= --without-server USE_BUILDLINK2= YES INFO_FILES= mysql.info +PLIST_SUBST+= DISTNAME="${DISTNAME}" post-install: cd ${PREFIX}/man/man1; ${RM} -f mysqld.1 safe_mysqld.1 diff --git a/databases/mysql-client/PLIST b/databases/mysql-client/PLIST index cc3064f0628..4b6a12fe018 100644 --- a/databases/mysql-client/PLIST +++ b/databases/mysql-client/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.7 2003/09/28 09:03:52 jdolecek Exp $ +@comment $NetBSD: PLIST,v 1.8 2003/09/28 09:20:34 jdolecek Exp $ bin/msql2mysql bin/mysql bin/mysqlcheck @@ -62,7 +62,7 @@ share/mysql/my-huge.cnf share/mysql/my-large.cnf share/mysql/my-medium.cnf share/mysql/my-small.cnf -share/mysql/mysql-3.23.51.spec +share/mysql/${DISTNAME}.spec share/mysql/mysql-log-rotate @dirrm share/mysql @dirrm lib/mysql -- cgit v1.2.3