Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103625 Details for
Bug 157524
net-im/bitlbee with svscan support (sys-process/daemontools and sys-apps/ucspi-tcp)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script to create svscan directories and scripts
bitlbee-setup (text/plain), 2.71 KB, created by
Guilherme Balena Versiani
on 2006-12-08 08:20:09 UTC
(
hide
)
Description:
Script to create svscan directories and scripts
Filename:
MIME Type:
Creator:
Guilherme Balena Versiani
Created:
2006-12-08 08:20:09 UTC
Size:
2.71 KB
patch
obsolete
>#!/bin/bash > >#for einfo, ewarn etc.. >. /sbin/functions.sh > >setup() { > echo > echo > einfo "BitlBee Setup" > echo > echo > echo ">>> More information on this package can be found at" > echo ">>> http://www.bitlbee.org" > echo > echo "After this script completes, bitlbee will be configured to" > echo "use daemontools and ucspi-tcp from http://cr.yp.to." > echo > echo "You should need to remove bitlbee from xinetd if you are" > echo "using it." > echo > echo '(press enter to begin setup, or press control-C to abort)' > echo > read > > echo > einfo "Install location" > echo > echo "Where do you want bitlbee scripts be installed?" > echo "Ex. Default (/var) will install bitlbee in /var/bitlbee." > echo "!!No trailing slash!!" > echo > read -p "[/var]> " mypath > echo > > if [ "$mypath" == "" ] > then > mypath="/var" > fi > > if [ ! -e ${mypath} ] > then > echo ">>> Creating ${mypath}..." > mkdir -p $mypath > fi > > echo > echo > einfo "Where to bind bitlbee?" > echo > echo "Specify an address to which bitlbee should bind." > echo "If this is the only machine accessing bitlbee," > echo "127.0.0.1 is a good start." > echo "Currently running IP addresses:" > echo > > # grab interfaces > addrs=`ifconfig -a | grep "inet addr" | cut -f2 -d":" | cut -f1 -d" "` > > echo $addrs > echo > read -p "IP to bind cache to [127.0.0.1]> " myip > echo > > if [ "$myip" == "" ] > then > myip="127.0.0.1" > fi > > if [ ! -e ${mypath}/bitlbee ] > then > mkdir -p ${mypath}/bitlbee > mkdir ${mypath}/bitlbee/env > mkdir ${mypath}/bitlbee/log > mkdir ${mypath}/bitlbee/log/main > cat << EOF > ${mypath}/bitlbee/run >#!/bin/sh >exec 2>&1 >exec envdir ./env sh -c ' >exec /usr/bin/setuidgid nobody \\ > /usr/bin/tcpserver -xtcp.cdb \${IP} \${PORT} \\ > /usr/sbin/bitlbee >' >EOF > cat << EOF > ${mypath}/bitlbee/Makefile >tcp.cdb: tcp > tcprules tcp.cdb tcp.tmp < tcp >EOF > cat << EOF > ${mypath}/bitlbee/log/run >#!/bin/sh >exec setuidgid nobody multilog t ./main >EOF > chmod 0755 ${mypath}/bitlbee/run > chmod 0755 ${mypath}/bitlbee/log/run > echo ${myip} > ${mypath}/bitlbee/env/IP > echo ircd > ${mypath}/bitlbee/env/PORT > echo :allow > ${mypath}/bitlbee/tcp > chown nobody:nobody ${mypath}/bitlbee/log/main > make -C ${mypath}/bitlbee > else > ewarn "*** bitlbee directory currently exists, nothing done." > fi > > echo > echo > einfo "Start service" > echo > echo "bitlbee is ready for startup." > echo "Do you want bitlbee to be started and" > echo "supervised by daemontools now?" > > echo > echo "This requires svscan (daemontools) to be running currently and" > echo "monitoring /service !!" > echo > echo '(press control-C to abort)' > read > > cd /service > ln -sf ${mypath}/bitlbee . > > echo > echo > einfo "Installation successfull" > echo >} > ># check for root user > >if [ `id -u` -ne 0 ] >then > eerror "${0}: must be root." > exit 1 >fi > > ># run setup >setup
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 157524
: 103625 |
103633