Date: Wed, 19 Oct 2016 15:28:47 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424262 - in head/databases: . percona-pam-for-mysql percona-pam-for-mysql/files percona56-server Message-ID: <201610191528.u9JFSlat011102@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Wed Oct 19 15:28:46 2016 New Revision: 424262 URL: https://svnweb.freebsd.org/changeset/ports/424262 Log: Add new port databases/percona-pam-for-mysql Percona PAM authentication plugin for MySQL. WWW: https://www.percona.com/ Differential Revision: https://reviews.freebsd.org/D8193 Added: head/databases/percona-pam-for-mysql/ head/databases/percona-pam-for-mysql/Makefile (contents, props changed) head/databases/percona-pam-for-mysql/files/ head/databases/percona-pam-for-mysql/files/pam.conf (contents, props changed) head/databases/percona-pam-for-mysql/pkg-descr (contents, props changed) head/databases/percona-pam-for-mysql/pkg-message (contents, props changed) head/databases/percona-pam-for-mysql/pkg-plist (contents, props changed) Modified: head/databases/Makefile head/databases/percona56-server/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Wed Oct 19 15:21:07 2016 (r424261) +++ head/databases/Makefile Wed Oct 19 15:28:46 2016 (r424262) @@ -551,6 +551,7 @@ SUBDIR += pecl-pdo_user SUBDIR += pecl-rrd SUBDIR += pecl-tokyo_tyrant + SUBDIR += percona-pam-for-mysql SUBDIR += percona-toolkit SUBDIR += percona55-client SUBDIR += percona55-server Added: head/databases/percona-pam-for-mysql/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/percona-pam-for-mysql/Makefile Wed Oct 19 15:28:46 2016 (r424262) @@ -0,0 +1,27 @@ +# Created by: Mark Felder <feld@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= percona +PKGNAMESUFFIX= -pam-for-mysql + +COMMENT= PAM plugin for MySQL + +MASTERDIR= ${.CURDIR}/../percona56-server + +PKGMESSAGE= ${.CURDIR}/pkg-message +PATCHDIR= ${MASTERDIR}/files +FILESDIR= ${.CURDIR}/files +PLIST= ${.CURDIR}/pkg-plist +DESCR= ${.CURDIR}/pkg-descr + +CMAKE_ARGS+= -DWITH_PAM=1 + +PLUGIN_ONLY= yes + +do-install: + (cd ${WRKSRC}/plugin/percona-pam-for-mysql && ${MAKE} ${MAKE_ARGS} install) + ${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/mysqld.sample + +.include "${MASTERDIR}/Makefile" + +RUN_DEPENDS= # This plugin has no run dependencies. It should work with any desired mysql client/server. Added: head/databases/percona-pam-for-mysql/files/pam.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/percona-pam-for-mysql/files/pam.conf Wed Oct 19 15:28:46 2016 (r424262) @@ -0,0 +1,12 @@ +# +# PAM configuration for the "mysqld" service +# + +# auth +auth include system + +# account +account include system + +# password +password include system Added: head/databases/percona-pam-for-mysql/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/percona-pam-for-mysql/pkg-descr Wed Oct 19 15:28:46 2016 (r424262) @@ -0,0 +1,3 @@ +Percona PAM authentication plugin for MySQL. + +WWW: https://www.percona.com/ Added: head/databases/percona-pam-for-mysql/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/percona-pam-for-mysql/pkg-message Wed Oct 19 15:28:46 2016 (r424262) @@ -0,0 +1,7 @@ +Documentation for using percona-pam-for-mysql authentication plugin can +be found at: + +https://www.percona.com/doc/percona-pam-for-mysql/index.html + +Please note that you need this plugin installed on both the client and +server for authentication to be successful. Added: head/databases/percona-pam-for-mysql/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/percona-pam-for-mysql/pkg-plist Wed Oct 19 15:28:46 2016 (r424262) @@ -0,0 +1,4 @@ +@sample etc/pam.d/mysqld.sample +lib/mysql/plugin/auth_pam.so +lib/mysql/plugin/auth_pam_compat.so +lib/mysql/plugin/dialog.so Modified: head/databases/percona56-server/Makefile ============================================================================== --- head/databases/percona56-server/Makefile Wed Oct 19 15:21:07 2016 (r424261) +++ head/databases/percona56-server/Makefile Wed Oct 19 15:28:46 2016 (r424262) @@ -14,7 +14,8 @@ COMMENT?= Multithreaded SQL database (se BROKEN_powerpc64= Does not build -SLAVEDIRS= databases/percona56-client +SLAVEDIRS= databases/percona56-client \ + databases/percona-pam-for-mysql USES= bison cmake perl5 shebangfix OPTIONS_DEFINE= OPENSSL FASTMTX INNODBMEMCACHED TOKUDB @@ -48,8 +49,7 @@ CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc -DINSTALL_SQLBENCHDIR="share/mysql" \ -DINSTALL_SUPPORTFILESDIR="share/mysql" \ -DWITH_EDITLINE=system \ - -DWITH_LIBWRAP=1 \ - -DHAVE_PAM=0 + -DWITH_LIBWRAP=1 SHEBANG_FILES= scripts/*.pl* scripts/*.sh @@ -57,8 +57,14 @@ SHEBANG_FILES= scripts/*.pl* scripts/*.s .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. .endif +.ifdef CLIENT_ONLY +# Client part +USES+= libedit +.elifdef PLUGIN_ONLY +# For building plugins (percona-pam-for-mysql, etc) +# Currently do nothing special +.else # MySQL-Server part -.if !defined(CLIENT_ONLY) USES+=mysql:56p CONFLICTS_INSTALL= mysql*-server-* \ @@ -83,9 +89,6 @@ CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON" post-install: @${MKDIR} ${STAGEDIR}/var/db/mysql - -.else -USES+= libedit .endif post-patch: @@ -108,5 +111,4 @@ IGNORE= unsupported on FreeBSD 9 or olde .endif - .include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610191528.u9JFSlat011102>