mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Update to 0.4.6
- symlink ${WWWROOT}/config/shells to /etc/shells - Change installation method - move post-install to pkg-message
This commit is contained in:
parent
94955bc4bc
commit
66b46f185b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110658
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= LDAP-Account-Manager
|
||||
PORTVERSION= 0.4.5
|
||||
PORTVERSION= 0.4.6
|
||||
CATEGORIES= sysutils www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= lam
|
||||
@ -26,24 +26,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME:L}-${PORTVERSION}
|
||||
|
||||
WWW_ROOT?= www/lam
|
||||
PLIST_SUB+= WWWROOT=${WWW_ROOT}
|
||||
WWW_DIR= config graphics help lib locale sess style templates tmp
|
||||
WWW_DATA= index.html config graphics help lib locale sess style templates tmp
|
||||
MYPORTDOCS= HISTORY README TODO docs/*
|
||||
PORTDOCS= *
|
||||
WWW_OWNED= sess tmp config config config/profiles config/profiles/groups \
|
||||
config/profiles/groups/default.prg config/profiles/hosts \
|
||||
config/profiles/hosts/default.prh config/profiles/users \
|
||||
config/profiles/users/default.pru config/language config/shells \
|
||||
config/config.cfg config/lam.conf
|
||||
|
||||
LAM_SCRIPTS= lib/createntlm.pl lib/lamdaemon.pl
|
||||
|
||||
do-configure:
|
||||
@${RM} ${WRKSRC}/config/shells
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/${WWW_ROOT}
|
||||
@${INSTALL_DATA} ${WRKSRC}/index.html ${PREFIX}/${WWW_ROOT}
|
||||
.for DIR in ${WWW_DIR}
|
||||
@${MKDIR} ${PREFIX}/${WWW_ROOT}/${DIR}
|
||||
@${CP} -Rf ${WRKSRC}/${DIR} ${PREFIX}/${WWW_ROOT}
|
||||
.endfor
|
||||
@cd ${WRKSRC} && ${TAR} cf - ${WWW_DATA} | ${TAR} xf - -C ${PREFIX}/${WWW_ROOT}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for FILE in ${MYPORTDOCS}
|
||||
@ -58,19 +51,11 @@ do-install:
|
||||
@${ECHO_MSG} "===> Setting correct permissions"
|
||||
@${FIND} ${PREFIX}/${WWW_ROOT} -type f -exec ${CHMOD} 644 {} \;
|
||||
@${FIND} ${PREFIX}/${WWW_ROOT} -type d -exec ${CHMOD} 755 {} \;
|
||||
@cd ${PREFIX}/${WWW_ROOT} ; ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWW_OWNED}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WWW_ROOT}/*
|
||||
@cd ${PREFIX}/${WWW_ROOT} ; ${CHMOD} 755 ${LAM_SCRIPTS}
|
||||
@${LN} -sf /etc/shells ${PREFIX}/${WWW_ROOT}/config/shells
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} " To use LDAP-account-manager, you have to install"
|
||||
@${ECHO_MSG} " and set up Samba 2.x or 3.x schemas."
|
||||
@${ECHO_MSG} " Like this :"
|
||||
@${ECHO_MSG} " include ${LOCALBASE}/etc/openldap/schema/core.schema"
|
||||
@${ECHO_MSG} " include ${LOCALBASE}/etc/openldap/schema/cosine.schema"
|
||||
@${ECHO_MSG} " include ${LOCALBASE}/etc/openldap/schema/inetorgperson.schema"
|
||||
@${ECHO_MSG} " include ${LOCALBASE}/etc/openldap/schema/nis.schema"
|
||||
@${ECHO_MSG} " include ${LOCALBASE}/etc/openldap/schema/samba.schema"
|
||||
@${ECHO_MSG} ""
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (ldap-account-manager_0.4.5.tar.gz) = 96c7da5589af0529507b77853057786a
|
||||
SIZE (ldap-account-manager_0.4.5.tar.gz) = 419753
|
||||
MD5 (ldap-account-manager_0.4.6.tar.gz) = 1bea177bf0f93bee3741b977f2f8f80f
|
||||
SIZE (ldap-account-manager_0.4.6.tar.gz) = 420566
|
||||
|
8
sysutils/ldap-account-manager/pkg-message
Normal file
8
sysutils/ldap-account-manager/pkg-message
Normal file
@ -0,0 +1,8 @@
|
||||
To use LDAP-account-manager, you have to install
|
||||
and set up Samba 2.x or 3.x schemas.
|
||||
Like this :
|
||||
include /usr/local/etc/openldap/schema/core.schema
|
||||
include /usr/local/etc/openldap/schema/cosine.schema
|
||||
include /usr/local/etc/openldap/schema/inetorgperson.schema
|
||||
include /usr/local/etc/openldap/schema/nis.schema
|
||||
include /usr/local/etc/openldap/schema/samba.schema
|
@ -101,6 +101,7 @@
|
||||
@dirrm %%WWWROOT%%/graphics
|
||||
@dirrm %%WWWROOT%%/config
|
||||
@dirrm %%WWWROOT%%/help
|
||||
@dirrm %%WWWROOT%%/lib/font/makefont
|
||||
@dirrm %%WWWROOT%%/lib/font
|
||||
@dirrm %%WWWROOT%%/lib
|
||||
@dirrm %%WWWROOT%%/locale/de_DE/LC_MESSAGES
|
||||
|
Loading…
Reference in New Issue
Block a user