bye bye INSTALL; espie ok.
This commit is contained in:
parent
bf9fcee0bb
commit
eaef5618d4
@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2004/08/03 10:16:37 xsa Exp $
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
ZOPEUSER=${ZOPEUSER}
|
||||
ZOPEGROUP=${ZOPEGROUP}
|
||||
|
||||
if [ ${PKG_DELETE_EXTRA} != Yes ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| these steps as root:"
|
||||
echo "|"
|
||||
if userinfo -e $ZOPEUSER; then
|
||||
echo "| userdel $ZOPEUSER"
|
||||
fi
|
||||
if groupinfo -e $ZOPEGROUP; then
|
||||
echo "| groupdel $ZOPEGROUP"
|
||||
fi
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing"
|
||||
echo "| $1 at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,51 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2004/08/03 10:16:37 xsa Exp $
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
ZOPEUSER=${ZOPEUSER}
|
||||
ZOPEGROUP=${ZOPEGROUP}
|
||||
ID=534
|
||||
|
||||
do_usergroup_install()
|
||||
{
|
||||
if groupinfo -e $ZOPEGROUP; then
|
||||
echo "===> Using $ZOPEGROUP group for Zope"
|
||||
else
|
||||
echo "===> Creating $ZOPEGROUP group for Zope"
|
||||
groupadd -g $ID $ZOPEGROUP
|
||||
fi
|
||||
if userinfo -e $ZOPEUSER; then
|
||||
echo "===> Using $ZOPEUSER user for Zope"
|
||||
else
|
||||
echo "===> Creating $ZOPEUSER user for Zope"
|
||||
useradd -g $ZOPEGROUP \
|
||||
-d /nonexistent \
|
||||
-L daemon \
|
||||
-c 'Zope Account' \
|
||||
-s /sbin/nologin \
|
||||
-u $ID $ZOPEUSER
|
||||
fi
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
do_usergroup_install
|
||||
;;
|
||||
POST-INSTALL)
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.13 2004/09/15 18:49:53 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.14 2004/09/28 12:47:20 xsa Exp $
|
||||
@newgroup _zope:534
|
||||
@newuser _zope:534:_zope:daemon:Zope Account:/nonexistent:/sbin/nologin
|
||||
lib/zope/
|
||||
lib/zope/bin/
|
||||
lib/zope/bin/README.txt
|
||||
@ -3056,5 +3058,3 @@ lib/zope/skel/log/README.txt
|
||||
lib/zope/skel/var/
|
||||
lib/zope/skel/var/README.txt
|
||||
%%SHARED%%
|
||||
@extraunexec userdel _zope
|
||||
@extraunexec groupdel _zope
|
||||
|
Loading…
Reference in New Issue
Block a user