summaryrefslogtreecommitdiffstats
path: root/net/libnss-mysql
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-30 06:48:11 +0000
committeredwin <edwin@FreeBSD.org>2003-08-30 06:48:11 +0000
commit87b431a801f1f76bbddf67133124fece1af3bdbb (patch)
tree60de4531f244e170909dc44aa454fd445102d587 /net/libnss-mysql
parent472b1c93db245868b52664ae2c9cdd86366ddfa9 (diff)
downloadFreeBSD-ports-87b431a801f1f76bbddf67133124fece1af3bdbb.zip
FreeBSD-ports-87b431a801f1f76bbddf67133124fece1af3bdbb.tar.gz
net/libnss-mysql (NSS module using a MySQL database for backend)
libNSS-MySQL allows you to authenticate UNIX groups and users using a MySQL database. It uses the NSS API which provides an abstraction layer between the UNIX authentication API and the related data. NSS-MySQL currently supports the passwd and groups services. Version 1.0 has native FreeBSD suppport. PR: ports/54423 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'net/libnss-mysql')
-rw-r--r--net/libnss-mysql/Makefile29
-rw-r--r--net/libnss-mysql/distinfo1
-rw-r--r--net/libnss-mysql/files/patch-Makefile.in22
-rw-r--r--net/libnss-mysql/pkg-descr6
-rw-r--r--net/libnss-mysql/pkg-plist5
5 files changed, 63 insertions, 0 deletions
diff --git a/net/libnss-mysql/Makefile b/net/libnss-mysql/Makefile
new file mode 100644
index 0000000..b56a667
--- /dev/null
+++ b/net/libnss-mysql/Makefile
@@ -0,0 +1,29 @@
+# Ports collection Makefile for: libnss_mysql
+# Date created: 05/05/2003
+# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libnss-mysql
+PORTVERSION= 1.0
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= libnss-mysql
+
+MAINTAINER= sheepkiller@culteadsheep.org
+COMMENT= NSS module using a MySQL database for backend
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-mysql-lib=${LOCALBASE}/lib/mysql \
+ --with-mysql-inc=${LOCALBASE}/include/mysql
+INSTALLS_SHLIB= yes
+USE_LIBTOOL= yes
+USE_MYSQL= yes
+
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500112
+IGNORE= NSS modules only supported on FreeBSD 5.1 or later
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/libnss-mysql/distinfo b/net/libnss-mysql/distinfo
new file mode 100644
index 0000000..ad541e1
--- /dev/null
+++ b/net/libnss-mysql/distinfo
@@ -0,0 +1 @@
+MD5 (libnss-mysql-1.0.tar.gz) = 2961f5e9fe5a0ce3bd51fc8e421c9d27
diff --git a/net/libnss-mysql/files/patch-Makefile.in b/net/libnss-mysql/files/patch-Makefile.in
new file mode 100644
index 0000000..cc1d50b
--- /dev/null
+++ b/net/libnss-mysql/files/patch-Makefile.in
@@ -0,0 +1,22 @@
+--- Makefile.in.orig Sat Jul 12 21:43:29 2003
++++ Makefile.in Sat Jul 12 21:45:55 2003
+@@ -492,16 +492,13 @@
+
+
+ install-data-hook:
+- @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; then \
+ ${srcdir}/mkinstalldirs ${DESTDIR}${sysconfdir}; \
+ ${INSTALL_DATA} ${srcdir}/sample/@OS@/libnss-mysql.cfg \
+- ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; \
+- fi
+- @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; then \
++ ${DESTDIR}${sysconfdir}/libnss-mysql.cfg-dist; \
+ ${srcdir}/mkinstalldirs ${DESTDIR}${sysconfdir}; \
+ ${INSTALL_DATA} -m 600 ${srcdir}/sample/@OS@/libnss-mysql-root.cfg \
+- ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; \
+- fi
++ ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg-dist; \
++
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/net/libnss-mysql/pkg-descr b/net/libnss-mysql/pkg-descr
new file mode 100644
index 0000000..2b2e639
--- /dev/null
+++ b/net/libnss-mysql/pkg-descr
@@ -0,0 +1,6 @@
+libNSS-MySQL allows you to authenticate UNIX groups and users using a MySQL
+database. It uses the NSS API which provides an abstraction layer between
+the UNIX authentication API and the related data. NSS-MySQL currently supports
+the passwd and groups services.
+
+WWW: http://libnss-mysql.sourceforge.net/
diff --git a/net/libnss-mysql/pkg-plist b/net/libnss-mysql/pkg-plist
new file mode 100644
index 0000000..8e956d5
--- /dev/null
+++ b/net/libnss-mysql/pkg-plist
@@ -0,0 +1,5 @@
+etc/libnss-mysql.cfg-dist
+etc/libnss-mysql-root.cfg-dist
+lib/nss_mysql.so.1
+lib/nss_mysql.so
+lib/nss_mysql.la
OpenPOWER on IntegriCloud