From 2ddba459c056798e4c5aa715b4d01546b18b79e2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 5 Jul 2001 23:16:18 +0000 Subject: Moved location of config, theme and doc files. Added debian dir for building a .deb easily. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1607 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- Makefile.am | 12 ++++--- config | 66 ---------------------------------- debian/changelog | 72 +++++++++++++++++++++++++++++++++++++ debian/conffiles | 1 + debian/control | 25 +++++++++++++ debian/copyright | 28 +++++++++++++++ debian/dirs | 3 ++ debian/menu | 2 ++ debian/postinst | 8 +++++ debian/prerm | 8 +++++ debian/rules | 80 ++++++++++++++++++++++++++++++++++++++++++ debian/undocumented | 2 ++ docs/Makefile.am | 2 +- irssi.conf | 66 ++++++++++++++++++++++++++++++++++ scripts/Makefile.am | 6 +++- src/core/settings.c | 2 +- src/fe-common/core/Makefile.am | 2 +- src/fe-common/core/themes.c | 2 +- 18 files changed, 312 insertions(+), 75 deletions(-) delete mode 100644 config create mode 100644 debian/changelog create mode 100644 debian/conffiles create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/menu create mode 100644 debian/postinst create mode 100644 debian/prerm create mode 100755 debian/rules create mode 100644 debian/undocumented create mode 100644 irssi.conf diff --git a/Makefile.am b/Makefile.am index 631254e2..df35f7c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,8 @@ # create default-config.h config.h: default-config.h default-theme.h -default-config.h: $(srcdir)/config - $(srcdir)/file2header.sh $(srcdir)/config default_config > default-config.h +default-config.h: $(srcdir)/irssi.conf + $(srcdir)/file2header.sh $(srcdir)/irssi.conf default_config > default-config.h default-theme.h: $(srcdir)/default.theme $(srcdir)/file2header.sh $(srcdir)/default.theme default_theme > default-theme.h @@ -15,8 +15,11 @@ endif SUBDIRS = src $(SERVERTEST) docs scripts -confdir = $(sysconfdir)/irssi -conf_DATA = config default.theme colorless.theme +confdir = $(sysconfdir) +conf_DATA = irssi.conf + +themedir = $(datadir)/irssi/themes +theme_DATA = default.theme colorless.theme noinst_HEADERS = irssi-version.h @@ -29,6 +32,7 @@ EXTRA_DIST = \ irssi.spec \ irssi.spec.in \ $(conf_DATA) \ + $(theme_DATA) \ irssi-config.in \ irssi-icon.png diff --git a/config b/config deleted file mode 100644 index fc31774b..00000000 --- a/config +++ /dev/null @@ -1,66 +0,0 @@ -lservers = ( - { address = "irc.stealth.net"; chatnet = IRCNet; port = 6668; }, - { address = "irc.efnet.net"; chatnet = EFNet; port = 6667; }, - { address = "irc.undernet.org"; chatnet = Undernet; port = 6667; }, - { address = "irc.dal.net"; chatnet = DALnet; port = 6667; }, - { address = "irc.openprojects.net"; chatnet = OPN; port = 6667; }, - { address = "irc.ptlink.net"; chatnet = PTlink; port = 6667; } - { address = "silc.pspt.fi"; chatnet = SILC; port = 706; } -); - -chatnets = { - IRCNet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 5; max_whois = 4; }; - EFNet = { type = "IRC"; max_kicks = 4; max_modes = 4; max_msgs = 3; }; - Undernet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 3; max_query_chans = "1"; }; - DALNet = { type = "IRC"; max_kicks = 4; max_modes = 6; max_msgs = 3; }; - OPN = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; }; - PTLink = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; }; - SILC = { type = "SILC"; }; -}; - -channels = ( - { name = "#irssi"; chatnet = ircnet; autojoin = No; }, - { name = "#irssi"; chatnet = opn; autojoin = No; }, - { name = "#silc"; chatnet = silc; autojoin = No; } -); - -aliases = { - J = "join"; - WJOIN = "join -window"; - WQUERY = "query -window"; - LEAVE = "part"; - BYE = "quit"; - EXIT = "quit"; - SIGNOFF = "quit"; - DESCRIBE = "action"; - DATE = "time"; - HOST = "userhost"; - LAST = "lastlog"; - SAY = "msg *"; - WI = "whois"; - WII = "whois $0 $0"; - WW = "whowas"; - W = "who"; - N = "names"; - M = "msg"; - T = "topic"; - C = "clear"; - CL = "clear"; - K = "kick"; - KB = "kickban"; - KN = "knockout"; - BANS = "ban"; - B = "ban"; - MUB = "unban *"; - UB = "unban"; - IG = "ignore"; - UNIG = "unignore"; - SB = "scrollback"; - UMODE = "mode $N"; - WC = "window close"; - WN = "window new hide"; - SV = "say Irssi $J - http://irssi.org/"; - GOTO = "sb goto"; - CHAT = "dcc chat"; - UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'"; -}; diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..208b2f00 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,72 @@ +irssi-text (0.7.98.3-2) unstable; urgency=low + + * Made perl support ready for perl 5.6.1, thanks to Branden O'Dea + (closes: #95535) + + -- Pekka Aleksi Knuutila Sun, 20 May 2001 15:02:42 +0300 + +irssi-text (0.7.98.3-1) unstable; urgency=low + + * New upstream release (closes: #90139) + * Include the libfe_perl files (closes: #90189) + + -- Pekka Aleksi Knuutila Mon, 19 Mar 2001 17:17:25 +0200 + +irssi-text (0.7.98.1-1) unstable; urgency=low + + * New upstream release + * Recompiled with perl-5.6 (closes: #86157) + * Added alternative for irssi(1) man-page (closes: #80845) + + -- Pekka Aleksi Knuutila Fri, 23 Feb 2001 16:48:43 +0200 + +irssi-text (0.7.97.2-1) unstable; urgency=low + + * New upstream release + + -- Pekka Aleksi Knuutila Tue, 19 Dec 2000 15:22:56 +0200 + +irssi-text (0.7.97.1-1) unstable; urgency=low + + * New upstream release + + -- Pekka Aleksi Knuutila Wed, 6 Dec 2000 21:40:44 +0200 + +irssi-text (0.7.97-1) unstable; urgency=low + + * New upstream release + + -- Pekka Aleksi Knuutila Sun, 3 Dec 2000 21:35:03 +0200 + +irssi-text (0.7.96-2) unstable; urgency=low + + * Added startup-howto to /usr/share/doc + * Applied 0.7.96-2 bugfixes from upstream + + -- Pekka Aleksi Knuutila Mon, 30 Oct 2000 17:48:34 +0200 + +irssi-text (0.7.96-1) unstable; urgency=low + + * New upstream release + + -- Pekka Aleksi Knuutila Thu, 19 Oct 2000 23:22:54 +0300 + +irssi-text (0.7.95-2) unstable; urgency=medium + + * Applied patch to fix remote crash + + -- Pekka Aleksi Knuutila Wed, 23 Aug 2000 10:21:36 +0300 + +irssi-text (0.7.95-1) unstable; urgency=low + + * New upstream release + * Fixed debian/rules clean (closes: Bug#69105) + + -- Pekka Aleksi Knuutila Sun, 13 Aug 2000 22:03:53 +0300 + +irssi-text (0.7.94-1) unstable; urgency=low + + * Initial release + + -- Pekka Aleksi Knuutila Wed, 26 Jul 2000 21:40:40 +0300 + diff --git a/debian/conffiles b/debian/conffiles new file mode 100644 index 00000000..b3001747 --- /dev/null +++ b/debian/conffiles @@ -0,0 +1 @@ +/etc/irssi.conf diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..1080276b --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: irssi-text +Section: net +Priority: optional +Maintainer: Pekka Aleksi Knuutila +Standards-Version: 3.1.0 +Build-Depends: libglib1.2-dev, perl (>= 5.6.0-16), libperl-dev, libncurses5-dev, debhelper (>= 3.0.18), gettext + +Package: irssi-text +Architecture: any +Depends: ${shlibs:Depends} +Suggests: ${perl:Depends} +Conflicts: irssi +Description: text-mode version of the irssi IRC client + Irssi is an IRC client from the author of yagirc, Timo Sirainen. It has a + text, GTK and GNOME interface (with integration to the GNOME panel). + Irssi's features include configurability, smart nick completion, DCC resuming, + support for plugins and perl scripting. + . + This package includes the text-mode version of the irssi client. + . + Other irssi packages are: + irssi-common: common files for the irssi IRC client + irssi-gtk: GTK version of the irssi IRC client + irssi-gnome: GNOME version of the irssi IRC client + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..05bc574c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Pekka Aleksi Knuutila on +Wed, 26 Jul 2000 21:40:40 +0300 + +The source for the package can be found from http://www.irssi.org/ + +Upstream Author(s): Timo Sirainen + +Copyright: + + Copyright (C) 1999 Timo Sirainen + + This program 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; either version 2 of the License, or + (at your option) any later version. + + This program 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 program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenes/GPL diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 00000000..9ced22e2 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +etc +usr/bin +usr/share/irssi/scripts diff --git a/debian/menu b/debian/menu new file mode 100644 index 00000000..4b7ea5bb --- /dev/null +++ b/debian/menu @@ -0,0 +1,2 @@ +?package(irssi-text):needs=text section=Apps/Net\ +title="irssi-text" command="/usr/bin/irssi-text" diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 00000000..59cc3b2a --- /dev/null +++ b/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh -e + +#DEBHELPER# + +update-alternatives --install /usr/bin/irssi irssi /usr/bin/irssi-text 30 \ + --slave /usr/share/man/man1/irssi.1.gz irssi.1.gz \ + /usr/share/man/man1/irssi-text.1.gz + diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 00000000..adcb70b7 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,8 @@ +#!/bin/sh -e + +#DEBHELPER# + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove irssi /usr/bin/irssi-text +fi + diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..216bf649 --- /dev/null +++ b/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +TMP=`pwd`/debian/irssi-text + +configure: configure-stamp +configure-stamp: + dh_testdir + if grep -q in6_addr /usr/include/netinet/in.h ; then \ + ./configure --prefix=/usr --exec-prefix=/usr --sysconf=/etc \ + --without-servertest --enable-ipv6 --with-bot --with-proxy \ + --enable-perl=yes ; else \ + ./configure --prefix=/usr --exec-prefix=/usr --sysconf=/etc \ + --without-servertest --disable-ipv6 --with-bot --with-proxy \ + --enable-perl=yes ; fi + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + PERL_MM_OPT=INSTALLDIRS=vendor \ + $(MAKE) CFLAGS="-O2 -g -Wall" PERL_LIB_DIR= + touch build-stamp + +clean: + dh_testdir + + -$(MAKE) distclean + -rm -f src/perl/perl-signals-list.h + -rm -f default-theme.h + #-rm -f `find . -name "*~"` debian/*debhelper debian/{files,substvars} + -rm -f default-config.h libtool* + find -name Makefile -o -name Makefile.PL | xargs rm -f + + dh_clean build-stamp configure-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(TMP) PREFIX=$(TMP)/usr + mv $(TMP)/usr/bin/irssi $(TMP)/usr/bin/irssi-text + rm -rf $(TMP)/usr/share/doc + find $(TMP) -name perllocal.pod -o -name .packlist | xargs rm -f + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + + dh_installdocs README TODO AUTHORS docs/*.txt + dh_installchangelogs NEWS + dh_installmenu + dh_undocumented +ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" "" + dh_strip +endif + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/undocumented b/debian/undocumented new file mode 100644 index 00000000..512226e1 --- /dev/null +++ b/debian/undocumented @@ -0,0 +1,2 @@ +irssi-text.1 +botti.1 diff --git a/docs/Makefile.am b/docs/Makefile.am index df7947a1..d34d110c 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -1,4 +1,4 @@ -docdir = $(prefix)/doc/irssi +docdir = $(datadir)/doc/irssi doc_DATA = \ botnet.txt \ diff --git a/irssi.conf b/irssi.conf new file mode 100644 index 00000000..fc31774b --- /dev/null +++ b/irssi.conf @@ -0,0 +1,66 @@ +lservers = ( + { address = "irc.stealth.net"; chatnet = IRCNet; port = 6668; }, + { address = "irc.efnet.net"; chatnet = EFNet; port = 6667; }, + { address = "irc.undernet.org"; chatnet = Undernet; port = 6667; }, + { address = "irc.dal.net"; chatnet = DALnet; port = 6667; }, + { address = "irc.openprojects.net"; chatnet = OPN; port = 6667; }, + { address = "irc.ptlink.net"; chatnet = PTlink; port = 6667; } + { address = "silc.pspt.fi"; chatnet = SILC; port = 706; } +); + +chatnets = { + IRCNet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 5; max_whois = 4; }; + EFNet = { type = "IRC"; max_kicks = 4; max_modes = 4; max_msgs = 3; }; + Undernet = { type = "IRC"; max_kicks = 4; max_modes = 3; max_msgs = 3; max_query_chans = "1"; }; + DALNet = { type = "IRC"; max_kicks = 4; max_modes = 6; max_msgs = 3; }; + OPN = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; }; + PTLink = { type = "IRC"; max_kicks = 1; max_modes = 6; max_msgs = 100; }; + SILC = { type = "SILC"; }; +}; + +channels = ( + { name = "#irssi"; chatnet = ircnet; autojoin = No; }, + { name = "#irssi"; chatnet = opn; autojoin = No; }, + { name = "#silc"; chatnet = silc; autojoin = No; } +); + +aliases = { + J = "join"; + WJOIN = "join -window"; + WQUERY = "query -window"; + LEAVE = "part"; + BYE = "quit"; + EXIT = "quit"; + SIGNOFF = "quit"; + DESCRIBE = "action"; + DATE = "time"; + HOST = "userhost"; + LAST = "lastlog"; + SAY = "msg *"; + WI = "whois"; + WII = "whois $0 $0"; + WW = "whowas"; + W = "who"; + N = "names"; + M = "msg"; + T = "topic"; + C = "clear"; + CL = "clear"; + K = "kick"; + KB = "kickban"; + KN = "knockout"; + BANS = "ban"; + B = "ban"; + MUB = "unban *"; + UB = "unban"; + IG = "ignore"; + UNIG = "unignore"; + SB = "scrollback"; + UMODE = "mode $N"; + WC = "window close"; + WN = "window new hide"; + SV = "say Irssi $J - http://irssi.org/"; + GOTO = "sb goto"; + CHAT = "dcc chat"; + UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'"; +}; diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 542c4700..7a5a7ab4 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,4 +1,6 @@ -EXTRA_DIST = \ +scriptdir = $(datadir)/irssi/scripts + +script_DATA = \ autoop.pl \ autorejoin.pl \ clones.pl \ @@ -6,3 +8,5 @@ EXTRA_DIST = \ privmsg.pl \ realname.pl \ quitmsg.pl + +EXTRA_DIST = $(script_DATA) diff --git a/src/core/settings.c b/src/core/settings.c index 0169b268..d2482106 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -500,7 +500,7 @@ static CONFIG_REC *parse_configfile(const char *fname) else { /* user configuration file not found, use the default one from sysconfdir */ - path = SYSCONFDIR"/irssi/config"; + path = SYSCONFDIR"/irssi.conf"; if (stat(path, &statbuf) != 0) { /* no configuration file in sysconfdir .. use the build-in configuration */ diff --git a/src/fe-common/core/Makefile.am b/src/fe-common/core/Makefile.am index 9913cfe8..01c4f002 100644 --- a/src/fe-common/core/Makefile.am +++ b/src/fe-common/core/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = \ $(GLIB_CFLAGS) \ -I$(top_srcdir)/src -I$(top_srcdir)/src/core/ \ -DHELPDIR=\""$(datadir)/irssi/help"\" \ - -DSYSCONFDIR=\""$(sysconfdir)"\" + -DTHEMESDIR=\""$(datadir)/irssi/themes"\" libfe_common_core_a_SOURCES = \ autorun.c \ diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 6a8c42c4..7fcd31ac 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -705,7 +705,7 @@ THEME_REC *theme_load(const char *setname) if (stat(fname, &statbuf) != 0) { /* check global config dir */ g_free(fname); - fname = g_strdup_printf(SYSCONFDIR"/irssi/%s.theme", name); + fname = g_strdup_printf(THEMESDIR"/%s.theme", name); if (stat(fname, &statbuf) != 0) { /* theme not found */ g_free(fname); -- cgit v1.2.3