summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control27
-rwxr-xr-xdebian/rules72
-rw-r--r--debian/weechat-common.docs9
-rw-r--r--debian/weechat-curses.dirs1
-rw-r--r--debian/weechat-curses.install1
-rw-r--r--debian/weechat-gtk.dirs1
-rw-r--r--debian/weechat-gtk.install1
-rw-r--r--weechat/debian/control27
-rwxr-xr-xweechat/debian/rules72
-rw-r--r--weechat/debian/weechat-common.docs9
-rw-r--r--weechat/debian/weechat-curses.dirs1
-rw-r--r--weechat/debian/weechat-curses.install1
-rw-r--r--weechat/debian/weechat-gtk.dirs1
-rw-r--r--weechat/debian/weechat-gtk.install1
14 files changed, 132 insertions, 92 deletions
diff --git a/debian/control b/debian/control
index 0a4844738..0c7591258 100644
--- a/debian/control
+++ b/debian/control
@@ -2,13 +2,36 @@ Source: weechat
Section: net
Priority: optional
Maintainer: FlashCode <flashcode@flashtux.org>
-Build-Depends: debhelper (>> 4.0.0)
+Build-Depends: debhelper (>> 4.0.0), libncurses5 (>= 5.2.20020112a-7)
Standards-Version: 3.5.8
Package: weechat
+Architecture: all
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version}), weechat-curses (= ${Source-Version}), weechat-gtk (= ${Source-Version})
+Description: Fast, light and extensible IRC client
+ WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
+ for many operating systems. Everything can be done with a keyboard.
+ It is customizable and extensible with scripts.
+
+Package: weechat-curses
+Architecture: any
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version})
+Description: Fast, light and extensible IRC client
+ WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
+ for many operating systems. Everything can be done with a keyboard.
+ It is customizable and extensible with scripts.
+
+Package: weechat-gtk
Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version})
Description: Fast, light and extensible IRC client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with scripts.
+
+Package: weechat-common
+Architecture: all
+Recommends: weechat-curses | weechat-gtk
+Description: Common files for WeeChat
+ Documentation, examples, and locale files for WeeChat - fast, light and
+ extensible IRC client. It is useless without weechat-curses or weechat-gtk.
diff --git a/debian/rules b/debian/rules
index db43ab7e6..be8359c35 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,7 @@
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-
+export DH_VERBOSE=1
CFLAGS = -Wall -g
@@ -22,8 +19,7 @@ endif
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
-
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-gtk
touch configure-stamp
@@ -31,21 +27,14 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
-
- # Add here commands to compile the package.
$(MAKE)
- #/usr/bin/docbook-to-man debian/weechat.sgml > weechat.1
-
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
-$(MAKE) clean
-
dh_clean
install: build
@@ -53,45 +42,40 @@ install: build
dh_testroot
dh_clean -k
dh_installdirs
-
- # Add here commands to install the package into debian/weechat.
$(MAKE) install DESTDIR=$(CURDIR)/debian/weechat
+ install -o root -g root -m 755 src/gui/curses/weechat-curses $(CURDIR)/debian/weechat-curses/usr/bin
+ install -o root -g root -m 755 src/gui/gtk/weechat-gtk $(CURDIR)/debian/weechat-gtk/usr/bin
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
+ dh_testdir -pweechat-common
+ dh_testroot -pweechat-common
+ dh_installchangelogs -pweechat-common
+ dh_installdocs -pweechat-common
+ dh_installexamples -pweechat-common
+ dh_installman weechat.1 -pweechat-common
+ dh_compress -pweechat-common
+ dh_fixperms -pweechat-common
+ dh_installdeb -pweechat-common
+ dh_shlibdeps -pweechat-common
+ dh_gencontrol -pweechat-common
+ dh_md5sums -pweechat-common
+ dh_builddeb -pweechat-common
# Build architecture-dependent files here.
binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
-# dh_install
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_installinit
-# dh_installcron
-# dh_installinfo
- dh_installman weechat.1
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_python
-# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_testdir -a
+ dh_testroot -a
+ dh_link -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/weechat-common.docs b/debian/weechat-common.docs
new file mode 100644
index 000000000..a204c4610
--- /dev/null
+++ b/debian/weechat-common.docs
@@ -0,0 +1,9 @@
+AUTHORS
+BUGS
+ChangeLog
+COPYING
+FAQ
+INSTALL
+NEWS
+README
+TODO
diff --git a/debian/weechat-curses.dirs b/debian/weechat-curses.dirs
new file mode 100644
index 000000000..e77248175
--- /dev/null
+++ b/debian/weechat-curses.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/weechat-curses.install b/debian/weechat-curses.install
new file mode 100644
index 000000000..49b48af9b
--- /dev/null
+++ b/debian/weechat-curses.install
@@ -0,0 +1 @@
+usr/bin/weechat-curses
diff --git a/debian/weechat-gtk.dirs b/debian/weechat-gtk.dirs
new file mode 100644
index 000000000..e77248175
--- /dev/null
+++ b/debian/weechat-gtk.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/weechat-gtk.install b/debian/weechat-gtk.install
new file mode 100644
index 000000000..5f54b6c4c
--- /dev/null
+++ b/debian/weechat-gtk.install
@@ -0,0 +1 @@
+usr/bin/weechat-gtk
diff --git a/weechat/debian/control b/weechat/debian/control
index 0a4844738..0c7591258 100644
--- a/weechat/debian/control
+++ b/weechat/debian/control
@@ -2,13 +2,36 @@ Source: weechat
Section: net
Priority: optional
Maintainer: FlashCode <flashcode@flashtux.org>
-Build-Depends: debhelper (>> 4.0.0)
+Build-Depends: debhelper (>> 4.0.0), libncurses5 (>= 5.2.20020112a-7)
Standards-Version: 3.5.8
Package: weechat
+Architecture: all
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version}), weechat-curses (= ${Source-Version}), weechat-gtk (= ${Source-Version})
+Description: Fast, light and extensible IRC client
+ WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
+ for many operating systems. Everything can be done with a keyboard.
+ It is customizable and extensible with scripts.
+
+Package: weechat-curses
+Architecture: any
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version})
+Description: Fast, light and extensible IRC client
+ WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
+ for many operating systems. Everything can be done with a keyboard.
+ It is customizable and extensible with scripts.
+
+Package: weechat-gtk
Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version})
Description: Fast, light and extensible IRC client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with scripts.
+
+Package: weechat-common
+Architecture: all
+Recommends: weechat-curses | weechat-gtk
+Description: Common files for WeeChat
+ Documentation, examples, and locale files for WeeChat - fast, light and
+ extensible IRC client. It is useless without weechat-curses or weechat-gtk.
diff --git a/weechat/debian/rules b/weechat/debian/rules
index db43ab7e6..be8359c35 100755
--- a/weechat/debian/rules
+++ b/weechat/debian/rules
@@ -3,10 +3,7 @@
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-
+export DH_VERBOSE=1
CFLAGS = -Wall -g
@@ -22,8 +19,7 @@ endif
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
-
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-gtk
touch configure-stamp
@@ -31,21 +27,14 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
-
- # Add here commands to compile the package.
$(MAKE)
- #/usr/bin/docbook-to-man debian/weechat.sgml > weechat.1
-
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-
- # Add here commands to clean up after the build process.
-$(MAKE) clean
-
dh_clean
install: build
@@ -53,45 +42,40 @@ install: build
dh_testroot
dh_clean -k
dh_installdirs
-
- # Add here commands to install the package into debian/weechat.
$(MAKE) install DESTDIR=$(CURDIR)/debian/weechat
+ install -o root -g root -m 755 src/gui/curses/weechat-curses $(CURDIR)/debian/weechat-curses/usr/bin
+ install -o root -g root -m 755 src/gui/gtk/weechat-gtk $(CURDIR)/debian/weechat-gtk/usr/bin
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
+ dh_testdir -pweechat-common
+ dh_testroot -pweechat-common
+ dh_installchangelogs -pweechat-common
+ dh_installdocs -pweechat-common
+ dh_installexamples -pweechat-common
+ dh_installman weechat.1 -pweechat-common
+ dh_compress -pweechat-common
+ dh_fixperms -pweechat-common
+ dh_installdeb -pweechat-common
+ dh_shlibdeps -pweechat-common
+ dh_gencontrol -pweechat-common
+ dh_md5sums -pweechat-common
+ dh_builddeb -pweechat-common
# Build architecture-dependent files here.
binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
-# dh_install
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_installinit
-# dh_installcron
-# dh_installinfo
- dh_installman weechat.1
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
-# dh_perl
-# dh_python
-# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh_testdir -a
+ dh_testroot -a
+ dh_link -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/weechat/debian/weechat-common.docs b/weechat/debian/weechat-common.docs
new file mode 100644
index 000000000..a204c4610
--- /dev/null
+++ b/weechat/debian/weechat-common.docs
@@ -0,0 +1,9 @@
+AUTHORS
+BUGS
+ChangeLog
+COPYING
+FAQ
+INSTALL
+NEWS
+README
+TODO
diff --git a/weechat/debian/weechat-curses.dirs b/weechat/debian/weechat-curses.dirs
new file mode 100644
index 000000000..e77248175
--- /dev/null
+++ b/weechat/debian/weechat-curses.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/weechat/debian/weechat-curses.install b/weechat/debian/weechat-curses.install
new file mode 100644
index 000000000..49b48af9b
--- /dev/null
+++ b/weechat/debian/weechat-curses.install
@@ -0,0 +1 @@
+usr/bin/weechat-curses
diff --git a/weechat/debian/weechat-gtk.dirs b/weechat/debian/weechat-gtk.dirs
new file mode 100644
index 000000000..e77248175
--- /dev/null
+++ b/weechat/debian/weechat-gtk.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/weechat/debian/weechat-gtk.install b/weechat/debian/weechat-gtk.install
new file mode 100644
index 000000000..5f54b6c4c
--- /dev/null
+++ b/weechat/debian/weechat-gtk.install
@@ -0,0 +1 @@
+usr/bin/weechat-gtk