summaryrefslogtreecommitdiff
path: root/community/pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'community/pkgfile')
-rw-r--r--community/pkgfile/0001-update-fix-use-after-free.patch27
-rw-r--r--community/pkgfile/PKGBUILD40
-rw-r--r--community/pkgfile/pkgfile.install18
3 files changed, 0 insertions, 85 deletions
diff --git a/community/pkgfile/0001-update-fix-use-after-free.patch b/community/pkgfile/0001-update-fix-use-after-free.patch
deleted file mode 100644
index 4494224c5..000000000
--- a/community/pkgfile/0001-update-fix-use-after-free.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 60559a15e170ad49b388ee442eb2ccbe483bc9aa Mon Sep 17 00:00:00 2001
-From: Dave Reisner <dreisner@archlinux.org>
-Date: Mon, 19 Nov 2012 19:50:47 -0500
-Subject: [PATCH] update: fix use after free
-
-mark the address space as unread so that we don't attempt a double free
-on a repo download failure during the final cleanup.
----
- src/update.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/update.c b/src/update.c
-index c2e76e5..0b4fb8a 100644
---- a/src/update.c
-+++ b/src/update.c
-@@ -552,7 +552,7 @@ static int add_repo_download(CURLM *multi, struct repo_t *repo)
- } else {
- curl_multi_remove_handle(multi, repo->curl);
- FREE(repo->url);
-- free(repo->data);
-+ FREE(repo->data);
- repo->buflen = 0;
- repo->server_idx++;
- }
---
-1.8.0
-
diff --git a/community/pkgfile/PKGBUILD b/community/pkgfile/PKGBUILD
deleted file mode 100644
index 5f176cdb0..000000000
--- a/community/pkgfile/PKGBUILD
+++ /dev/null
@@ -1,40 +0,0 @@
-# $Id: PKGBUILD 80498 2012-11-23 00:24:41Z dreisner $
-# Maintainer: Dave Reisner <dreisner@archlinux.org>
-
-pkgname=pkgfile
-pkgver=7
-pkgrel=2
-pkgdesc="a pacman .files metadata explorer"
-arch=('i686' 'x86_64')
-url="http://github.com/falconindy/pkgfile"
-license=('MIT')
-depends=('libarchive' 'curl' 'pcre' 'pacman')
-conflicts=('pkgtools<24-2')
-makedepends=('perl')
-source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
- '0001-update-fix-use-after-free.patch')
-install=pkgfile.install
-md5sums=('f1dc0052b1c21597ea2fa0f0ce05608c'
- '28599a9b6e56860a9cba1c95ec797551'
- 'a4f505d080795fd0c10fd1d93b4520f6')
-
-build() {
- cd "$pkgname-$pkgver"
-
- patch -Np1 <"$srcdir/0001-update-fix-use-after-free.patch"
-
- ./configure
- make
-
- # generate a license file
- sed '/\*\//q' src/pkgfile.c >LICENSE
-}
-
-package() {
- cd "$pkgname-$pkgver"
-
- make DESTDIR="$pkgdir" install
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim: ft=sh syn=sh
diff --git a/community/pkgfile/pkgfile.install b/community/pkgfile/pkgfile.install
deleted file mode 100644
index 5545a3d39..000000000
--- a/community/pkgfile/pkgfile.install
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-post_install() {
- printf "==> Run 'pkgfile --update' to initialize the database\n"
-}
-
-post_remove() {
- # the cache dir might not be removed, notify the user
- if [ -d var/cache/pkgfile ]; then
- printf "==> /var/cache/pkgfile has not been removed\n"
- fi
-}
-
-post_upgrade() {
- if [ "$(vercmp 5 "$2")" -eq 1 ]; then
- printf "==> DB format has changed. Please run pkgfile -uu\n"
- fi
-}