diff options
Diffstat (limited to 'net/phpldapadmin098')
-rw-r--r-- | net/phpldapadmin098/Makefile | 113 | ||||
-rw-r--r-- | net/phpldapadmin098/distinfo | 2 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-deinstall-suphp | 26 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-descr | 11 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-install-suphp | 98 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-message | 12 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-plist-chunk | 7 |
7 files changed, 0 insertions, 269 deletions
diff --git a/net/phpldapadmin098/Makefile b/net/phpldapadmin098/Makefile deleted file mode 100644 index 6bd17e0756f1..000000000000 --- a/net/phpldapadmin098/Makefile +++ /dev/null @@ -1,113 +0,0 @@ -# New ports collection makefile for: phpLDAPadmin -# Date created: 30 Apr 2004 -# Whom: Matthew Seaman -# -# $FreeBSD$ -# - -PORTNAME= phpldapadmin -DISTVERSION= 0.9.5 -CATEGORIES= net www -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= phpldapadmin - -MAINTAINER= m.seaman@infracaninophile.co.uk -COMMENT= A set of PHP-scripts to administer LDAP servers over the web - -NO_BUILD= yes -USE_PHP= ldap openssl pcre session - -.if defined(WITH_SUPHP) - -PKGNAMESUFFIX= -suphp -RUN_DEPENDS+= ${LOCALBASE}/sbin/suphp:${PORTSDIR}/www/suphp -WANT_PHP_CGI= yes -PKGINST_SKEL= ${PKGDIR}/pkg-install${PKGNAMESUFFIX} -PKGINSTALL= ${WRKDIR}/pkg-install${PKGNAMESUFFIX} -PKGDEINST_SKEL= ${PKGDIR}/pkg-deinstall${PKGNAMESUFFIX} -PKGDEINSTALL= ${WRKDIR}/pkg-deinstall${PKGNAMESUFFIX} - -PLAUSR?= pldapadm - -SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ - -e 's,%%PLADIR%%,${PLADIR},g' \ - -e 's,%%PLAUSR%%,${PLAUSR},g' \ - -e 's,%%PLAGRP%%,${PLAGRP},g' - -.else - -WANT_PHP_WEB= yes - -.endif - -MSG_SKEL= ${PKGDIR}/pkg-message -PKGMESSAGE= ${WRKDIR}/pkg-message - -# PLAUSR is only used WITH_SUPHP -PLADIR?= www/${PORTNAME} -PLAGRP?= ${WWWGRP} -CFGFILE= config.php - -PLIST= ${WRKDIR}/plist -PLIST_SUB+= PLADIR=${PLADIR} PLAGRP=${PLAGRP} - -.SILENT: - -pre-everything:: - ${ECHO_MSG} "" - ${ECHO_MSG} "You may use the following build options:" - ${ECHO_MSG} "" - ${ECHO_MSG} " WITH_SUPHP=yes Install appropriately for use with" - ${ECHO_MSG} " the www/suphp port [default: no]" - ${ECHO_MSG} "" - -post-patch: - ${RM} -f ${PLIST} - cd ${WRKSRC} ; \ - ${FIND} . ! -type d ! -name ${CFGFILE}.example ! -name .cvsignore | \ - ${SORT} | ${SED} "s,^\.,%%PLADIR%%," >${PLIST} ; \ - ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \ - ${FIND} . -type d | ${SORT} -r | ${SED} \ - -e "s,^\.$$,@unexec rmdir %D/%%PLADIR%% 2>/dev/null || true," \ - -e "s,^\.,@dirrm %%PLADIR%%," >>${PLIST} - ${SED} -e 's,%%PKGNAME%%,${PKGNAME},g' \ - -e 's,%%PREFIX%%,${PREFIX},g' \ - -e 's,%%PLADIR%%,${PLADIR},g' ${MSG_SKEL} > ${PKGMESSAGE} -.if defined(WITH_SUPHP) - ${SED} ${SED_SCRIPT} ${PKGINST_SKEL} > ${PKGINSTALL} - ${SED} ${SED_SCRIPT} ${PKGDEINST_SKEL} > ${PKGDEINSTALL} -.endif - -pre-install: -.if defined(WITH_SUPHP) - ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL -.endif - -do-install: install-app install-conf - -install-app: - cd ${WRKSRC} ; \ - for src in $$( ${FIND} . ! -name .cvsignore ) ; do \ - dst=${PREFIX}/${PLADIR}$${src#.} ; \ - if ${TEST} -d $$src ; then \ - ${MKDIR} $$dst ; \ - else \ - ${INSTALL_DATA} $$src $$dst ; \ - fi \ - done - -install-conf: - cd ${PREFIX}/${PLADIR} ; \ - ${CHMOD} 0640 ${CFGFILE}.example ; \ - ${CHGRP} ${PLAGRP} ${CFGFILE}.example ; \ - if ${TEST} ! -f ${CFGFILE} ; then \ - ${CP} -p ${CFGFILE}.example ${CFGFILE} ; \ - fi - -post-install: -.if defined(WITH_SUPHP) - ${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.endif - ${CAT} ${PKGMESSAGE} - -.include <bsd.port.mk> diff --git a/net/phpldapadmin098/distinfo b/net/phpldapadmin098/distinfo deleted file mode 100644 index b3bae3c93100..000000000000 --- a/net/phpldapadmin098/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -MD5 (phpldapadmin-0.9.5.tar.gz) = 33f6788098052d0a4c6214e803da318b -SIZE (phpldapadmin-0.9.5.tar.gz) = 605162 diff --git a/net/phpldapadmin098/pkg-deinstall-suphp b/net/phpldapadmin098/pkg-deinstall-suphp deleted file mode 100644 index 3e29ddb5febb..000000000000 --- a/net/phpldapadmin098/pkg-deinstall-suphp +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -case $2 in - POST-DEINSTALL) - cat <<EOMSG -The phpldapadmin-suphp port has been deleted. -If you are not upgrading and don't intend to use -phpLDAPadmin any more then you may wish to delete -the %%PLAUSR%% account, which can be done with -the following command: - - # pw userdel %%PLAUSR%% -EOMSG - if [ -d %%PREFIX%%/%%PLADIR%% ] ; then - echo " # rm -rf %%PREFIX%%/%%PLADIR%%/" - fi - echo - ;; -esac - -# -# That's All Folks! -# diff --git a/net/phpldapadmin098/pkg-descr b/net/phpldapadmin098/pkg-descr deleted file mode 100644 index 80de707d442b..000000000000 --- a/net/phpldapadmin098/pkg-descr +++ /dev/null @@ -1,11 +0,0 @@ -phpLDAPadmin is a web-based LDAP client. It provides easy, -anywhere-accessible, multi-language administration for your LDAP -server. Its hierarchical tree-viewer and advanced search functionality -make it intuitive to browse and administer your LDAP directory. Since -it is a web application, this LDAP browser works on many platforms, -making your LDAP server easily manageable from any -location. phpLDAPadmin is the perfect LDAP browser for the LDAP -professional and novice alike. Its user base consists mostly of LDAP -administration professionals. - -WWW: http://phpldapadmin.sourceforge.net/ diff --git a/net/phpldapadmin098/pkg-install-suphp b/net/phpldapadmin098/pkg-install-suphp deleted file mode 100644 index 6348afacd7a6..000000000000 --- a/net/phpldapadmin098/pkg-install-suphp +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -PATH=/usr/sbin:/usr/bin:/bin ; export PATH - -pladir=%%PREFIX%%/%%PLADIR%% -plausr=%%PLAUSR%% -plagrp=%%PLAGRP%% - -plagcos="phpLDAPadmin Owner" -plahome=/nonexistent -plashell=/sbin/nologin - -create_group() { - local user group gcos home shell - - user=$1 - group=$2 - gcos=$3 - home=$4 - shell=$5 - - if pw groupadd -n $group ; then - echo "===> Group $group created" - else - cat <<-EOERRORMSG - *** Failed to create the $group group. - - Please add the $user user and $group group - manually with the commands: - - pw groupadd -n $group - pw useradd -n $user -g $group -c "$gcos" \\ - -d $home -s $shell -h - - - and retry installing this package. - EOERRORMSG - exit 1 - fi -} - - -create_user() { - local user group gcos home shell - - user=$1 - group=$2 - gcos=$3 - home=$4 - shell=$5 - - if pw useradd -n $user -g $group -c "$gcos" -d $home -s $shell -h - ; then - echo "===> Created $user user" - else - cat <<-EOERRORMSG - *** Failed to create the $user user. - - Please add the $user user manually with the command: - - pw useradd -n $user -g $group -c "$gcos" \\ - -d $home -s $shell -h - - - and retry installing this package. - EOERRORMSG - exit 1 - fi -} - - -case $2 in - PRE-INSTALL) - - # Create the pla user and group if they do not already exist - - if pw user show -n $plausr >/dev/null 2>&1 ; then - echo "===> Using pre-existing user $plausr" - else - if ! pw group show -n $plagrp >/dev/null 2>&1 ; then - create_group $plausr $plagrp "$plagcos" $plahome \ - $plashell - fi - create_user $plausr $plagrp "$plagcos" $plahome $plashell - fi - ;; - POST-INSTALL) - - # Change ownership of the phpLDAPadmin directory - - echo "===> Adjusting file ownership in $pladir" - chown -R $plausr:$plagrp $pladir || exit 1 - ;; -esac - -# -# That's All Folks! -# diff --git a/net/phpldapadmin098/pkg-message b/net/phpldapadmin098/pkg-message deleted file mode 100644 index 07f058f5fe8d..000000000000 --- a/net/phpldapadmin098/pkg-message +++ /dev/null @@ -1,12 +0,0 @@ - -%%PKGNAME%% has been installed into: - - %%PREFIX%%/%%PLADIR%% - -Please edit config.php and edit to suit your needs. - -To make phpLDAPadmin available through your web site, -I suggest that you add the following to httpd.conf: - - Alias /phpldapadmin/ "%%PREFIX%%/%%PLADIR%%/" - diff --git a/net/phpldapadmin098/pkg-plist-chunk b/net/phpldapadmin098/pkg-plist-chunk deleted file mode 100644 index 29ae43a7b280..000000000000 --- a/net/phpldapadmin098/pkg-plist-chunk +++ /dev/null @@ -1,7 +0,0 @@ -@mode 640 -@group %%PLAGRP%% -@unexec if cmp -s %D/%%PLADIR%%/config.php.example %D/%%PLADIR%%/config.php ; then rm -f %D/%%PLADIR%%/config.php ; fi -%%PLADIR%%/config.php.example -@exec [ ! -f %B/config.php ] && cp -p %B/%f %B/config.php || true -@mode -@group |