Page MenuHomeFreeBSD

D8193.id21179.diff
No OneTemporary

D8193.id21179.diff

Index: databases/percona-pam-for-mysql/Makefile
===================================================================
--- /dev/null
+++ 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: databases/percona-pam-for-mysql/files/pam.conf
===================================================================
--- /dev/null
+++ 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: databases/percona-pam-for-mysql/pkg-descr
===================================================================
--- /dev/null
+++ databases/percona-pam-for-mysql/pkg-descr
@@ -0,0 +1,3 @@
+Percona PAM authentication plugin for MySQL.
+
+WWW: https://www.percona.com/
Index: databases/percona-pam-for-mysql/pkg-message
===================================================================
--- /dev/null
+++ 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: databases/percona-pam-for-mysql/pkg-plist
===================================================================
--- /dev/null
+++ 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: databases/percona56-server/Makefile
===================================================================
--- databases/percona56-server/Makefile
+++ 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
Sun, Dec 21, 3:15 PM (10 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27115012
Default Alt Text
D8193.id21179.diff (3 KB)

Event Timeline