Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 15:08:07 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361459 - in head/net/libnss-mysql: . files
Message-ID:  <201407101508.s6AF87TS037117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Thu Jul 10 15:08:07 2014
New Revision: 361459
URL: http://svnweb.freebsd.org/changeset/ports/361459
QAT: https://qat.redports.org/buildarchive/r361459/

Log:
  - Convert to USES=libtool
  - Add INSTALL_TARGET=install-strip
  - Replace a patch with post-patch and post-install and use @sample

Deleted:
  head/net/libnss-mysql/files/
Modified:
  head/net/libnss-mysql/Makefile
  head/net/libnss-mysql/pkg-plist

Modified: head/net/libnss-mysql/Makefile
==============================================================================
--- head/net/libnss-mysql/Makefile	Thu Jul 10 15:05:57 2014	(r361458)
+++ head/net/libnss-mysql/Makefile	Thu Jul 10 15:08:07 2014	(r361459)
@@ -3,17 +3,27 @@
 
 PORTNAME=	libnss-mysql
 PORTVERSION=	1.5
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net
 MASTER_SITES=	SF
 
 MAINTAINER=	vd@FreeBSD.org
 COMMENT=	NSS module using a MySQL database for backend
 
-USE_AUTOTOOLS=	libtool
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-mysql=${LOCALBASE}
+INSTALL_TARGET=	install-strip
+USES=		libtool
 USE_LDCONFIG=	yes
-GNU_CONFIGURE=	yes
 USE_MYSQL=	yes
 
+post-patch:
+	@${REINPLACE_CMD} 's,$${srcdir}/aux/mkinstalldirs,$${mkinstalldirs},' \
+		${WRKSRC}/Makefile.in
+
+post-install:
+.for f in libnss-mysql.cfg libnss-mysql-root.cfg
+	${MV} ${STAGEDIR}${PREFIX}/etc/$f ${STAGEDIR}${PREFIX}/etc/$f.sample
+.endfor
+
 .include <bsd.port.mk>

Modified: head/net/libnss-mysql/pkg-plist
==============================================================================
--- head/net/libnss-mysql/pkg-plist	Thu Jul 10 15:05:57 2014	(r361458)
+++ head/net/libnss-mysql/pkg-plist	Thu Jul 10 15:08:07 2014	(r361459)
@@ -1,6 +1,5 @@
-etc/libnss-mysql.cfg-dist
-etc/libnss-mysql-root.cfg-dist
-lib/nss_mysql.a
-lib/nss_mysql.la
+@sample etc/libnss-mysql.cfg.sample
+@sample etc/libnss-mysql-root.cfg.sample
 lib/nss_mysql.so
 lib/nss_mysql.so.1
+lib/nss_mysql.so.1.0.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101508.s6AF87TS037117>