openbsd-ports/security/ssh-ldap-helper/Makefile
landry 2846773fbd Import ssh-ldap-helper, extracted with great prejudice from Red Hat's
openssh-5.3p1.src.rpm.

ssh-ldap-helper is a small helper for sshd's AuthorizedKeysCommand
config keyword, allowing to fetch the AuthorizedKeys from an LDAP
directory with a given schema.
Note that you'll need an sshd with ssh/auth2-pubkey.c r1.33 for it
to work fine.

ok ajacoutot@ sthen@
2012-11-14 18:42:50 +00:00

54 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/11/14 18:42:50 landry Exp $
COMMENT = fetch ssh AuthorizedKeys from LDAP
DISTNAME = openssh-5.3p1-81.el6.src.rpm
PKGNAME = ssh-ldap-helper-5.3
CATEGORIES = security net
EXTRACT_SUFX=
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES = http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/
do-extract:
cd ${WRKDIR} && \
${LOCALBASE}/bin/rpm2cpio ${FULLDISTDIR}/${DISTNAME} | cpio -id
cd ${WRKDIR} && \
${TAR} xjf openssh-5.3p1-noacss.tar.bz2
PATCH_LIST = ${WRKDIR}/openssh-5.3p1-ldap.patch patch-*
PATCH_STRIP = -p1
WRKDIST = ${WRKDIR}/openssh-5.3p1
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.62
CONFIGURE_ARGS = --with-ldap=${LOCALBASE} \
--without-pam
NO_REGRESS = Yes
ALL_TARGET = ssh-ldap-helper
BUILD_DEPENDS= rpm-*|rpm2cpio-*:converters/rpm2cpio \
archivers/bzip2
LIB_DEPENDS = databases/openldap
WANTLIB += c crypto lber ldap util z
post-configure:
${SUBST_CMD} ${WRKSRC}/ssh-ldap-{helper.8,wrapper}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ssh-ldap-helper ${PREFIX}/libexec/
$(INSTALL_SCRIPT) ${WRKSRC}/ssh-ldap-wrapper ${PREFIX}/libexec/
${INSTALL_MAN} ${WRKSRC}/ssh-ldap-helper.8 ${PREFIX}/man/man8/
${INSTALL_MAN} ${WRKSRC}/ssh-ldap.conf.5 ${PREFIX}/man/man5/
${INSTALL_DATA_DIR} ${PREFIX}/share/{doc,examples}/ssh-ldap-helper/
${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/share/examples/ssh-ldap-helper/
${INSTALL_DATA} ${WRKSRC}/HOWTO.ldap-keys ${PREFIX}/share/doc/ssh-ldap-helper/
${INSTALL_DATA} ${WRKSRC}/openssh-lpk-openldap.schema ${PREFIX}/share/doc/ssh-ldap-helper/
.include <bsd.port.mk>