pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/mysql-client use PLIST_SUBST with DISTNAME t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bde021e28e49
branches:  trunk
changeset: 462215:bde021e28e49
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sun Sep 28 09:20:34 2003 +0000

description:
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

diffstat:

 databases/mysql-client/Makefile |  3 ++-
 databases/mysql-client/PLIST    |  4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 4f91a4d4aec3 -r bde021e28e49 databases/mysql-client/Makefile
--- a/databases/mysql-client/Makefile   Sun Sep 28 09:13:55 2003 +0000
+++ b/databases/mysql-client/Makefile   Sun Sep 28 09:20:34 2003 +0000
@@ -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 @@
 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 -r 4f91a4d4aec3 -r bde021e28e49 databases/mysql-client/PLIST
--- a/databases/mysql-client/PLIST      Sun Sep 28 09:13:55 2003 +0000
+++ b/databases/mysql-client/PLIST      Sun Sep 28 09:20:34 2003 +0000
@@ -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-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



Home | Main Index | Thread Index | Old Index