summaryrefslogtreecommitdiff
path: root/libre/hplip-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-13 23:00:32 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-13 23:00:32 -0200
commit93c27a82bfdb9e6fd99264741a1b58b68c9143a2 (patch)
tree695b731d00801b2dcbeba9114224910c26fe7740 /libre/hplip-libre/PKGBUILD
parentb46af7b7af67a467278e630d534e13bfd3783e9a (diff)
downloadabslibre-93c27a82bfdb9e6fd99264741a1b58b68c9143a2.tar.gz
abslibre-93c27a82bfdb9e6fd99264741a1b58b68c9143a2.tar.bz2
abslibre-93c27a82bfdb9e6fd99264741a1b58b68c9143a2.zip
hplip-libre-3.13.9-3: updating revision
* add patch for CVE-2013-4325; FS#37168 => https://bugs.archlinux.org/task/37168
Diffstat (limited to 'libre/hplip-libre/PKGBUILD')
-rw-r--r--libre/hplip-libre/PKGBUILD28
1 files changed, 20 insertions, 8 deletions
diff --git a/libre/hplip-libre/PKGBUILD b/libre/hplip-libre/PKGBUILD
index bd2820343..41ef21e4e 100644
--- a/libre/hplip-libre/PKGBUILD
+++ b/libre/hplip-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 194375 2013-09-15 08:00:33Z andyrtr $
+# $Id: PKGBUILD 196443 2013-10-13 20:05:28Z andyrtr $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor : Rémy Oudompheng <remy@archlinux.org>
# Contributor: Morgan LEFIEUX <comete@archlinuxfr.org>
@@ -7,7 +7,7 @@
_pkgname=hplip
pkgname=hplip-libre
pkgver=3.13.9
-pkgrel=2
+pkgrel=3
pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet, without hplip-plugin binary blobs recommendation"
arch=('i686' 'x86_64')
url="http://hplipopensource.com"
@@ -30,17 +30,22 @@ provides=$_pkgname=$pkgver
options=('!libtool')
install=hplip.install
source=(http://downloads.sourceforge.net/${_pkgname}/$_pkgname-$pkgver.tar.gz{,.asc}
- hp-mkuri.patch)
+ hp-mkuri.patch
+ hplip-CVE-2013-4325.patch)
md5sums=('8fcbbd0d3a0b76550f325bd6cf46d9d9'
'SKIP'
- '0bd7779fdbc4d7a9386df04dce2cb8d4')
+ '0bd7779fdbc4d7a9386df04dce2cb8d4'
+ '947db41ee8556c78dd027a2f107957e6')
-build() {
- cd "$srcdir/$_pkgname-$pkgver"
+prepare() {
+ cd $_pkgname-$pkgver
# fix linking libnotify, FS#34283
patch -Np0 -i ${srcdir}/hp-mkuri.patch
+ # https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4325
+ patch -Np1 -i ${srcdir}/hplip-CVE-2013-4325.patch
+
export PYTHON=python2
find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
@@ -65,7 +70,10 @@ build() {
export AUTOMAKE='automake --foreign'
autoreconf --force --install
+}
+build() {
+ cd $_pkgname-$pkgver
./configure --prefix=/usr \
--enable-qt4 \
--disable-foomatic-rip-hplip-install \
@@ -83,15 +91,19 @@ build() {
}
package() {
- #cd "$srcdir/$_pkgname-$pkgver"
- cd "$srcdir/$_pkgname-${pkgver/.a/a}"
+ #cd $_pkgname-$pkgver
+ cd $_pkgname-${pkgver/.a/a}
make rulesdir=/usr/lib/udev/rules.d DESTDIR="$pkgdir/" install
+
# remove config provided by sane and autostart of hp-daemon
rm -rf "$pkgdir"/etc/{sane.d,xdg}
+
# remove HAL .fdi file because HAL is no longer used
rm -rf "$pkgdir"/usr/share/hal
+
# log dir should not be world writeable
chmod 775 "$pkgdir"/var/log/hp{,/tmp}
+
# remove rc script
rm -rf "$pkgdir"/etc/init.d
}