ports/53482: New Port: zabbix - Very advanced network monitoring system
Sergey Akifyev
asa at gascom.ru
Thu Jun 19 10:20:16 UTC 2003
The following reply was made to PR ports/53482; it has been noted by GNATS.
From: Sergey Akifyev <asa at gascom.ru>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org
Cc:
Subject: Re: ports/53482: New Port: zabbix - Very advanced network
monitoring system
Date: 19 Jun 2003 14:10:13 +0400
--=-dnHlgVib2esXZxaeuNnD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Thu, 2003-06-19 at 12:10, FreeBSD-gnats-submit at FreeBSD.org wrote:
Shit happens! Forgot to archive pkg-install script :)
#!/bin/sh
# Script was taken from mysql323-server port, and modified
# to suit zabbix needs
=
=20
PATH=3D/bin:/usr/sbin
=
=20
case $2 in
POST-INSTALL)
USER=3Dzabbix
GROUP=3D${USER}
UID=3D111
GID=3D${UID}
=
=20
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
else
if pw groupadd ${GROUP} -g ${GID}; then
echo "Added group \"${GROUP}\"."
else
echo "Adding group \"${GROUP}\" failed..."
exit 1
fi
fi
=
=20
if pw user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
if pw usermod ${USER} -d /nonexistent
then
echo "Changed home directory of \"${USER}\" to /nonexistent"
else
echo "Changing home directory of \"${USER}\" to /nonexistent
failed..."
exit 1
fi
else
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-d /nonexistent -s /sbin/nologin -c "MySQL Daemon"
then
echo "Added user \"${USER}\"."
else
echo "Adding user \"${USER}\" failed..."
exit 1
fi
fi
esac
--=20
regards,
Sergey Akifyev <asa at gascom.ru>
JSC Gascom <http://www.gascom.ru>
PGP key available from:
ftp://ftp.gascom.ru/pub/PGP-keys/asa.txt
--=-dnHlgVib2esXZxaeuNnD
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQA+8YwFbu06QwmNwNsRAjHaAKCRsl3IyXA/Mdx+xuWxALR+h/s05ACeIuJl
ClEQ1ue2aIwPXHSLBcTnW/c=
=FXo+
-----END PGP SIGNATURE-----
--=-dnHlgVib2esXZxaeuNnD--
More information about the freebsd-ports-bugs
mailing list