mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
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
This commit is contained in:
parent
d93aaee3ea
commit
ee6e95e539
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424262
7 changed files with 64 additions and 8 deletions
|
@ -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
|
||||
|
|
27
databases/percona-pam-for-mysql/Makefile
Normal file
27
databases/percona-pam-for-mysql/Makefile
Normal file
|
@ -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.
|
12
databases/percona-pam-for-mysql/files/pam.conf
Normal file
12
databases/percona-pam-for-mysql/files/pam.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# PAM configuration for the "mysqld" service
|
||||
#
|
||||
|
||||
# auth
|
||||
auth include system
|
||||
|
||||
# account
|
||||
account include system
|
||||
|
||||
# password
|
||||
password include system
|
3
databases/percona-pam-for-mysql/pkg-descr
Normal file
3
databases/percona-pam-for-mysql/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
Percona PAM authentication plugin for MySQL.
|
||||
|
||||
WWW: https://www.percona.com/
|
7
databases/percona-pam-for-mysql/pkg-message
Normal file
7
databases/percona-pam-for-mysql/pkg-message
Normal file
|
@ -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.
|
4
databases/percona-pam-for-mysql/pkg-plist
Normal file
4
databases/percona-pam-for-mysql/pkg-plist
Normal file
|
@ -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
|
|
@ -14,7 +14,8 @@ COMMENT?= Multithreaded SQL database (server)
|
|||
|
||||
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/mysql" \
|
|||
-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/*.sh
|
|||
.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 older
|
|||
|
||||
.endif
|
||||
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue