Date: Thu, 19 Jun 2003 03:20:15 -0700 (PDT) From: Sergey Akifyev <asa@gascom.ru> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/53482: New Port: zabbix - Very advanced network monitoring system Message-ID: <200306191020.h5JAKFG5060078@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/53482; it has been noted by GNATS. From: Sergey Akifyev <asa@gascom.ru> To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@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@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@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306191020.h5JAKFG5060078>