new user/group naming schema
bump PKGNAME for bitlbee Han Boetes <han@mijncomputer.nl> ok
This commit is contained in:
parent
8f5309adde
commit
46ccc88ca5
@ -7,10 +7,10 @@ making use of the spamc/spamd combination.
|
|||||||
|
|
||||||
<p>First let's add a user for the spamd.
|
<p>First let's add a user for the spamd.
|
||||||
|
|
||||||
<pre><b># useradd -s /usr/bin/false -b /nonexistent spamdaemon</b></pre>
|
<pre><b># useradd -s /usr/bin/false -b /nonexistent -u 506 _spamdaemon</b></pre>
|
||||||
|
|
||||||
<p>Add this line to <b><code>/etc/rc.local</b></code>:
|
<p>Add this line to <b><code>/etc/rc.local</b></code>:
|
||||||
<pre><b># /usr/local/bin/spamd -u spamdaemon -d -L -p 4321 -x</b></pre>
|
<pre><b># /usr/local/bin/spamd -u _spamdaemon -d -L -p 4321 -x</b></pre>
|
||||||
<br> Use that same line to start spamd now.
|
<br> Use that same line to start spamd now.
|
||||||
|
|
||||||
<p>The final step: put this at the top of your <b><code>.procmailrc</b></code>.
|
<p>The final step: put this at the top of your <b><code>.procmailrc</b></code>.
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/04/16 18:51:08 wilfried Exp $
|
# $OpenBSD: Makefile,v 1.2 2003/06/22 10:09:57 sturm Exp $
|
||||||
COMMENT= "IRC-proxy to connect to icq, aol, msn and jabber"
|
COMMENT= "IRC-proxy to connect to icq, aol, msn and jabber"
|
||||||
|
|
||||||
DISTNAME= bitlbee-0.73
|
DISTNAME= bitlbee-0.73
|
||||||
|
PKGNAME= ${DISTNAME}p0
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
|
|
||||||
HOMEPAGE= http://www.lintux.cx/bitlbee.html
|
HOMEPAGE= http://www.lintux.cx/bitlbee.html
|
||||||
|
@ -181,7 +181,7 @@ nobody).</p>
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<pre class="PROGRAMLISTING">
|
<pre class="PROGRAMLISTING">
|
||||||
127.0.0.1:6667 stream tcp nowait bitlbee /usr/local/sbin/bitlbee bitlbee
|
127.0.0.1:6667 stream tcp nowait _bitlbee /usr/local/sbin/bitlbee bitlbee
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/04/16 18:51:08 wilfried Exp $
|
# $OpenBSD: DEINSTALL,v 1.2 2003/06/22 10:09:57 sturm Exp $
|
||||||
#
|
#
|
||||||
# Bitlbee de-installation
|
# Bitlbee de-installation
|
||||||
|
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||||
DB_DIR=${DB_DIR}
|
DB_DIR=${DB_DIR}
|
||||||
BITLBEEUSER=bitlbee
|
BITLBEEUSER=_bitlbee
|
||||||
BITLBEEGROUP=bitlbee
|
BITLBEEGROUP=_bitlbee
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
+---------------
|
+---------------
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $OpenBSD: INSTALL,v 1.1.1.1 2003/04/16 18:51:08 wilfried Exp $
|
# $OpenBSD: INSTALL,v 1.2 2003/06/22 10:09:57 sturm Exp $
|
||||||
#
|
#
|
||||||
# Pre/post-installation setup of Bitlbee
|
# Pre/post-installation setup of Bitlbee
|
||||||
|
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||||
DB_DIR=${DB_DIR}
|
DB_DIR=${DB_DIR}
|
||||||
BITLBEEUSER=bitlbee
|
BITLBEEUSER=_bitlbee
|
||||||
BITLBEEGROUP=bitlbee
|
BITLBEEGROUP=_bitlbee
|
||||||
|
ID=509
|
||||||
|
|
||||||
do_notice_existingdir() {
|
do_notice_existingdir() {
|
||||||
echo <<EOF
|
echo <<EOF
|
||||||
@ -32,14 +33,14 @@ do_usergroup_install() {
|
|||||||
echo "===> Using $BITLBEEGROUP group for Bitlbee"
|
echo "===> Using $BITLBEEGROUP group for Bitlbee"
|
||||||
else
|
else
|
||||||
echo "===> Creating $BITLBEEGROUP group for Bitlbee"
|
echo "===> Creating $BITLBEEGROUP group for Bitlbee"
|
||||||
groupadd $BITLBEEGROUP
|
groupadd -g $ID $BITLBEEGROUP
|
||||||
fi
|
fi
|
||||||
userinfo -e $BITLBEEUSER
|
userinfo -e $BITLBEEUSER
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "===> Using $BITLBEEUSER user for Bitlbee"
|
echo "===> Using $BITLBEEUSER user for Bitlbee"
|
||||||
else
|
else
|
||||||
echo "===> Creating $BITLBEEUSER user for Bitlbee"
|
echo "===> Creating $BITLBEEUSER user for Bitlbee"
|
||||||
useradd -g $BITLBEEGROUP -d /nonexistent -L daemon -c 'Bitlbee Account' -s /sbin/nologin $BITLBEEUSER
|
useradd -g $BITLBEEGROUP -d /nonexistent -L daemon -c 'Bitlbee Account' -s /sbin/nologin -u $ID $BITLBEEUSER
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ cat <<EOF
|
|||||||
|
|
||||||
To enable bitlbee you have to add a line like:
|
To enable bitlbee you have to add a line like:
|
||||||
|
|
||||||
127.0.0.1:6667 stream tcp nowait bitlbee /usr/local/libexec/bitlbee bitlbee
|
127.0.0.1:6667 stream tcp nowait _bitlbee /usr/local/libexec/bitlbee bitlbee
|
||||||
|
|
||||||
to your /etc/inetd.conf and restart inetd with
|
to your /etc/inetd.conf and restart inetd with
|
||||||
|
|
||||||
@ -62,6 +63,22 @@ to your /etc/inetd.conf and restart inetd with
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_warning() {
|
||||||
|
cat <<EOF
|
||||||
|
+---------------
|
||||||
|
| WARNING!
|
||||||
|
|
|
||||||
|
| This port has changed the user/group it uses from bitlbee to ${BITLBEEUSER}.
|
||||||
|
| If you installed this port before, ensure all permissions are set correctly
|
||||||
|
| with:
|
||||||
|
|
|
||||||
|
| # ls -ld ${DB_DIR}
|
||||||
|
| # chown -R ${BITLBEEUSER}:${BITLBEEGROUP} ${DB_DIR}
|
||||||
|
|
|
||||||
|
| And don't forget to remove the old user/group.
|
||||||
|
+---------------
|
||||||
|
EOF
|
||||||
|
}
|
||||||
# Verify/process the command
|
# Verify/process the command
|
||||||
#
|
#
|
||||||
case $2 in
|
case $2 in
|
||||||
@ -76,6 +93,7 @@ case $2 in
|
|||||||
do_database_install
|
do_database_install
|
||||||
fi
|
fi
|
||||||
do_manual_notice
|
do_manual_notice
|
||||||
|
do_warning
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user