summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/recutils/ChangeLog36
-rw-r--r--pcr/recutils/PKGBUILD44
-rw-r--r--pcr/recutils/recutils-1.5-glibc-2.16.patch29
-rw-r--r--pcr/recutils/recutils.install36
4 files changed, 145 insertions, 0 deletions
diff --git a/pcr/recutils/ChangeLog b/pcr/recutils/ChangeLog
new file mode 100644
index 000000000..02a3a418d
--- /dev/null
+++ b/pcr/recutils/ChangeLog
@@ -0,0 +1,36 @@
+recutils (1.5-1)
+
+ * New upstream release
+ - Version 1.5 (13 January 2012)
+ - The utilities will now ask interactively for a password
+ if it was not provided with the -s command line option.
+ This avoids security problems related to shell history files.
+ - Support for octal and hexadecimal numbers has been added.
+ They can be used in both the records and selection expressions.
+ - It is now possible to select a given number of random records
+ in many of the utilities using the -m command line option.
+ - The -n option now accepts a list of indexes, supporting ranges.
+ - The new -U (uniq) option for recsel removes duplicated fields
+ in the output records.
+ - The new -q option allows to quickly search for the desired record
+ without having to provide a complete selection expression.
+ - Auto generated fields are now considered integers by default.
+ This avoids repetitive patterns involving %auto and %type.
+ - Tab characters are now allowed in blank lines betwwen records.
+ - The API in rec.h is now better documented with comments, and improved.
+ - recfix now exits with an error status
+ if there is a parse error in some input file.
+ - The usage of the internal data structures has been _vastly_ improved,
+ resulting in a much faster operation.
+ - Internal cleanup and code factorization.
+ - Many, many, many bug fixes :D
+ * PKGBUILD
+ - commenting out "makedepends=(mdbtools)" for now
+ because the current "mdbtools" package from the AUR
+ is missing 'MDB_NOFLAGS' in the "mdbtools.h" file.
+ - all other dependencies to compile and run recutils
+ are already satisfied through the 'base' group.
+ * Added some examples
+
+ -- Sven Wick <sven.wick@gmx.de> Fri, 20 Jan 2012 16:04:02 +0100
+
diff --git a/pcr/recutils/PKGBUILD b/pcr/recutils/PKGBUILD
new file mode 100644
index 000000000..ddf47243a
--- /dev/null
+++ b/pcr/recutils/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Max Meyer <dev@fedux.org>
+# Contributor: Sven Wick <sven.wick@gmx.de>
+#
+# Please fork and send me a pull request for changes to package build file(s)
+# Url: https://github.com/maxmeyer/archlinux-recutils
+#
+
+pkgname=recutils
+pkgver=1.5
+pkgrel=2
+pkgdesc="GNU tools and libraries to access human-editable, text-based databases."
+arch=(i686 x86_64 mips64el)
+url="http://www.gnu.org/software/recutils/"
+license=('GPL3')
+depends=(libgcrypt curl)
+optdepends=("mdbtools: for processing M$ Access databases")
+#options=()
+install=recutils.install
+changelog=ChangeLog
+source=("http://ftp.gnu.org/gnu/recutils/$pkgname-$pkgver.tar.gz"
+ "recutils-1.5-glibc-2.16.patch")
+sha256sums=('7ed67e74468084f52ad9341e4b11c44e5fd9d5325b93b7eb2cb230c839ff5dec'
+ '28c169df3573748215a78b78793d45a09aeefc6194cf1185c7c0f11881eb289a')
+options=(!libtool)
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ${srcdir}/recutils-1.5-glibc-2.16.patch
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/recutils/recutils-1.5-glibc-2.16.patch b/pcr/recutils/recutils-1.5-glibc-2.16.patch
new file mode 100644
index 000000000..8b4997f09
--- /dev/null
+++ b/pcr/recutils/recutils-1.5-glibc-2.16.patch
@@ -0,0 +1,29 @@
+--- recutils-1.5/lib/stdio.in.h
++++ recutils-1.5/lib/stdio.in.h
+@@ -699,22 +699,11 @@
+ # endif
+ #endif
+
+-#if @GNULIB_GETS@
+-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
+-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+-# undef gets
+-# define gets rpl_gets
+-# endif
+-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
+-_GL_CXXALIAS_RPL (gets, char *, (char *s));
+-# else
+-_GL_CXXALIAS_SYS (gets, char *, (char *s));
+-# undef gets
+-# endif
+-_GL_CXXALIASWARN (gets);
+ /* It is very rare that the developer ever has full control of stdin,
+- so any use of gets warrants an unconditional warning. Assume it is
+- always declared, since it is required by C89. */
++ so any use of gets warrants an unconditional warning; besides, C11
++ removed it. */
++#undef gets
++#if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
+
diff --git a/pcr/recutils/recutils.install b/pcr/recutils/recutils.install
new file mode 100644
index 000000000..245c7ae01
--- /dev/null
+++ b/pcr/recutils/recutils.install
@@ -0,0 +1,36 @@
+_infodir=/usr/share/info
+_infofiles=( recutils.info.gz )
+
+_mandir=/usr/share/man/man1
+_manfiles=( csv2rec.1.gz rec2csv.1.gz recdel.1.gz recfix.1.gz recfmt.1.gz recinf.1.gz recins.1.gz recsel.1.gz recset.1.gz)
+
+## arg 1: the new package version
+post_install() {
+ [ -x /usr/bin/mandb ] || return 0
+ for _file in ${_manfiles[@]}; do
+ mandb -f $_mandir/$_file
+ done
+
+ [ -x /usr/bin/install-info ] || return 0
+ for _file in ${_infofiles[@]}; do
+ install-info $_infodir/$_file $_infodir/dir #2> /dev/null
+ done
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x /usr/bin/mandb ] || return 0
+ mandb
+
+ [ -x /usr/bin/install-info ] || return 0
+ for _file in ${_infofiles[@]}; do
+ install-info --delete $_infodir/$_file $_infodir/dir #2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: