Page MenuHomeFreeBSD

D8193.diff
No OneTemporary

D8193.diff

Index: head/databases/Makefile
===================================================================
--- head/databases/Makefile
+++ head/databases/Makefile
@@ -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
Index: head/databases/percona-pam-for-mysql/Makefile
===================================================================
--- head/databases/percona-pam-for-mysql/Makefile
+++ head/databases/percona-pam-for-mysql/Makefile
@@ -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.
Index: head/databases/percona-pam-for-mysql/files/pam.conf
===================================================================
--- head/databases/percona-pam-for-mysql/files/pam.conf
+++ head/databases/percona-pam-for-mysql/files/pam.conf
@@ -0,0 +1,12 @@
+#
+# PAM configuration for the "mysqld" service
+#
+
+# auth
+auth include system
+
+# account
+account include system
+
+# password
+password include system
Index: head/databases/percona-pam-for-mysql/pkg-descr
===================================================================
--- head/databases/percona-pam-for-mysql/pkg-descr
+++ head/databases/percona-pam-for-mysql/pkg-descr
@@ -0,0 +1,3 @@
+Percona PAM authentication plugin for MySQL.
+
+WWW: https://www.percona.com/
Index: head/databases/percona-pam-for-mysql/pkg-message
===================================================================
--- head/databases/percona-pam-for-mysql/pkg-message
+++ head/databases/percona-pam-for-mysql/pkg-message
@@ -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.
Index: head/databases/percona-pam-for-mysql/pkg-plist
===================================================================
--- head/databases/percona-pam-for-mysql/pkg-plist
+++ head/databases/percona-pam-for-mysql/pkg-plist
@@ -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
Index: head/databases/percona56-server/Makefile
===================================================================
--- head/databases/percona56-server/Makefile
+++ head/databases/percona56-server/Makefile
@@ -14,7 +14,8 @@
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 @@
-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 @@
.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 @@
post-install:
@${MKDIR} ${STAGEDIR}/var/db/mysql
-
-.else
-USES+= libedit
.endif
post-patch:
@@ -108,5 +111,4 @@
.endif
-
.include <bsd.port.post.mk>

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 19, 6:05 AM (1 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29950800
Default Alt Text
D8193.diff (4 KB)

Event Timeline