--- bip-0.8.2.orig/debian/bip.postinst +++ bip-0.8.2/debian/bip.postinst @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +BIPUSER=bip +BIPGROUP=bip +BIPHOME=/var/lib/bip + +chgrp "$BIPUSER" "$BIPHOME" 2>/dev/null || addgroup --system "$BIPUSER" +chown "$BIPUSER"."$BIPGROUP" "$BIPHOME" 2>/dev/null || \ + adduser --system --home "$BIPHOME" --disabled-password \ + --ingroup "$BIPGROUP" "$BIPUSER" + +if [ ! -e /var/log/bip ] +then + mkdir /var/log/bip + chown bip:bip /var/log/bip + chmod 750 /var/log/bip +fi + +if [ "$1" = "configure" -a "$2" = "" ] +then + chown root:"$BIPGROUP" /etc/bip.conf + chmod 640 /etc/bip.conf +fi + +#DEBHELPER# --- bip-0.8.2.orig/debian/compat +++ bip-0.8.2/debian/compat @@ -0,0 +1 @@ +7 --- bip-0.8.2.orig/debian/bip.docs +++ bip-0.8.2/debian/bip.docs @@ -0,0 +1,6 @@ +AUTHORS +BUGS +NEWS +README +TODO + --- bip-0.8.2.orig/debian/README.Debian +++ bip-0.8.2/debian/README.Debian @@ -0,0 +1,73 @@ +This README file explains the basics of bip configuration. +Bip can be used in two different way: +- Unix service style with and init.d scripts and the logs in /var/log +- Old school bnc user style: easy and straightforward. + +This small README file explains both type of usage. + +* With the old school type: +************************** + - you do not need the root privileges. + - gives easy access to the logs of the users of this bip to the one owning the + shell. + - Still the preferred type. + +If you are using a distribution package, the bip.conf sample configuration file +is likely to be shipped in /usr/share/doc/bip/examples/bip.conf.gz or something +similar. + +Create your bip configuration an log directory: + +# mkdir -p ~/.bip/logs + +Put the uncompressed configuration file in your ~/.bip directory (its path +should be ~/.bip/bip.conf), and edit it. + +When you are done editing the configuration, you can start bip normally: + +# bip + +Using the default (or sample file) configuration, logs are in ~/.bip/logs/ + +See "Understand the configuration file" below to configure bip.conf + +* With the new Unix type: +************************ + + - bip is started automatically on boot, as a classical service + - logs in /var/log/bip, keeps users out. + +For this configuration, you need to edit /etc/bip.conf. This particular file +might contain some user password so check its permissions. + +Edit /etc/default/bip and set ENABLED=1. + +See "Understand the configuration file" below to configure bip.conf + +* Understand the configuration file. +************************************ + +Most importantly the "user" section that contains information about you and the +servers you will want to connect to. The "name" field in the "user" section is +your login to connect to bip. The "password" field is a hash of the password +you will use to connect to bip. To generate a hash value from a password, use +bipmkpw, program which comes in the bip package and source. +The "name" field of the "connection" subsections are the server identifier for +when you connect to bip. + +Once bip starts, it connects to the different servers you defined in +"connection". Then you want to use your regular irc client and connect to bip. +Point your client to the machine bip is running and set the proper port number +(defined in your bip.conf). You should then configure the client to use a +specific irc server password constructed this way: + +user:password:network + +The user is the name field of the "user" section, the password is the clear +password that you used to generate the hash you entered in the "password" field +of the same user section (the hash is generated with bipmkpw) and the network +is the "name" field of the "connection" subsection. This is how bip +authenticates you and puts your client to the correct network. + +Happy ircing! + --- bip-0.8.2.orig/debian/bip.conf +++ bip-0.8.2/debian/bip.conf @@ -0,0 +1,144 @@ +# bip default config file. +# Thou shoult change thy password + +ip = "0.0.0.0"; + +# To connect a client to bip, try the port below, and +# be sure to set the password to the value +# specified in the network you want to connect to. +port = 7778; + +# If you set this to true, you'll only be able to connect to bip +# with a SSL capable IRC client. Be sure to generate a certificate +# for bip with 'make cert' +client_side_ssl = false; + +log_level = 3; + +pid_file="/var/run/bip/bip.pid"; + +# This is where logs go. Channel and private messages will use that +# configuration value as a prefix, and then log_format to determine +# full log filename. +log_root = "/var/log/bip/"; + +# Log format allows you to make log filenames depend on the log line's +# attributes. Here's a list : +# %u -> user name +# %n -> network name +# %Y -> 4 digit year +# %m -> 2 digit month +# %d -> 2 digit day +# %c -> destination (#chan, privates, ...) +#log_format = "%n/%Y-%m/%c.%d.log"; + +# Sets the frequency (in seconds) of log syncing (real write to kernel) +#log_sync_interval = 5; + +# Makes bip send the log of each channel and privates while +# you were not connected to the proxy upon connection. +#backlog = true; # enable backlog +backlog_lines = 10; # number of lines in backlog, 0 means no limit +backlog_always = true; # backlog even lines already backlogged + +# If blreset_on_talk talking on an irc network has the same effect of issuing +# /bip blreset, meaning that stuffed logged before the command won't be read +# back on backlog +#blreset_on_talk = false; + +# Network definition, a name and server info +network { + name = "iiens"; + server { host = "irc.iiens.net"; port = 6667; }; +}; + +network { + name = "oftc"; + server { host = "irc.oftc.net"; port = 6667; }; +}; + +# Configuration example with one user who connects to two irc networks +# To use the multi-server feature: +# - define the connections +# - chose and setup a different login for each connection +# on your irc client: +# - Use the multi server feature of your client, the server beeing each time +# the server where bip is running. In your client setup server password to: +# username:password:connectionname +# - do not store the password in clear here, use the bipmkpw util to generate +# a hash + +# User structure is grouping information for a given user +user { + # The name in bip of the user + # This is used by bip only + name = "bip`debian"; + # this user's password (md5(md5("tata"))) with seed - generated by bipmkpw + password = "3880f2b39b3b9cb507b052b695d2680859bfc327"; + + # SSL certificates checking mode for user: + # - "none" to accept anything; + # - "basic" to accept if the certificate is contained in the store; + # In "basic" mode, encountered untrusted certificates can be added to + # the store interactively by connecting a client and "trusting" them. + # - "ca" to do a complete certificate chain checking with the objects + # in the store below (you have to put in it every cert, CRL, up to the + # root CA). You have to build your store manually, so you may prefer + # using "basic" unless you're a crypto zealot... + ssl_check_mode = "none"; + + # Location of the user's store for SSL certificate check + # In "basic" mode, that must point to a single file with all trusted + # certs concatenated together (the interactive "trust" appends to this + # file). + # In "ca" mode, it's a directory of a standard openssl store; you must + # put PEM objects (certificates, CRLs...) with .pem extension and run + # `c_rehash .' in it + # ssl_check_store = "/home/bip`debian/.bip/trustedcerts.txt"; + + # These will be the default for each connections + default_nick = "bip`debian"; + default_user = "bip"; + default_realname = "bip on debian"; + + # A user can have mutiple connections to irc networks. + # define a connection: +# connection { +# name = "iiens"; # used by bip only +# network = "iiens"; # which ircnet to connect to +# +# # these will be sent to the real server +# #user = "otheruser"; +# #realname = "otheruser"; +# #password = "serverpassword"; +# +# # Some options: +# #away_nick = "bip`away"; +# #follow_nick = true; +# #ignore_first_nick = true; +# #on_connect_send = "PRIVMSG NickServ :IDENTIFY nspassword"; +# +# # Autojoined channels: +# channel { name = "#bip"; }; +# # Password protected channel +# channel { +# name = "#elite_UnDeRgR0uNd"; +# key = "sikiour"; +# }; +# }; + + # another connection (optionnal) + connection { + name = "oftc"; # used by bip only + network = "oftc"; # which ircnet to connect to + + # Some options: + #away_nick = "bip`away"; + #follow_nick = true; + #ignore_first_nick = true; + #on_connect_send = "PRIVMSG NickServ :IDENTIFY nspassword"; + + # Autojoined channels: + channel { name = "#bip"; }; + }; +}; --- bip-0.8.2.orig/debian/watch +++ bip-0.8.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://bip.berlios.de/download.html .*bip-(.*).tar.gz --- bip-0.8.2.orig/debian/README.source +++ bip-0.8.2/debian/README.source @@ -0,0 +1,2 @@ +This package uses quilt. +See /usr/share/doc/quilt/README.source --- bip-0.8.2.orig/debian/bip.init +++ bip-0.8.2/debian/bip.init @@ -0,0 +1,113 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bip +# Required-Start: $local_fs $network +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Bip irc proxy init script +# Description: This file should be used to start and stop bip in system +# mode. +### END INIT INFO + +# Author: Arnaud Cornet + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +BIPHOME=/var/lib/bip +VRBIP=/var/run/bip +PIDFILE=$VRBIP/bip.pid +CONFIG=/etc/bip.conf +BIP=/usr/bin/bip +ENABLED=0 + +test -x $BIP || exit 0 +test -f $CONFIG || exit 0 + +if [ -e /etc/default/bip ]; then + . /etc/default/bip +fi + +test "$ENABLED" != "0" || exit 0 + +[ -f /etc/default/rcS ] && . /etc/default/rcS +. /lib/lsb/init-functions + + +bip_start() +{ + if [ ! -e $VRBIP ] ; then + # /var/run can be cleaned at reboot + mkdir -p $VRBIP + chown bip:bip $VRBIP + fi + start-stop-daemon --start --chuid bip:bip --pidfile "$PIDFILE" --exec /usr/bin/bip -- -f "$CONFIG" -s "$BIPHOME" \ + || return 2 + return 0 +} + +bip_stop() +{ + start-stop-daemon --stop --user bip --pidfile "$PIDFILE" \ + || return 2 + return 0 +} + +bip_reload() +{ + start-stop-daemon --stop --user bip --pidfile "$PIDFILE" --signal 1 \ + || return 2 + return 0 +} + +case "$1" in +start) + log_daemon_msg "Starting bip" "bip" + bip_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ; echo "pid file '$PIDFILE' found, bip not started." ;; + 2) log_end_msg 1 ;; + esac +;; +stop) + log_daemon_msg "Stopping bip" "bip" + bip_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac +;; +reload|force-reload) + log_daemon_msg "Reloading bip" "bip" + bip_reload + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac +;; +restart) + log_daemon_msg "Restarting bip" "bip" + bip_stop + sleep 1 + bip_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; + 2) log_end_msg 1 ;; + esac +;; +status) + # /var/run/bip/bip.pid is perm'd 600, so only use -p if readable + if [ -r "$PIDFILE" ]; then + status_of_proc -p "$PIDFILE" "$BIP" bip && exit 0 || exit $? + else + status_of_proc "$BIP" bip && exit 0 || exit $? + fi +;; +*) + echo "Usage: /etc/init.d/bip {start|stop|reload|restart|status}" + exit 3 +;; +esac + +: --- bip-0.8.2.orig/debian/control +++ bip-0.8.2/debian/control @@ -0,0 +1,18 @@ +Source: bip +Section: net +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Arnaud Cornet +Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 7.0.50~), bison, flex, libssl-dev, quilt +Homepage: http://bip.t1r.net + +Package: bip +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base (>= 3.2-14) +Description: multiuser irc proxy with conversation replay and more + Bip is a IRC proxy that supports replaying logged conversation when a client + connects, multiple clients on one irc server connection, It has a handy + logging directory structure. It is multiuser, and has a flexible + configuration. Some of its configuration can be changed at runtime with + special irc commands. --- bip-0.8.2.orig/debian/bip.postrm +++ bip-0.8.2/debian/bip.postrm @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +BIPUSER=bip +BIPGROUP=bip + +if [ "$1" = "purge" ] ; then + deluser --quiet --system "$BIPUSER" > /dev/null || true + delgroup --quiet --system "$BIPGROUP" > /dev/null || true + if [ -d /var/log/bip ] ; then + rm -r /var/log/bip + fi +fi + +#DEBHELPER# --- bip-0.8.2.orig/debian/changelog +++ bip-0.8.2/debian/changelog @@ -0,0 +1,176 @@ +bip (0.8.2-1ubuntu1~karmic1) karmic; urgency=low + + * Backport to Karmic. + + -- Elliot Murphy Thu, 19 Nov 2009 10:28:30 -0500 + +bip (0.8.2-1) unstable; urgency=low + + * New Upstream Version (Closes: #542291). + * Fix debhelper 7 dependency version. + * Add README.source + * Bump standards-version, no change needed. + + -- Arnaud Cornet Mon, 24 Aug 2009 19:20:53 +0200 + +bip (0.8.1-1) unstable; urgency=low + + * New Upstream Version (Closes: #534187). + * Fix README.Debian: use the cleartext of the password to connect, the hash + is in conf only. + * Bump standards version, no change needed. + * Switch to debhelper 7, remove cdbs build dep. + * Add debian/bip.docs + + -- Arnaud Cornet Fri, 17 Jul 2009 12:39:36 +0200 + +bip (0.8.0-1) unstable; urgency=low + + * New Upstream Version + + -- Arnaud Cornet Mon, 02 Mar 2009 13:06:20 +0100 + +bip (0.8.0~rc1-1) unstable; urgency=low + + * New Upstream Version. + * Drop bip-fix-privmsg.patch now upstream. + * Add status action in initscript (Closes: #492126). + + -- Arnaud Cornet Mon, 16 Feb 2009 10:29:18 +0100 + +bip (0.7.4-2) unstable; urgency=low + + * Add bip-fix-privmsg.patch (Closes: #503253). + + -- Arnaud Cornet Fri, 24 Oct 2008 08:55:11 +0200 + +bip (0.7.4-1) unstable; urgency=low + + * New Upstream Version + * Drop bip.conf.man.fix.diff, now upstream. + * Bump standards version to 3.8.0 (no change needed). + + -- Arnaud Cornet Sun, 29 Jun 2008 10:05:35 +0200 + +bip (0.7.1-1) unstable; urgency=low + + * New Upstream Version (Closes: #473999). + + -- Arnaud Cornet Wed, 02 Apr 2008 23:57:39 +0200 + +bip (0.7.0-1) unstable; urgency=low + + * New Upstream Version + * Fix new upstream homepage (Closes: #444209). + * Remove bip user/group on purge. + * Add bipgenconfig script. This and the updated upstream README + explain how to generate a SSL certificate for bip (Closes: #457610, + #457602). + * Move bip.conf man page in correct section (Closes: #461871). + * Bump standards version (no change needed). + * Change debian/copyright to UTF-8. + * Fix copyright line to cope with lintian. + * Use quilt, add a patch to fix a man warning in bip.conf.5. + + -- Arnaud Cornet Sat, 16 Feb 2008 11:43:32 +0100 + +bip (0.6.1-2) unstable; urgency=low + + * Drop .examples as they are installed by make install. + * Fix indent in init script. + * Add a sleep in init script for a safer restart. + + -- Arnaud Cornet Mon, 17 Sep 2007 21:15:52 +0200 + +bip (0.6.1-1) unstable; urgency=low + + * New Upstream Version. + * Change my mail address. + + -- Arnaud Cornet Sun, 19 Aug 2007 18:55:55 +0200 + +bip (0.6.0-2) unstable; urgency=low + + * Cleanup sample conf file. + * Indent init script. + * Remove pidfile check from init script because start-stop-daemon does + it already. + * Add --no-start to dh_installinit, to avoid breaking upgrades + (Closes: #427426). + + -- Arnaud Cornet Mon, 04 Jun 2007 19:51:45 +0200 + +bip (0.6.0-1) unstable; urgency=low + + * Fix typo (Closes: 416074). + * Fix some output of the init script (Closes: 416075). + * Remove useless call to update-rc.d (Closes: 416073). + * New upstream release (Closes: 412888, 390716). + * Remove patches/bip_home_arg.diff and patches/ssl_cert_path.diff gone + upstream. + * Add a README.Debian (Closes: 418633). + * Sanitize clean rule. + * Fix watchfile to use .gz files. + + -- Arnaud Cornet Tue, 01 May 2007 12:40:23 +0200 + +bip (0.5.3-4) unstable; urgency=high + + * Set proper permissions in postinst (Closes: #415855). + + -- Arnaud Cornet Fri, 23 Mar 2007 00:53:01 +0100 + +bip (0.5.3-3) unstable; urgency=low + + * Add --enable-oidentd to configure. + * Create /var/run/bip at daemon start time (Closes: #385791). + * Update init script and depend on lsb-base (>= 3.0-6). + + -- Arnaud Cornet Sat, 9 Sep 2006 11:58:19 +0200 + +bip (0.5.3-2) unstable; urgency=medium + + * Fix extremely lame bug in init script. + + -- Arnaud Cornet Tue, 25 Jul 2006 21:17:22 +0200 + +bip (0.5.3-1) unstable; urgency=low + + * New upstream release. + * Add a watchfile (Closes: #357851). + * Add bip_home_arg.diff, allows to specify a home for bip on the + command line. Allows much nicer init script. + * ssl_cert_path.diff, allows to specify a directory for ssl certificate path + Allows much nicer init script too. + * Add ${misc:Depends}. + * Bump standards version. + * Compat is now 5. + * Don't start/restart bip on install/upgrade. + + -- Arnaud Cornet Tue, 11 Jul 2006 00:22:00 +0200 + +bip (0.5.2-2) unstable; urgency=low + + * Added init.d file (Closes: #357855). + + -- Arnaud Cornet Sat, 1 Apr 2006 19:13:33 +0200 + +bip (0.5.2-1) unstable; urgency=low + + * New upstream release + + -- Arnaud Cornet Wed, 08 Mar 2006 14:31:13 +0100 + +bip (0.5.1-1) unstable; urgency=low + + * New upstream release + + -- Arnaud Cornet Sun, 29 Jan 2006 22:25:51 +0100 + +bip (0.5.0-1) unstable; urgency=low + + * Initial release. + * Change to use the bip with GPL + OpenSSL exception licence, and link to + OpenSSL + + -- Arnaud Cornet Thu, 17 Nov 2005 15:28:19 +0100 --- bip-0.8.2.orig/debian/bip.lintian-overrides +++ bip-0.8.2/debian/bip.lintian-overrides @@ -0,0 +1,2 @@ +# License does have the exception clause +bip binary: possible-gpl-code-linked-with-openssl --- bip-0.8.2.orig/debian/copyright +++ bip-0.8.2/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Arnaud Cornet on +Sun, 09 Oct 2005 14:18:48 +0200 + +It was downloaded from http://bip.t1r.net/ + +Upstream Author: Arnaud Cornet and loïc Gomez + +Copyright 2008, Arnaud Cornet and loïc Gomez : + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + +Specific permission is granted for the GPLed code in this distribition to +be linked to OpenSSL without invoking GPL clause 2(b). + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + --- bip-0.8.2.orig/debian/rules +++ bip-0.8.2/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +%: + echo dh $@ + dh $@ + +override_dh_installinit: + dh_installinit --no-restart-on-upgrade --no-start + +override_dh_auto_configure: + dh_auto_configure -- --enable-oidentd + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/bip/etc + cp debian/bip.conf debian/bip/etc + cp scripts/bipgenconfig debian/bip/usr/bin + +build: patch + dh build + +clean: unpatch + dh clean + rm -f src/conf.c src/conf.h src/lex.c --- bip-0.8.2.orig/debian/bip.default +++ bip-0.8.2/debian/bip.default @@ -0,0 +1,2 @@ +# Set ENABLED to 1 if you want the init script to start bip. +ENABLED=0 --- bip-0.8.2.orig/debian/bip.manpages +++ bip-0.8.2/debian/bip.manpages @@ -0,0 +1,3 @@ +bipmkpw.1 +bip.1 +bip.conf.5