login_ldap now ready to go in, after the appropriate work i asked for is done:
* Upgrade to new version 3.3 (security update from previous, see advisory) * remove MESSAGE and enable-script * INSTALL/DEINSTALL scripts to properly place binary in /usr/libexec/auth * correct LIB_DEPENDS on openldap-client * no setuid root anymore! * new maintainer Sebastian Stark * honor PREFIX in manpage
This commit is contained in:
parent
b43d104e07
commit
be2cb935f5
25
sysutils/login_ldap/Makefile
Normal file
25
sysutils/login_ldap/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2003/02/21 20:56:22 pvalchev Exp $
|
||||
|
||||
COMMENT= "provide ldap authentication type"
|
||||
|
||||
DISTNAME= login_ldap-3.3
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= http://www.ifost.org.au/~peterw/
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
MAINTAINER= Sebastian Stark <seb@todesplanet.de>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= lber,ldap:openldap-client-*:databases/openldap
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-fake:
|
||||
perl -pi -e "s@/usr/local@${PREFIX}@" ${WRKSRC}/login_ldap.8
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/login_ldap/distinfo
Normal file
3
sysutils/login_ldap/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (login_ldap-3.3.tar.gz) = 52e905d54a136c3d850158f4f7548a3f
|
||||
RMD160 (login_ldap-3.3.tar.gz) = 9d2574eb5d2d116ce5575f4f8744902cfda13901
|
||||
SHA1 (login_ldap-3.3.tar.gz) = a1e0156b7eba22047ef2d706913b76d06a884074
|
21
sysutils/login_ldap/pkg/DEINSTALL
Normal file
21
sysutils/login_ldap/pkg/DEINSTALL
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2003/02/21 20:56:22 pvalchev Exp $
|
||||
#
|
||||
# deinstallation of login_ldap
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
AUTH_MODULE=login_-ldap
|
||||
AUTH_DIR=/usr/libexec/auth
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need"
|
||||
echo "| to perform these steps as root:"
|
||||
echo "|"
|
||||
echo "| rm -f ${AUTH_DIR}/${AUTH_MODULE}"
|
||||
echo "|"
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
6
sysutils/login_ldap/pkg/DESCR
Normal file
6
sysutils/login_ldap/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
This port is for OpenBSD administrators wanting to authenticate
|
||||
users off an LDAP server. It uses the BSD Authentication API.
|
||||
|
||||
Please visit WWW for information on updates and commercial support.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
74
sysutils/login_ldap/pkg/INSTALL
Normal file
74
sysutils/login_ldap/pkg/INSTALL
Normal file
@ -0,0 +1,74 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2003/02/21 20:56:22 pvalchev Exp $
|
||||
#
|
||||
# Pre/post-installation setup of login_ldap
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
AUTH_MODULE=login_-ldap
|
||||
PROG_NAME=login_ldap
|
||||
SOURCE_DIR=${PREFIX}/libexec/auth
|
||||
AUTH_DIR=/usr/libexec/auth
|
||||
AUTH_USER=root
|
||||
AUTH_GROUP=auth
|
||||
FILE_MODE=0555
|
||||
|
||||
do_notice_already_installed ()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "|"
|
||||
echo "| You appear to already have a ${AUTH_MODULE} module installed"
|
||||
echo "| in ${AUTH_DIR}."
|
||||
echo "|"
|
||||
echo "| The newly installed ${AUTH_MODULE} will not be copied to"
|
||||
echo "| ${AUTH_DIR}. To fix this do the following:"
|
||||
echo "|"
|
||||
echo "| rm -f ${AUTH_DIR}/${AUTH_MODULE}"
|
||||
echo "|"
|
||||
echo "| and install $1 again."
|
||||
echo "|"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_notice_install ()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "|"
|
||||
echo "| The ${AUTH_MODULE} module has been installed into"
|
||||
echo "| ${AUTH_DIR}."
|
||||
echo "|"
|
||||
echo "| See ${PROG_NAME}(8) for further instructions."
|
||||
echo "|"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install ()
|
||||
{
|
||||
install -o ${AUTH_USER} -g ${AUTH_GROUP} -m ${FILE_MODE} \
|
||||
${SOURCE_DIR}/${AUTH_MODULE} ${AUTH_DIR}
|
||||
}
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -f ${AUTH_DIR}/${AUTH_MODULE} ]; then
|
||||
do_notice_already_installed $1
|
||||
else
|
||||
do_install $1
|
||||
do_notice_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
6
sysutils/login_ldap/pkg/PLIST
Normal file
6
sysutils/login_ldap/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2003/02/21 20:56:22 pvalchev Exp $
|
||||
libexec/auth/login_-ldap
|
||||
man/cat8/login_ldap.0
|
||||
share/login_ldap/active-directory.login_ldap.conf
|
||||
share/login_ldap/login_ldap.conf
|
||||
@dirrm share/login_ldap
|
Loading…
Reference in New Issue
Block a user