diff options
author | lawrance <lawrance@FreeBSD.org> | 2005-12-12 07:53:10 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2005-12-12 07:53:10 +0800 |
commit | da2344f410cd043c0ab61281d9e42ba35e24f944 (patch) | |
tree | a37adda15791a9acacb9dd0b9d56079f2c81fd83 /net/phpldapadmin098 | |
parent | 2cc7c129d1bca0f2a3cd13fc300ca396370ddb93 (diff) | |
download | freebsd-ports-gnome-da2344f410cd043c0ab61281d9e42ba35e24f944.tar.gz freebsd-ports-gnome-da2344f410cd043c0ab61281d9e42ba35e24f944.tar.zst freebsd-ports-gnome-da2344f410cd043c0ab61281d9e42ba35e24f944.zip |
(Forgot to remove some files)
Update to 0.9.7.2
PR: ports/90251
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
Diffstat (limited to 'net/phpldapadmin098')
-rw-r--r-- | net/phpldapadmin098/pkg-deinstall-suphp | 26 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-install-suphp | 98 | ||||
-rw-r--r-- | net/phpldapadmin098/pkg-message | 12 |
3 files changed, 0 insertions, 136 deletions
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-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 8aa6d3b5145b..000000000000 --- a/net/phpldapadmin098/pkg-message +++ /dev/null @@ -1,12 +0,0 @@ - -%%PKGNAME%% has been installed into: - - %%PREFIX%%/%%PLADIR%% - -Please edit config.php 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%%/" - |