Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2000 17:58:50 -0500 (EST)
From:      root@minime.privatelabs.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22876: new port: security/pam_pgsql
Message-ID:  <200011152258.eAFMwo816293@minime.privatelabs.com>

next in thread | raw e-mail | index | archive | help

>Number:         22876
>Category:       ports
>Synopsis:       new port: security/pam_pgsql
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 15 15:00:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	Similarly to pam_mysql, this lets you authenticate, etc. through
	a PostgreSQL database.

	Note, that unlike pam_mysql port, which warns you to link/copy
	${LOCALBASE}/pam_mysql.so to /usr/lib, this port actually installs
	into /usr/lib/pam_pgsql.so. It is not difficult to modify it the
	other way, but I think this approach makes more sense... An admin
	still has to enable the module by listing it in /etc/pam.conf...

	But the docs are still installed in ${LOCALBASE}/share/doc/...

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pam-pgsql
#	pam-pgsql/files
#	pam-pgsql/files/Makefile
#	pam-pgsql/Makefile
#	pam-pgsql/distinfo
#	pam-pgsql/pkg-comment
#	pam-pgsql/pkg-descr
#	pam-pgsql/pkg-plist
#	pam-pgsql/pkg-message
#
echo c - pam-pgsql
mkdir -p pam-pgsql > /dev/null 2>&1
echo c - pam-pgsql/files
mkdir -p pam-pgsql/files > /dev/null 2>&1
echo x - pam-pgsql/files/Makefile
sed 's/^X//' >pam-pgsql/files/Makefile << 'END-of-pam-pgsql/files/Makefile'
X# This makefile is inspired by those in /usr/src/lib/libpam/modules :-)
X
XSRCS=	pam_pgsql.c pam_get_pass.c pam_std_option.c pam_get_service.c
XLIB=	pam_pgsql
XSHLIB_NAME=${LIB}.so
X
XLDADD=		-lpam -L${LOCALBASE}/pgsql/lib -lpq
XINCLUDE=	-I${LOCALBASE}/pgsql/include
XCFLAGS+=	-Wall -D_GNU_SOURCE -I/opt/pgsql/include
X
XINTERNALLIB=	we don't need no stinking static lib
X
X# Uncomment if you think, the lib should NOT go into /usr/lib directly:
X# LIBDIR=	${LOCALBASE}/lib
X
X.include <bsd.lib.mk>
END-of-pam-pgsql/files/Makefile
echo x - pam-pgsql/Makefile
sed 's/^X//' >pam-pgsql/Makefile << 'END-of-pam-pgsql/Makefile'
X# New ports collection makefile for:    pam-pgsql
X# Date created:				Nov 16, 2000
X# Whom:	      				Mikhail Teterin <mi@aldan.algebra.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pam-pgsql
XPORTVERSION=	0.3
XCATEGORIES=	security databases
X# When the family of Debian mirrors is added to bsd.port.mk,
X# this will suddenly start making sense:
XMASTER_SITES=	http://ftp.debian.org/debian/${MASTER_SITE_SUBDIR}/ \
X		ftp://ftp.bora.net/pub/linux/debian/${MASTER_SITE_SUBDIR}/ \
X		${MASTER_SITE_DEBIAN}
XMASTER_SITE_SUBDIR=	dists/woody/main/source/admin
XDISTFILES=	${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER=	mi@aldan.algebra.com
X
XLIB_DEPENDS=	pq:${PORTSDIR}/databases/postgresql7
X
XMAKEFILE=	${FILESDIR}/Makefile
XMAKE_ARGS+=	-j 2
X
Xpost-install:
X	${CAT} ${PKGMESSAGE}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCDIR}
X	@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/debian/changelog \
X		${WRKSRC}/debian/copyright ${DOCDIR}
X
XPLIST_SUB+=	DOC=''
XDOCDIR=	${LOCALBASE}/share/doc/pam-pgsql
X
X.else
XPLIST_SUB+=	DOC='@comment '
X.endif
X
X.include <bsd.port.mk>
END-of-pam-pgsql/Makefile
echo x - pam-pgsql/distinfo
sed 's/^X//' >pam-pgsql/distinfo << 'END-of-pam-pgsql/distinfo'
XMD5 (pam-pgsql_0.3.tar.gz) = c34c18f98690e579da7cf810a3db2a00
END-of-pam-pgsql/distinfo
echo x - pam-pgsql/pkg-comment
sed 's/^X//' >pam-pgsql/pkg-comment << 'END-of-pam-pgsql/pkg-comment'
XA pam module for authenticating with PostgreSQL
END-of-pam-pgsql/pkg-comment
echo x - pam-pgsql/pkg-descr
sed 's/^X//' >pam-pgsql/pkg-descr << 'END-of-pam-pgsql/pkg-descr'
XThis is a PAM module for authenticating with PostgreSQL.
X
XIt also supports:
X	- Checking account information (pam_acct_expired,new_authtok_reqd)
X	- Updating auth token
X
XWWW: http://www.debian.org/Packages/unstable/admin/libpam-pgsql.html
END-of-pam-pgsql/pkg-descr
echo x - pam-pgsql/pkg-plist
sed 's/^X//' >pam-pgsql/pkg-plist << 'END-of-pam-pgsql/pkg-plist'
X%%DOC%%share/doc/pam_pgsql/README
X%%DOC%%share/doc/pam_pgsql/changelog
X%%DOC%%share/doc/pam_pgsql/copyright
X%%DOC%%@dirrm share/doc/pam_pgsql
X@cwd /usr
Xlib/pam_pgsql.so
END-of-pam-pgsql/pkg-plist
echo x - pam-pgsql/pkg-message
sed 's/^X//' >pam-pgsql/pkg-message << 'END-of-pam-pgsql/pkg-message'
X
XFollow the instructions in the
X
X	/usr/local/share/doc/pam-pgsql/README
X
Xto use this module. Note, that unlike most other ports, this port
Xinstalls a file into /usr/lib directly (/usr/lib/pam_pgsql.so),
Xbecause PAM requires that.
X
END-of-pam-pgsql/pkg-message
exit

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011152258.eAFMwo816293>