add pam_mount
Hanno Böck

Hanno Böck commited on 2017-01-10 19:16:44
Zeige 4 geänderte Dateien mit 88 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,4 @@
1
+AUX pam_mysql-0.8.0-link-to-pam.diff 919 SHA256 d1a549c20dba781540b72a3e4409578e1977d389bf1cb2cccf1b38eb0285986f SHA512 aa1aad233bd9747328625af1ce46d7a99c8780872f39b8d5106d55f100c8f7a51056d4805824b9687be26aa964718902e4a9bbbdb966f8b313645fbd7e670d99 WHIRLPOOL e8a8b5558db221c6f17a03507f0f4d57ebde27a965e869a4cb14771fc62b8308756cbed6fb1ba44c44c60438ef2da406ba97795bb7793683fb62532e8d480dac
2
+DIST pam_mysql-0.8.0.tar.gz 41530 SHA256 da57c877f6336f8a0c4022fdc654a20d3ce6e9551e29ae0181751ed3540d499b SHA512 2058b1d3576cc4307414b6a97fbdbb48616795fa6a372e7d906d52a072784c087b61307c9122e0c14cab03c7e6ad5e777f3dcf7b807e77a21c9106184bd25572 WHIRLPOOL 741cb9e98a028817ef7c0e73d9789fb0c84fca4958380da24ea3c1d956ac21a04b02881751a19aa0b76ebe40567a4dc0fbc94d19483728c2e28efdd845549dc7
3
+EBUILD pam_mysql-0.8.0.ebuild 1252 SHA256 79a3cd9abbe7d4641b0e5c552c3da86ad1027de4fc815ddeff8bd96eac62ddcd SHA512 f3d7d02d33a32b14671c412de112d3dbdce832291829e9fe9de040a048697c3c95f0d0e8e729370719b3296ca6186877cfe04e1abc201a2863d8c2c20be6a083 WHIRLPOOL 0513290279e374e9b354c0afabf180b56de8b608aeaddd17ed649c66c3a9a4af4dc2f4efccb124248bd698fa6df9578321d503d115bcc52831433f3ac8dcc64f
4
+MISC metadata.xml 404 SHA256 fe7811c3a70a3a3fa120d16c0029ab69c6649f64341e3a8c84181f4dca545a76 SHA512 d78e3f912015ea18a9385b21c0f7f4d29a2af8773c0a154fd41a1a16abc71af8a7d43b71fa66f835be1b44d3afc22f0333e741313dfccb6446d628962d25915b WHIRLPOOL e3794cf4d7c7ebde97a2d415896559481dbb4b14914f2b73a9f1660afebede889c775b97e5eaf46c7ac9080c368eafa641fcd693b9bee7de8c245fdf10c5c61b
... ...
@@ -0,0 +1,25 @@
1
+From 6d5d20bfd2dd15662caa31412f6f9ed8c3385284 Mon Sep 17 00:00:00 2001
2
+From: =?UTF-8?q?Ferenc=20W=C3=A1gner?= <wferi@debian.org>
3
+Date: Wed, 30 Nov 2016 22:02:20 +0100
4
+Subject: [PATCH] Link the module with the PAM library
5
+
6
+Missing this link didn't cause immediate trouble, because the module is
7
+usually loaded by code that already linked against the PAM library.  But
8
+we actually use symbols from there, so make this dependency explicit.
9
+---
10
+ Makefile.am | 2 +-
11
+ 1 file changed, 1 insertion(+), 1 deletion(-)
12
+
13
+diff --git a/Makefile.am b/Makefile.am
14
+index 74ed65a..7f5c228 100644
15
+--- a/Makefile.am
16
++++ b/Makefile.am
17
+@@ -5,7 +5,7 @@ pamexec_LTLIBRARIES = pam_mysql.la
18
+ pam_mysql_la_SOURCES = pam_mysql.c
19
+ pam_mysql_la_LDFLAGS = -module -avoid-version
20
+ pam_mysql_la_CPPFLAGS = $(openssl_CFLAGS)
21
+-pam_mysql_la_LIBADD   = $(openssl_LIBS)
22
++pam_mysql_la_LIBADD   = $(openssl_LIBS) -lpam
23
+ 
24
+ EXTRA_DIST = \
25
+ 	INSTALL.pam-mysql \
... ...
@@ -0,0 +1,14 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+	<maintainer type="project">
5
+		<email>mysql-bugs@gentoo.org</email>
6
+		<name>MySQL</name>
7
+	</maintainer>
8
+	<use>
9
+		<flag name="openssl">Use OpenSSL for md5 and sha1 support</flag>
10
+	</use>
11
+	<upstream>
12
+		<remote-id type="sourceforge">pam-mysql</remote-id>
13
+	</upstream>
14
+</pkgmetadata>
... ...
@@ -0,0 +1,45 @@
1
+# Copyright 1999-2017 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Id$
4
+
5
+EAPI=5
6
+inherit autotools-utils pam
7
+
8
+DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
9
+HOMEPAGE="https://github.com/NigelCunningham/pam-MySQL"
10
+
11
+SRC_URI="https://github.com/NigelCunningham/pam-MySQL/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12
+DEPEND="
13
+	openssl? ( dev-libs/openssl:0= )
14
+	>=sys-libs/pam-0.72:0=
15
+	virtual/mysql:0=
16
+	"
17
+RDEPEND="${DEPEND}"
18
+LICENSE="GPL-2"
19
+SLOT="0"
20
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
21
+IUSE="openssl"
22
+S="${WORKDIR}/pam-MySQL-${PV}"
23
+
24
+DOCS=( AUTHORS ChangeLog NEWS README )
25
+AUTOTOOLS_AUTORECONF="yes"
26
+AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules"
27
+
28
+# Patch from upstream:
29
+# https://github.com/NigelCunningham/pam-MySQL/commit/6d5d20bfd2dd15662caa31412f6f9ed8c3385284
30
+PATCHES=(
31
+	"${FILESDIR}/${P}-link-to-pam.diff"
32
+)
33
+
34
+src_prepare() {
35
+	# Update autotools deprecated macro for bug 468750, see:
36
+	# https://github.com/NigelCunningham/pam-MySQL/pull/25
37
+	sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/ configure.ac || die "sed failed"
38
+	autotools-utils_src_prepare
39
+}
40
+
41
+src_configure() {
42
+	local myeconfargs=( $(use_with openssl) \
43
+		--with-pam-mods-dir="$(getpam_mod_dir)")
44
+	autotools-utils_src_configure
45
+}
0 46