From 1c4b59e5d379ba44c9ba9e27750ebec49a597c0d Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sun, 9 Nov 2008 12:41:37 -0600
Subject: gdb,telnet,patch,make,vte

---
 abs/core-testing/gdb/PKGBUILD                      | 27 ++++++++++
 abs/core-testing/gdb/gdb.install                   | 18 +++++++
 abs/core-testing/netkit-telnet/PKGBUILD            | 22 ++++++++
 .../netkit-telnet/netkit-telnet-0.17.patch         | 36 +++++++++++++
 abs/core-testing/netkit-telnet/telnet.xinetd       | 10 ++++
 abs/core-testing/patch/PKGBUILD                    | 21 ++++++++
 abs/core-testing/ttf-bitstream-vera/PKGBUILD       | 22 ++++++++
 abs/core-testing/ttf-bitstream-vera/vera.install   | 20 +++++++
 abs/extra-testing/make/PKGBUILD                    | 20 +++++++
 abs/extra-testing/vte/PKGBUILD                     | 26 +++++++++
 .../vte/vte-0.16.0-reaper-python-bindings.patch    | 62 ++++++++++++++++++++++
 11 files changed, 284 insertions(+)
 create mode 100644 abs/core-testing/gdb/PKGBUILD
 create mode 100644 abs/core-testing/gdb/gdb.install
 create mode 100644 abs/core-testing/netkit-telnet/PKGBUILD
 create mode 100644 abs/core-testing/netkit-telnet/netkit-telnet-0.17.patch
 create mode 100644 abs/core-testing/netkit-telnet/telnet.xinetd
 create mode 100644 abs/core-testing/patch/PKGBUILD
 create mode 100644 abs/core-testing/ttf-bitstream-vera/PKGBUILD
 create mode 100644 abs/core-testing/ttf-bitstream-vera/vera.install
 create mode 100644 abs/extra-testing/make/PKGBUILD
 create mode 100644 abs/extra-testing/vte/PKGBUILD
 create mode 100644 abs/extra-testing/vte/vte-0.16.0-reaper-python-bindings.patch

diff --git a/abs/core-testing/gdb/PKGBUILD b/abs/core-testing/gdb/PKGBUILD
new file mode 100644
index 0000000..e4ee109
--- /dev/null
+++ b/abs/core-testing/gdb/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 10684 2008-08-29 21:45:41Z eric $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+pkgname=gdb
+pkgver=6.8
+pkgrel=3
+pkgdesc="The GNU Debugger"
+arch=(i686 x86_64)
+url="http://sources.redhat.com/gdb/"
+depends=('ncurses' 'expat')
+options=('!libtool')
+license=('GPL3')
+install=gdb.install
+source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('c9da266b884fb8fa54df786dfaadbc7a')
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  ./configure --prefix=/usr --disable-nls --mandir=/usr/share/man \
+      --infodir=/usr/share/info
+  make || return 1
+  make DESTDIR=${startdir}/pkg install || return 1
+  rm -f ${pkgdir}/usr/share/info/dir
+  # resolve conflicts with binutils
+  rm -f ${startdir}/pkg/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
+  rm -f ${startdir}/pkg/usr/lib/{libiberty,libbfd,libopcodes}.a
+  rm -f ${startdir}/pkg/usr/share/info/{bfd.info,configure.info,standards.info}
+}
diff --git a/abs/core-testing/gdb/gdb.install b/abs/core-testing/gdb/gdb.install
new file mode 100644
index 0000000..ca793a1
--- /dev/null
+++ b/abs/core-testing/gdb/gdb.install
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(annotate.info gdb.info gdb.info-1 gdb.info-2 gdb.info-3 gdb.info-4 gdbint.info gdbint.info-1 gdbint.info-2 stabs.info)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
diff --git a/abs/core-testing/netkit-telnet/PKGBUILD b/abs/core-testing/netkit-telnet/PKGBUILD
new file mode 100644
index 0000000..5afd1a1
--- /dev/null
+++ b/abs/core-testing/netkit-telnet/PKGBUILD
@@ -0,0 +1,22 @@
+# $Id: PKGBUILD 9079 2008-08-17 03:28:25Z allan $
+# Maintainer: dorphell <dorphell@archlinux.org>
+pkgname=netkit-telnet
+pkgver=0.17
+pkgrel=8
+pkgdesc="A telnet client (and server)"
+arch=(i686 x86_64)
+depends=('ncurses')
+license=('GPL2' 'GPL3') # parts are GPL2, others GPL3
+source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/$pkgname-$pkgver.tar.gz $pkgname-$pkgver.patch telnet.xinetd)
+md5sums=('d6beabaaf53fe6e382c42ce3faa05a36' 'd56497f2c6b96e8909ed57f1be19411d' \
+         'c6e6ca4ba8e084be8ce2a170bebc17cc')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  patch -Np1 -i ../$pkgname-$pkgver.patch
+  ./configure --prefix=/usr --installroot=$startdir/pkg
+  make || return 1
+  mkdir -p $startdir/pkg/usr/{bin,sbin,share/{man/man1,man/man5,man/man8}} $startdir/pkg/etc/xinetd.d
+  make MANDIR=/usr/share/man install
+  install -m644 $startdir/src/telnet.xinetd $startdir/pkg/etc/xinetd.d/telnet
+}
diff --git a/abs/core-testing/netkit-telnet/netkit-telnet-0.17.patch b/abs/core-testing/netkit-telnet/netkit-telnet-0.17.patch
new file mode 100644
index 0000000..77919e1
--- /dev/null
+++ b/abs/core-testing/netkit-telnet/netkit-telnet-0.17.patch
@@ -0,0 +1,36 @@
+diff -Naur netkit-telnet-0.17-orig/telnet/proto.h netkit-telnet-0.17/telnet/proto.h
+--- netkit-telnet-0.17-orig/telnet/proto.h	1997-05-19 09:32:36.000000000 +0000
++++ netkit-telnet-0.17/telnet/proto.h	2002-09-05 01:17:24.000000000 +0000
+@@ -3,6 +3,9 @@
+ void auth_encrypt_init(void);
+ #endif
+ 
++#include <stdlib.h>
++#include <string.h>
++
+ void Exit(int);
+ void ExitString(const char *, int);
+ int TerminalAutoFlush(void);
+diff -Naur netkit-telnet-0.17-orig/telnetd/telnetd.h netkit-telnet-0.17/telnetd/telnetd.h
+--- netkit-telnet-0.17-orig/telnetd/telnetd.h	1999-03-27 07:46:21.000000000 +0000
++++ netkit-telnet-0.17/telnetd/telnetd.h	2002-09-05 01:17:34.000000000 +0000
+@@ -38,6 +38,7 @@
+ #include "defs.h"
+ #include "ext.h"
+ #include <errno.h>
++#include <stdlib.h>
+ 
+ #ifdef	DIAGNOSTICS
+ #define	DIAG(a,b)	if (diagnostic & (a)) b
+diff -Naur netkit-telnet-0.17-orig/configure netkit-telnet-0.17/configure
+--- netkit-telnet-0.17-orig/configure	2003-11-04 13:10:07.000000000 -0500
++++ netkit-telnet-0.17/configure	2003-11-04 13:10:49.000000000 -0500
+@@ -252,7 +252,7 @@
+ fi
+ 
+ 
+-LDFLAGS=
++LDFLAGS=-lstdc++
+ LIBS=
+ 
+ rm -f __conftest*
diff --git a/abs/core-testing/netkit-telnet/telnet.xinetd b/abs/core-testing/netkit-telnet/telnet.xinetd
new file mode 100644
index 0000000..1a1f4ed
--- /dev/null
+++ b/abs/core-testing/netkit-telnet/telnet.xinetd
@@ -0,0 +1,10 @@
+service telnet
+{
+	flags			= REUSE
+	socket_type		= stream
+	wait			= no
+	user			= root
+	server			= /usr/sbin/in.telnetd
+	log_on_failure		+= USERID
+	disable			= yes
+}
diff --git a/abs/core-testing/patch/PKGBUILD b/abs/core-testing/patch/PKGBUILD
new file mode 100644
index 0000000..87810d1
--- /dev/null
+++ b/abs/core-testing/patch/PKGBUILD
@@ -0,0 +1,21 @@
+# $Id: PKGBUILD 1438 2008-05-08 17:11:21Z andyrtr $
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=patch
+pkgver=2.5.9
+pkgrel=1
+pkgdesc="A utility to apply patch files to original sources"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/patch/patch.html"
+license=('GPL')
+groups=('base-devel')
+depends=('glibc' 'ed')
+source=(ftp://alpha.gnu.org/gnu/diffutils/$pkgname-$pkgver.tar.gz)
+	#ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('dacfb618082f8d3a2194601193cf8716')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  make || return 1
+  make prefix=$startdir/pkg/usr mandir=$startdir/pkg/usr/share/man install || return 1
+}
diff --git a/abs/core-testing/ttf-bitstream-vera/PKGBUILD b/abs/core-testing/ttf-bitstream-vera/PKGBUILD
new file mode 100644
index 0000000..d802ca4
--- /dev/null
+++ b/abs/core-testing/ttf-bitstream-vera/PKGBUILD
@@ -0,0 +1,22 @@
+# $Id
+# Maintainer: dorphell <dorphell@archlinux.org>
+
+pkgname=ttf-bitstream-vera
+pkgver=1.10
+pkgrel=5
+pkgdesc="Bitstream vera fonts"
+arch=(i686 x86_64)
+license=(custom)
+url="http://www.gnome.org/fonts"
+depends=(fontconfig xorg-fonts-encodings xorg-font-utils)
+install=vera.install
+source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/1.10/${pkgname}-${pkgver}.tar.bz2)
+md5sums=(bb22bd5b4675f5dbe17c6963d8c00ed6)
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  mkdir -p  ${startdir}/pkg/usr/share/fonts/TTF
+  install -m644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF/
+  mkdir -p ${startdir}/pkg/usr/share/licenses/custom/ttf-bitstream-vera
+  install -m644 COPYRIGHT.TXT ${startdir}/pkg/usr/share/licenses/custom/ttf-bitstream-vera/license.txt
+}
diff --git a/abs/core-testing/ttf-bitstream-vera/vera.install b/abs/core-testing/ttf-bitstream-vera/vera.install
new file mode 100644
index 0000000..4f5212e
--- /dev/null
+++ b/abs/core-testing/ttf-bitstream-vera/vera.install
@@ -0,0 +1,20 @@
+post_install() {
+  echo -n "Updating font cache... "
+  fc-cache -f > /dev/null
+  mkfontscale /usr/share/fonts/TTF
+  mkfontdir /usr/share/fonts/TTF
+  echo "done."
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
+
+op=$1
+shift
+
+$op $*
diff --git a/abs/extra-testing/make/PKGBUILD b/abs/extra-testing/make/PKGBUILD
new file mode 100644
index 0000000..2384814
--- /dev/null
+++ b/abs/extra-testing/make/PKGBUILD
@@ -0,0 +1,20 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: judd <jvinet@zeroflux.org>
+pkgname=make
+pkgver=3.81
+pkgrel=3
+pkgdesc="GNU make utility to maintain groups of programs"
+arch=(i686 x86_64)
+url="http://www.gnu.org/software/make"
+license=('GPL')
+groups=('base-devel')
+depends=('glibc' 'bash')
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('a4e9494ac6dc3f6b0c5ff75c5d52abba')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  make DESTDIR=$startdir/pkg install
+}
diff --git a/abs/extra-testing/vte/PKGBUILD b/abs/extra-testing/vte/PKGBUILD
new file mode 100644
index 0000000..569db33
--- /dev/null
+++ b/abs/extra-testing/vte/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 16789 2008-10-22 03:33:22Z allan $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=vte
+pkgver=0.17.4
+pkgrel=2
+pkgdesc="VTE - Virtual Terminal Emulator"
+arch=(i686 x86_64)
+license=('LGPL')
+depends=('gtk2>=2.11.3' 'libsm')
+options=('!libtool')
+makedepends=('pygtk>=2.11.0' 'pkgconfig' 'intltool')
+url="http://www.gnome.org"
+source=(http://ftp.gnome.org/pub/GNOME/sources/vte/0.17/vte-${pkgver}.tar.bz2
+	vte-0.16.0-reaper-python-bindings.patch)
+md5sums=('ec6cb2668db7146eae7cfc48af98f3ed' 'efe29cd40635e73fa3152f77d91a4f39')
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  patch -Np1 -i ${startdir}/src/vte-0.16.0-reaper-python-bindings.patch || return 1
+  ./configure --prefix=/usr --sysconfdir=/etc \
+              --libexecdir=/usr/lib/vte \
+              --localstatedir=/var --disable-static || return 1
+  make || return 1
+  make DESTDIR=${startdir}/pkg install || return 1
+}
diff --git a/abs/extra-testing/vte/vte-0.16.0-reaper-python-bindings.patch b/abs/extra-testing/vte/vte-0.16.0-reaper-python-bindings.patch
new file mode 100644
index 0000000..47d6ce6
--- /dev/null
+++ b/abs/extra-testing/vte/vte-0.16.0-reaper-python-bindings.patch
@@ -0,0 +1,62 @@
+diff -NarU 3 vte-0.16.0.orig/python/vte.defs vte-0.16.0/python/vte.defs
+--- vte-0.16.0.orig/python/vte.defs	2007-02-26 22:05:02.000000000 +0100
++++ vte-0.16.0/python/vte.defs	2007-03-14 20:44:55.000000000 +0100
+@@ -7,6 +7,14 @@
+   (gtype-id "VTE_TYPE_TERMINAL")
+ )
+ 
++(define-object Reaper
++  (in-module "Vte")
++  (parent "GObject")
++  (c-name "VteReaper")
++  (gtype-id "VTE_TYPE_REAPER")
++)
++
++
+ ;; Enumerations and flags ...
+ 
+ (define-enum TerminalEraseBinding
+@@ -701,4 +709,14 @@
+   (return-type "const-char*")
+ )
+ 
++;; From ../src/reaper.h
++(define-function vte_reaper_get_type
++  (c-name "vte_reaper_get_type")
++  (return-type "GtkType")
++)
++
++(define-function reaper_get
++  (c-name "vte_reaper_get")
++  (return-type "VteReaper*")
++)
+ 
+diff -NarU 3 vte-0.16.0.orig/python/vte.override vte-0.16.0/python/vte.override
+--- vte-0.16.0.orig/python/vte.override	2007-02-26 22:05:02.000000000 +0100
++++ vte-0.16.0/python/vte.override	2007-03-14 20:46:12.000000000 +0100
+@@ -7,12 +7,14 @@
+ #include <pygobject.h>
+ #include <gtk/gtk.h>
+ #include "../src/vte.h"
++#include "../src/reaper.h"
+ %%
+ modulename vte
+ %%
+ import gtk.gdk.Pixbuf as PyGdkPixbuf_Type
+ import gtk.MenuShell as PyGtkMenuShell_Type
+ import gtk.Widget as PyGtkWidget_Type
++import gobject.GObject as PyGObject_Type
+ %%
+ override vte_terminal_feed kwargs
+ static PyObject *
+diff -NarU 3 vte-0.16.0.orig/python/vtemodule.c vte-0.16.0/python/vtemodule.c
+--- vte-0.16.0.orig/python/vtemodule.c	2007-02-26 22:05:02.000000000 +0100
++++ vte-0.16.0/python/vtemodule.c	2007-03-14 20:47:12.000000000 +0100
+@@ -25,6 +25,7 @@
+ #include <pygobject.h>
+ #include <pygtk/pygtk.h>
+ #include "../src/vte.h"
++#include "../src/reaper.h"
+ 
+ extern void pyvte_register_classes(PyObject * d);
+ extern PyMethodDef pyvte_functions[];
-- 
cgit v0.12

