summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-05 00:04:11 +0000
committerroot <root@rshg054.dnsready.net>2012-08-05 00:04:11 +0000
commit9b4356a4ce894946739f7fff9411f62be0fbc122 (patch)
tree29999235b5b73068c5ddb4dc1239dcf7c66397fa /testing
parentf8ac5d4703080cc87ba2fe36f68df745d3a5f62f (diff)
Sun Aug 5 00:04:11 UTC 2012
Diffstat (limited to 'testing')
-rw-r--r--testing/bison/PKGBUILD8
-rw-r--r--testing/flex/PKGBUILD6
-rw-r--r--testing/logrotate/PKGBUILD24
-rw-r--r--testing/logrotate/noasprintf.patch53
-rw-r--r--testing/logrotate/paths.patch25
5 files changed, 96 insertions, 20 deletions
diff --git a/testing/bison/PKGBUILD b/testing/bison/PKGBUILD
index e2f861d0b..069d61071 100644
--- a/testing/bison/PKGBUILD
+++ b/testing/bison/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 164337 2012-07-31 00:34:31Z allan $
+# $Id: PKGBUILD 164715 2012-08-04 00:56:52Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
pkgname=bison
-pkgver=2.6.1
+pkgver=2.6.2
pkgrel=1
pkgdesc="The GNU general-purpose parser generator"
arch=('i686' 'x86_64')
@@ -13,8 +13,8 @@ depends=('glibc' 'm4' 'sh')
groups=('base-devel')
install=bison.install
source=(ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz{,.sig})
-md5sums=('1fc1b9bc689e7fc5622d32c93cce746f'
- '44d571e9b271fbcf283c1795c28f70aa')
+md5sums=('dea291996f98c34c3fd8e389a9cf6ea1'
+ 'e6d78e6423e9e29f3b6c5deee839b41c')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
diff --git a/testing/flex/PKGBUILD b/testing/flex/PKGBUILD
index d51091dc7..1c9e16129 100644
--- a/testing/flex/PKGBUILD
+++ b/testing/flex/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 163839 2012-07-21 10:43:39Z allan $
+# $Id: PKGBUILD 164717 2012-08-04 01:16:51Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=flex
-pkgver=2.5.36
+pkgver=2.5.37
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('i686' 'x86_64')
@@ -14,7 +14,7 @@ depends=('glibc' 'm4' 'sh')
install=flex.install
source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
lex.sh)
-md5sums=('5e637290609fd3c2f1f2e75ac2bce1c5'
+md5sums=('c75940e1fc25108f2a7b3ef42abdae06'
'f725259ec23a9e87ee29e2ef82eda9a5')
build() {
diff --git a/testing/logrotate/PKGBUILD b/testing/logrotate/PKGBUILD
index 99a621b50..7ad4ebd03 100644
--- a/testing/logrotate/PKGBUILD
+++ b/testing/logrotate/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 162025 2012-06-18 22:17:58Z pierre $
+# $Id: PKGBUILD 164699 2012-08-03 08:05:59Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgname=logrotate
-pkgver=3.8.1
-pkgrel=2
+pkgver=3.8.2
+pkgrel=1
pkgdesc="Rotates system logs automatically"
arch=('i686' 'x86_64')
url="https://fedorahosted.org/logrotate/"
@@ -12,23 +12,21 @@ groups=('base')
depends=('popt' 'cron' 'gzip')
backup=('etc/logrotate.conf')
source=("https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz"
- 'logrotate-3.8.1-noasprintf.patch'
+ 'noasprintf.patch'
+ 'paths.patch'
'logrotate.conf'
'logrotate.cron.daily')
-md5sums=('bd2e20d8dc644291b08f9215397d28a5'
- 'fc8e4e15211d8aefd431d0e2e96223c4'
+md5sums=('ddd4dcf28c38b3ac6bc6ff4e0148308a'
+ 'cd76976b5ce37d328b452c806b55a015'
+ 'e76526bcd6fc33c9d921e1cb1eff1ffb'
'462a5f364717461537eb2ae6394ad23e'
'aa8ac8283908b6114483a293adcb650f')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
- patch -p1 -i "$srcdir"/logrotate-3.8.1-noasprintf.patch
-
- sed -e 's|#define DEFAULT_MAIL_COMMAND .*|#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"|'\
- -e 's|#define COMPRESS_COMMAND .*|#define COMPRESS_COMMAND "/usr/bin/gzip"|'\
- -e 's|#define UNCOMPRESS_COMMAND .*|#define UNCOMPRESS_COMMAND "/usr/bin/gunzip"|'\
- -i config.h
+ patch -p0 -i "$srcdir/noasprintf.patch"
+ patch -p0 -i "$srcdir/paths.patch"
make RPM_OPT_FLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS"
}
@@ -40,7 +38,7 @@ check() {
package() {
cd "$srcdir/${pkgname}-${pkgver}"
- make PREFIX="$pkgdir" MANDIR="usr/share/man" install
+ make PREFIX="$pkgdir" MANDIR="/usr/share/man" install
install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf"
install -Dm744 "$srcdir/logrotate.cron.daily" "$pkgdir/etc/cron.daily/logrotate"
diff --git a/testing/logrotate/noasprintf.patch b/testing/logrotate/noasprintf.patch
new file mode 100644
index 000000000..3df943b64
--- /dev/null
+++ b/testing/logrotate/noasprintf.patch
@@ -0,0 +1,53 @@
+--- config.c 2011-06-21 04:12:02.000000000 -0400
++++ config.c 2011-07-12 13:47:36.274319050 -0400
+@@ -41,39 +41,6 @@
+ #include "asprintf.c"
+ #endif
+
+-#if !defined(asprintf)
+-#include <stdarg.h>
+-
+-int asprintf(char **string_ptr, const char *format, ...)
+-{
+- va_list arg;
+- char *str;
+- int size;
+- int rv;
+-
+- va_start(arg, format);
+- size = vsnprintf(NULL, 0, format, arg);
+- size++;
+- va_start(arg, format);
+- str = malloc(size);
+- if (str == NULL) {
+- va_end(arg);
+- /*
+- * Strictly speaking, GNU asprintf doesn't do this,
+- * but the caller isn't checking the return value.
+- */
+- fprintf(stderr, "failed to allocate memory\\n");
+- exit(1);
+- }
+- rv = vsnprintf(str, size, format, arg);
+- va_end(arg);
+-
+- *string_ptr = str;
+- return (rv);
+-}
+-
+-#endif
+-
+ #if !defined(strndup)
+ char *strndup(const char *s, size_t n)
+ {
+--- logrotate.h 2011-06-21 04:12:02.000000000 -0400
++++ logrotate.h 2011-07-12 13:47:38.949285608 -0400
+@@ -66,8 +66,5 @@ extern int numLogs;
+ extern int debug;
+
+ int readAllConfigPaths(const char **paths);
+-#if !defined(asprintf)
+-int asprintf(char **string_ptr, const char *format, ...);
+-#endif
+
+ #endif
diff --git a/testing/logrotate/paths.patch b/testing/logrotate/paths.patch
new file mode 100644
index 000000000..83166b095
--- /dev/null
+++ b/testing/logrotate/paths.patch
@@ -0,0 +1,25 @@
+--- config.h 2012-08-01 12:56:47.000000000 +0200
++++ config.h 2012-08-03 09:53:05.025039199 +0200
+@@ -27,11 +27,11 @@
+ * Default settings for Linux - leave these last.
+ */
+ #ifndef DEFAULT_MAIL_COMMAND
+-#define DEFAULT_MAIL_COMMAND "/bin/mail"
++#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"
+ #endif
+
+ #ifndef COMPRESS_COMMAND
+-#define COMPRESS_COMMAND "/bin/gzip"
++#define COMPRESS_COMMAND "/usr/bin/gzip"
+ #endif
+
+ #ifndef COMPRESS_EXT
+@@ -39,7 +39,7 @@
+ #endif
+
+ #ifndef UNCOMPRESS_COMMAND
+-#define UNCOMPRESS_COMMAND "/bin/gunzip"
++#define UNCOMPRESS_COMMAND "/usr/bin/gunzip"
+ #endif
+
+ #ifndef STATEFILE