mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 08:15:01 -05:00
Remove some un-needed packages
This commit is contained in:
parent
09a151255d
commit
b5f71627e1
@ -1,15 +0,0 @@
|
||||
# Maintainer: Pablo Moyano (p4block)
|
||||
pkgname=aosp-devel
|
||||
pkgver=0.3
|
||||
pkgrel=1
|
||||
pkgdesc='Metapackage to pull all dependencies required to build modern Android'
|
||||
arch=('x86_64')
|
||||
url='https://wiki.archlinux.org/index.php/Android#Building_Android'
|
||||
license=('None')
|
||||
depends=('gcc-multilib' 'repo' 'git' 'gnupg' 'flex' 'bison' 'gperf' 'sdl' 'wxgtk'
|
||||
'squashfs-tools' 'curl' 'ncurses' 'zlib' 'schedtool' 'perl-switch'
|
||||
'zip' 'unzip' 'libxslt' 'python2-virtualenv' 'bc' 'rsync' 'ccache'
|
||||
'java-environment'
|
||||
'ncurses5-compat-libs' 'lib32-zlib' 'lib32-ncurses' 'lib32-readline'
|
||||
'lib32-ncurses5-compat-libs')
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
||||
# Contributor: Michael Eckert <michael.eckert@linuxmail.org>
|
||||
|
||||
pkgname=deltarpm
|
||||
pkgver=3.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="Create deltas between rpms"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('BSD')
|
||||
url="https://github.com/rpm-software-management/$pkgname"
|
||||
depends=('rpm-org' 'zlib')
|
||||
makedepends=('python2' 'python')
|
||||
optdepends=('python2: for python2 module'
|
||||
'python: for python3 module')
|
||||
source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
|
||||
md5sums=('c48086229bdfcf5af890f104231180c6')
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make PYTHONS='python2 python' \
|
||||
prefix=/usr \
|
||||
zlibbundled='' \
|
||||
zlibldflags='-lz' \
|
||||
zlibcppflags='' \
|
||||
all python
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
make DESTDIR="$pkgdir/" \
|
||||
PYTHONS='python2 python' \
|
||||
prefix=/usr \
|
||||
install
|
||||
|
||||
install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README"
|
||||
install -D -m644 LICENSE.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 noet:
|
@ -1,49 +0,0 @@
|
||||
# Maintainer: Alad Wenter <alad (at) archlinux.info>
|
||||
# Contributor: Jochen Schalanda <jochen+aur (at) schalanda.name>
|
||||
# Contributor: C. Dominik Bódi <dominik.bodi@gmx.de>
|
||||
# Contributor: Pierre Carrier <pierre@spotify.com>
|
||||
# Contributor: Thomas Dziedzic <gostrc (at) gmail>
|
||||
# Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
|
||||
# Contributor: seblu <seblu+arch (at) seblu.net>
|
||||
# Contributor: squiddo <squiddo (at) intheocean.net>
|
||||
# Contributor: dront78 <dront78 (at) gmail.com>
|
||||
# Contributor: hugelgupf <ckoch (at) cs.nmt.edu>
|
||||
|
||||
pkgname=dpkg
|
||||
pkgver=1.18.24
|
||||
_commit=4fd7def03c96e82c03773c6eca111cf244bae8c0
|
||||
pkgrel=2
|
||||
pkgdesc="The Debian Package Manager. Don't use it instead of Arch's 'pacman'."
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://tracker.debian.org/pkg/dpkg"
|
||||
license=('GPL')
|
||||
depends=('xz' 'zlib' 'bzip2' 'perl')
|
||||
makedepends=('perl-io-string' 'perl-timedate' 'git')
|
||||
checkdepends=('perl-io-string' 'perl-test-pod')
|
||||
source=("$pkgname-$pkgver::git+https://anonscm.debian.org/git/dpkg/dpkg.git#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
check() {
|
||||
cd "$pkgname-$pkgver"
|
||||
#make check
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
autoreconf -f -i
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--sbindir=/usr/bin \
|
||||
--disable-start-stop-daemon
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -d "$pkgdir/var/$pkgname"/updates/
|
||||
touch "${pkgdir}/var/lib/$pkgname"/{status,available}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Maintainer: PlusMinus
|
||||
|
||||
_libname=evdi
|
||||
pkgname=$_libname-pre-release
|
||||
pkgver=1.4.1
|
||||
pkgrel=9
|
||||
pkgdesc="A Linux® kernel module that enables management of multiple screens."
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/DisplayLink/evdi"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=(dkms)
|
||||
makedepends=(libdrm)
|
||||
optdepends=()
|
||||
provides=("$_libname=$pkgver")
|
||||
conflicts=($_libname)
|
||||
backup=()
|
||||
options=()
|
||||
install=$pkgname.install
|
||||
changelog=$pkgname.Changelog
|
||||
source=($_libname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz)
|
||||
md5sums=('eece77058251418d5707457aa8ae914e')
|
||||
noextract=()
|
||||
|
||||
build() {
|
||||
# We only need to build the library in this step, dkms will build the module
|
||||
cd "$_libname-$pkgver/library"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
# Predfine some target folders
|
||||
SRCDIR="$pkgdir/usr/src/$_libname-$pkgver" # This one is needed for dkms
|
||||
LIBNAME=lib$_libname
|
||||
|
||||
cd "$_libname-$pkgver"
|
||||
|
||||
install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
|
||||
|
||||
install -d $SRCDIR
|
||||
install -D -m 755 module/* $SRCDIR
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
v1.4.1
|
||||
Synchronisation of code base to make it in line with Chrome OS kernels
|
||||
|
||||
v1.4.0
|
||||
Compilation fixes for kernel 4.10
|
||||
API compatibility enforcement between the library and module.
|
||||
|
||||
v1.3.43
|
||||
Adding support for indicating an area limit a client that connects to EVDI has.
|
||||
|
||||
v1.3.42
|
||||
Fixes for Kernels 4.9 and 4.10.
|
||||
API change: Extension of evdi_connect function, allowing to register modes that the client supports, regardless of the fact they are not necessarily listed in the EDID of a monitor.
|
||||
|
||||
v1.2.64
|
||||
Highlights: fixes for kernel 4.8.
|
||||
|
||||
v1.2.55
|
||||
Module and library code to be included in DisplayLink USB Graphics Software for Ubuntu, version 1.2.
|
@ -1,20 +0,0 @@
|
||||
# old version (without -$pkgrel): ${1%%-*}
|
||||
# new version (without -$pkgrel): ${2%%-*}
|
||||
|
||||
post_install() {
|
||||
echo 'DKMS install...'
|
||||
dkms install evdi/${1%%-*}
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove ${2%%-*}
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install ${1%%-*}
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
echo 'DKMS remove...'
|
||||
dkms remove evdi/${1%%-*} --all
|
||||
}
|
4
src/evdi/.gitignore
vendored
4
src/evdi/.gitignore
vendored
@ -1,4 +0,0 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
pkg/
|
||||
src/
|
@ -1,43 +0,0 @@
|
||||
# Maintainer: PlusMinus
|
||||
|
||||
pkgname=evdi
|
||||
pkgver=1.3.43
|
||||
pkgrel=1
|
||||
pkgdesc="A Linux® kernel module that enables management of multiple screens."
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/DisplayLink/evdi"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=(dkms)
|
||||
makedepends=(libdrm)
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=$pkgname.install
|
||||
changelog=$pkgname.Changelog
|
||||
source=($pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/DisplayLink/evdi/archive/v$pkgver.tar.gz)
|
||||
noextract=()
|
||||
md5sums=('08b08e873f5b4f70929a126427150152')
|
||||
|
||||
build() {
|
||||
# We only need to build the library in this step, dmks will build the module
|
||||
cd "$pkgname-$pkgver/library"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
# Predfine some target folders
|
||||
SRCDIR="$pkgdir/usr/src/$pkgname-$pkgver" # This one is needed for dkms
|
||||
LIBNAME=lib$pkgname
|
||||
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
install -D -m 755 library/$LIBNAME.so $pkgdir/usr/lib/$LIBNAME.so
|
||||
|
||||
install -d $SRCDIR
|
||||
install -D -m 755 module/* $SRCDIR
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
v1.3.43
|
||||
Adding support for indicating an area limit a client that connects to EVDI has.
|
||||
|
||||
v1.3.42
|
||||
Fixes for Kernels 4.9 and 4.10.
|
||||
API change: Extension of evdi_connect function, allowing to register modes that the client supports, regardless of the fact they are not necessarily listed in the EDID of a monitor.
|
||||
|
||||
v1.2.64
|
||||
Highlights: fixes for kernel 4.8.
|
||||
|
||||
v1.2.55
|
||||
Module and library code to be included in DisplayLink USB Graphics Software for Ubuntu, version 1.2.
|
@ -1,20 +0,0 @@
|
||||
# old version (without -$pkgrel): ${1%%-*}
|
||||
# new version (without -$pkgrel): ${2%%-*}
|
||||
|
||||
post_install() {
|
||||
echo 'DKMS install...'
|
||||
dkms install evdi/${1%%-*}
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove ${2%%-*}
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install ${1%%-*}
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
echo 'DKMS remove...'
|
||||
dkms remove evdi/${1%%-*} --all
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
# Maintainer: Pablo Moyano (p4block)
|
||||
pkgname=lineageos-devel
|
||||
pkgver=0.1
|
||||
pkgrel=1
|
||||
pkgdesc='Metapackage to pull all dependencies required to build LineageOS'
|
||||
arch=('x86_64')
|
||||
url='https://wiki.archlinux.org/index.php/Android#Building_Android'
|
||||
license=('None')
|
||||
depends=('aosp-devel' 'ffmpeg' 'ninja' 'xml2' 'lzop' 'pngcrush' 'imagemagick')
|
||||
optdepends=('maven' 'gradle')
|
||||
|
8
src/rpm-org/.gitignore
vendored
8
src/rpm-org/.gitignore
vendored
@ -1,8 +0,0 @@
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tgz
|
||||
*.rpm
|
||||
*.zip
|
||||
*.bz2
|
||||
src/
|
||||
pkg/
|
@ -1,74 +0,0 @@
|
||||
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
||||
# Contributor: Konrad <konrad AT knauber DOT name>
|
||||
# Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net>
|
||||
# Contributor: Fernando M <f <at> beford.net>
|
||||
# Author: Wintershade <Wintershade AT google mail DOT com>
|
||||
|
||||
pkgname=rpm-org
|
||||
pkgver=4.13.0.1
|
||||
_pkgver=$pkgver
|
||||
#_pkgver=4.12.0-rc1
|
||||
pkgrel=1
|
||||
pkgdesc="RPM Package Manager - RPM.org fork, used in major RPM distros"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.rpm.org/"
|
||||
license=('GPL2')
|
||||
depends=('lua>=5.1' 'file' 'nss>=3.12' 'popt' 'elfutils' 'libarchive' 'libcap')
|
||||
makedepends=('python2' 'python')
|
||||
optdepends=('libdbus: systemd inhibit plugin')
|
||||
conflicts=('rpm' 'rpmextract')
|
||||
options=('!libtool')
|
||||
provides=("rpm=${pkgver}" 'rpmextract=1.0-4')
|
||||
#source=(https://github.com/rpm-software-management/rpm/releases/download/rpm-${pkgver}-release/rpm-${pkgver}.tar.bz2
|
||||
source=(http://ftp.rpm.org/releases/rpm-4.13.x/rpm-$pkgver.tar.bz2
|
||||
rpmextract.sh rpmlib-filesystem-check.patch bfdfix.patch)
|
||||
sha1sums=('9566f95f38fcb214e439c552f378c2f64ba0aff9'
|
||||
'74849919207885ae024f1ab8ed68a76474d67ad7'
|
||||
'0c5fa516dde1f10211af896c729e4b00c313e12b'
|
||||
'456d4a2c9f71c2e3bfa5011800855a73a55aa5bc')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/rpm-${_pkgver}
|
||||
patch -p1 < ../rpmlib-filesystem-check.patch
|
||||
patch -p1 < ../bfdfix.patch
|
||||
}
|
||||
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/rpm-${_pkgver}
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-python \
|
||||
--with-external-db \
|
||||
--with-lua \
|
||||
--with-cap \
|
||||
CPPFLAGS="`pkg-config --cflags nss`" \
|
||||
PYTHON=python2
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/rpm-${_pkgver}
|
||||
make prefix=${pkgdir}/usr localstatedir=${pkgdir}/var install
|
||||
rmdir ${pkgdir}/var/tmp
|
||||
rmdir ${pkgdir}/var
|
||||
# rpmextract using bsdtar, needs libarchive
|
||||
install -m755 ${srcdir}/rpmextract.sh ${pkgdir}/usr/bin/
|
||||
|
||||
# move rpm from /bin to /usr/bin
|
||||
mv ${pkgdir}/bin/rpm ${pkgdir}/usr/bin/
|
||||
rm ${pkgdir}/usr/bin/rpm{query,verify}
|
||||
cd ${pkgdir}/usr/bin
|
||||
ln -s rpm rpmquery
|
||||
ln -s rpm rpmverify
|
||||
rm -r ${pkgdir}/bin/
|
||||
|
||||
# also install python 3 files
|
||||
# building with python 3 files as default doesn't seem to work
|
||||
cd ${srcdir}/rpm-${_pkgver}
|
||||
cd python
|
||||
python setup.py install --root="$pkgdir/" --optimize=1
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
diff --git a/tools/sepdebugcrcfix.c b/tools/sepdebugcrcfix.c
|
||||
index cd7fa02..03db7af 100644
|
||||
--- a/tools/sepdebugcrcfix.c
|
||||
+++ b/tools/sepdebugcrcfix.c
|
||||
@@ -28,7 +28,19 @@
|
||||
#include <error.h>
|
||||
#include <libelf.h>
|
||||
#include <gelf.h>
|
||||
+#ifndef PACKAGE
|
||||
+#define PACKAGE
|
||||
+#ifndef PACKAGE_VERSION
|
||||
+#define PACKAGE_VERSION
|
||||
#include <bfd.h>
|
||||
+#undef PACKAGE_VERSION
|
||||
+#else
|
||||
+#include <bfd.h>
|
||||
+#endif
|
||||
+#undef PACKAGE
|
||||
+#else
|
||||
+#include <bfd.h>
|
||||
+#endif
|
||||
|
||||
#define _(x) x
|
||||
#define static_assert(expr) \
|
@ -1,64 +0,0 @@
|
||||
From 82c0aa33c904274d9d62b629c2d15990aab45050 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Dewender <rpm@JonnyJD.net>
|
||||
Date: Mon, 18 May 2015 10:11:13 +0200
|
||||
Subject: [PATCH] remove luaL_checkint, deprecated in lua 5.3
|
||||
|
||||
luaL_checkint and luaL_optint are deprecated in lua 5.3
|
||||
The variants luaL_checkinteger and luaL_optinteger work
|
||||
the same with an implicit typecast (lua_integer -> int).
|
||||
---
|
||||
luaext/lposix.c | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/luaext/lposix.c b/luaext/lposix.c
|
||||
index a59be3e..51ea2b3 100644
|
||||
--- a/luaext/lposix.c
|
||||
+++ b/luaext/lposix.c
|
||||
@@ -361,22 +361,22 @@ static int Pfork(lua_State *L) /** fork() */
|
||||
|
||||
static int Pwait(lua_State *L) /** wait([pid]) */
|
||||
{
|
||||
- pid_t pid = luaL_optint(L, 1, -1);
|
||||
+ pid_t pid = luaL_optinteger(L, 1, -1);
|
||||
return pushresult(L, waitpid(pid, NULL, 0), NULL);
|
||||
}
|
||||
|
||||
|
||||
static int Pkill(lua_State *L) /** kill(pid,[sig]) */
|
||||
{
|
||||
- pid_t pid = luaL_checkint(L, 1);
|
||||
- int sig = luaL_optint(L, 2, SIGTERM);
|
||||
+ pid_t pid = luaL_checkinteger(L, 1);
|
||||
+ int sig = luaL_optinteger(L, 2, SIGTERM);
|
||||
return pushresult(L, kill(pid, sig), NULL);
|
||||
}
|
||||
|
||||
|
||||
static int Psleep(lua_State *L) /** sleep(seconds) */
|
||||
{
|
||||
- unsigned int seconds = luaL_checkint(L, 1);
|
||||
+ unsigned int seconds = luaL_checkinteger(L, 1);
|
||||
lua_pushnumber(L, sleep(seconds));
|
||||
return 1;
|
||||
}
|
||||
@@ -529,7 +529,7 @@ static int Pgetprocessid(lua_State *L) /** getprocessid([selector]) */
|
||||
|
||||
static int Pttyname(lua_State *L) /** ttyname(fd) */
|
||||
{
|
||||
- int fd=luaL_optint(L, 1, 0);
|
||||
+ int fd=luaL_optinteger(L, 1, 0);
|
||||
lua_pushstring(L, ttyname(fd));
|
||||
return 1;
|
||||
}
|
||||
@@ -880,7 +880,7 @@ static int exit_override(lua_State *L)
|
||||
if (!have_forked)
|
||||
return luaL_error(L, "exit not permitted in this context");
|
||||
|
||||
- exit(luaL_optint(L, 1, EXIT_SUCCESS));
|
||||
+ exit(luaL_optinteger(L, 1, EXIT_SUCCESS));
|
||||
}
|
||||
|
||||
static const luaL_Reg os_overrides[] =
|
||||
--
|
||||
2.1.3
|
||||
|
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
if [ "$1" = "" -o ! -e "$1" ]; then
|
||||
echo "no package supplied" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
bsdtar xf $1
|
@ -1,125 +0,0 @@
|
||||
diff -up rpm-4.10.90.git11978/lib/depends.c.rpmlib-filesystem-check rpm-4.10.90.git11978/lib/depends.c
|
||||
--- rpm-4.10.90.git11978/lib/depends.c.rpmlib-filesystem-check 2012-11-01 09:40:26.000000000 +0200
|
||||
+++ rpm-4.10.90.git11978/lib/depends.c 2012-11-05 10:53:42.294733695 +0200
|
||||
@@ -589,6 +589,109 @@ static int rpmdbProvides(rpmts ts, depCa
|
||||
return rc;
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * Temporary support for live-conversion of the filesystem hierarchy
|
||||
+ * mailto: kay@redhat.com, harald@redhat.com
|
||||
+ * https://fedoraproject.org/wiki/Features/UsrMove
|
||||
+ *
|
||||
+ * X-CheckUnifiedSystemdir:
|
||||
+ * /bin, /sbin, /lib, /lib64 --> /usr
|
||||
+ *
|
||||
+ * X-CheckUnifiedBindir:
|
||||
+ * /usr/sbin -> /usr/bin
|
||||
+ *
|
||||
+ * X-CheckMultiArchLibdir:
|
||||
+ * /usr/lib64 /usr/lib/<platform tuple> (e.g. x86_64-linux-gnu)
|
||||
+ *
|
||||
+ * This code is not needed for new installations, it can be removed after
|
||||
+ * updates from older systems are no longer supported: Fedora 19 / RHEL 8.
|
||||
+ */
|
||||
+
|
||||
+static int CheckLink(const char *dir, const char *root)
|
||||
+{
|
||||
+ char *d = NULL;
|
||||
+ struct stat sbuf;
|
||||
+ int rc = 0;
|
||||
+
|
||||
+ if (!root)
|
||||
+ root = "/";
|
||||
+
|
||||
+ rasprintf(&d, "%s%s", root, dir);
|
||||
+ if (!d) {
|
||||
+ rc = -1;
|
||||
+ goto exit;
|
||||
+ }
|
||||
+
|
||||
+ /* directory or symlink does not exist, all is fine */
|
||||
+ if (lstat(d, &sbuf) < 0) {
|
||||
+ rc = 1;
|
||||
+ goto exit;
|
||||
+ }
|
||||
+
|
||||
+ /* if it is a symlink, all is fine */
|
||||
+ if (S_ISLNK(sbuf.st_mode))
|
||||
+ rc = 1;
|
||||
+
|
||||
+exit:
|
||||
+ free(d);
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+static int CheckFilesystemHierarchy(rpmds * dsp, const char *root)
|
||||
+{
|
||||
+ static const char *dirs[] = { "bin", "sbin", "lib", "lib64" };
|
||||
+ int check;
|
||||
+ int i;
|
||||
+ rpmds ds;
|
||||
+ rpmstrPool pool = rpmdsPool(*dsp);
|
||||
+ int rc = 0;
|
||||
+
|
||||
+ for (i = 0; i < sizeof(dirs) / sizeof(dirs[0]); i++) {
|
||||
+ check = CheckLink(dirs[i], root);
|
||||
+ if (check < 0) {
|
||||
+ rc = -1;
|
||||
+ goto exit;
|
||||
+ }
|
||||
+
|
||||
+ if (check == 0)
|
||||
+ goto exit;
|
||||
+ }
|
||||
+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME,
|
||||
+ "rpmlib(X-CheckUnifiedSystemdir)", "1",
|
||||
+ RPMSENSE_EQUAL);
|
||||
+ rpmdsMerge(dsp, ds);
|
||||
+ rpmdsFree(ds);
|
||||
+
|
||||
+ check = CheckLink("usr/lib64", root);
|
||||
+ if (check < 0) {
|
||||
+ rc = -1;
|
||||
+ goto exit;
|
||||
+ }
|
||||
+ if (check > 0) {
|
||||
+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME,
|
||||
+ "rpmlib(X-CheckMultiArchLibdir)", "1",
|
||||
+ RPMSENSE_EQUAL);
|
||||
+ rpmdsMerge(dsp, ds);
|
||||
+ rpmdsFree(ds);
|
||||
+ }
|
||||
+
|
||||
+ check = CheckLink("usr/sbin", root);
|
||||
+ if (check < 0) {
|
||||
+ rc = -1;
|
||||
+ goto exit;
|
||||
+ }
|
||||
+ if (check > 0) {
|
||||
+ ds = rpmdsSinglePool(pool, RPMTAG_PROVIDENAME,
|
||||
+ "rpmlib(X-CheckUnifiedBindir)", "1",
|
||||
+ RPMSENSE_EQUAL);
|
||||
+ rpmdsMerge(dsp, ds);
|
||||
+ rpmdsFree(ds);
|
||||
+ }
|
||||
+
|
||||
+exit:
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
/**
|
||||
* Check dep for an unsatisfied dependency.
|
||||
* @param ts transaction set
|
||||
@@ -612,8 +715,10 @@ retry:
|
||||
* Check those dependencies now.
|
||||
*/
|
||||
if (dsflags & RPMSENSE_RPMLIB) {
|
||||
- if (tsmem->rpmlib == NULL)
|
||||
+ if (tsmem->rpmlib == NULL) {
|
||||
rpmdsRpmlibPool(rpmtsPool(ts), &(tsmem->rpmlib), NULL);
|
||||
+ CheckFilesystemHierarchy(&(tsmem->rpmlib), rpmtsRootDir(ts));
|
||||
+ }
|
||||
|
||||
if (tsmem->rpmlib != NULL && rpmdsSearch(tsmem->rpmlib, dep) >= 0) {
|
||||
rpmdsNotify(dep, "(rpmlib provides)", rc);
|
@ -1,43 +0,0 @@
|
||||
pkgbase = sabnzbd
|
||||
pkgdesc = A web-interface based binary newsgrabber with NZB file support
|
||||
pkgver = 0.7.20
|
||||
pkgrel = 1
|
||||
url = http://www.sabnzbd.org
|
||||
install = sabnzbd.install
|
||||
arch = any
|
||||
license = GPL
|
||||
depends = curl
|
||||
depends = par2cmdline
|
||||
depends = python2
|
||||
depends = python2-cheetah
|
||||
depends = python2-yenc
|
||||
depends = sqlite
|
||||
depends = unrar
|
||||
depends = unzip
|
||||
optdepends = xdg-utils: registration of .nzb files
|
||||
optdepends = python2-feedparser: rss support
|
||||
optdepends = python2-pyopenssl: ssl support
|
||||
optdepends = par2cmdline-tbb: par2 multi-threading
|
||||
backup = etc/conf.d/sabnzbd
|
||||
backup = opt/sabnzbd/sabnzbd.ini
|
||||
source = http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-0.7.20-src.tar.gz
|
||||
source = sabnzbd
|
||||
source = sabnzbd.desktop
|
||||
source = addnzb.sh
|
||||
source = nzb-2.png
|
||||
source = sab2_64.png
|
||||
source = x-nzb.xml
|
||||
source = sabnzbd.service
|
||||
source = sabnzbd.confd
|
||||
md5sums = 7972b2cdad0a3431262611c271ce5747
|
||||
md5sums = 48d60a1c626503c7fef1bc5374390513
|
||||
md5sums = f9bd5485072714b11f8c30a28024dc4d
|
||||
md5sums = 69b9bcbcf67ff3e7a4cdd9f26e001341
|
||||
md5sums = 2a49c07b1e3e6448eabe92644315f983
|
||||
md5sums = fdc878dd0f6f25617e627b04409abbbd
|
||||
md5sums = 11fb2cd1451e3725b08bfc2bd045be54
|
||||
md5sums = 7da9222f3b86abfed590950f48dc2e77
|
||||
md5sums = 8fc2607a7961fc643ef4f6640166322a
|
||||
|
||||
pkgname = sabnzbd
|
||||
|
@ -1,47 +0,0 @@
|
||||
pkgname=sabnzbd
|
||||
_pkgname=SABnzbd
|
||||
pkgver=2.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
||||
url="http://www.sabnzbd.org"
|
||||
arch=("any")
|
||||
license=("GPL")
|
||||
depends=("curl" "par2cmdline"
|
||||
"python2" "python2-cheetah" "python2-sabyenc"
|
||||
"sqlite" "unrar" "unzip")
|
||||
optdepends=("xdg-utils: registration of .nzb files" "python2-feedparser: rss support" "python2-pyopenssl: ssl support" "par2cmdline-tbb: par2 multi-threading")
|
||||
install="${pkgname}.install"
|
||||
backup=("etc/conf.d/sabnzbd" "opt/${pkgname}/${pkgname}.ini")
|
||||
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${_pkgname}-${pkgver}-src.tar.gz"
|
||||
"${pkgname}" "${pkgname}.desktop" "addnzb.sh" "nzb.png" "sabnzbd.png" "x-nzb.xml" "${pkgname}.service" "${pkgname}.confd")
|
||||
md5sums=('c90882baf329a9b5fb4ce64594015290'
|
||||
'48d60a1c626503c7fef1bc5374390513'
|
||||
'36e5f0f60f28f67102682f80e33c6d4b'
|
||||
'69b9bcbcf67ff3e7a4cdd9f26e001341'
|
||||
'46fa8020fcfaad1e06d370fa3b0ea09a'
|
||||
'b834ca5dfb63a5d06041c3174172ec09'
|
||||
'11fb2cd1451e3725b08bfc2bd045be54'
|
||||
'da07971fa3790ea4824ed4ce611b38f3'
|
||||
'8fc2607a7961fc643ef4f6640166322a')
|
||||
|
||||
package() {
|
||||
mkdir -p "${pkgdir}/opt/${pkgname}"
|
||||
touch "${pkgdir}/opt/${pkgname}/${pkgname}.ini"
|
||||
cp -r "${srcdir}/${_pkgname}-${pkgver}/"* "${pkgdir}/opt/${pkgname}"
|
||||
|
||||
# Fix for issues with Python 3
|
||||
find "${pkgdir}/opt/${pkgname}" -type f -exec sed -i 's/python/python2/g' {} \;
|
||||
find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \;
|
||||
find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} \;
|
||||
chmod 755 "${pkgdir}/opt/${pkgname}/${_pkgname}.py"
|
||||
|
||||
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
||||
install -Dm644 "${srcdir}/${pkgname}.confd" "${pkgdir}/etc/conf.d/${pkgname}"
|
||||
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
||||
install -Dm755 "${srcdir}/${pkgname}.desktop" \
|
||||
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||
install -Dm755 "${srcdir}/addnzb.sh" "${pkgdir}/opt/${pkgname}/addnzb.sh"
|
||||
install -Dm644 "${srcdir}/nzb.png" "${pkgdir}/opt/${pkgname}/nzb.png"
|
||||
install -Dm644 "${srcdir}/sabnzbd.png" "${pkgdir}/opt/${pkgname}/sabnzbd.png"
|
||||
install -Dm770 "${srcdir}/x-nzb.xml" "${pkgdir}/opt/${pkgname}/x-nzb.xml"
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/conf.d/sabnzbd
|
||||
curl -s -F apikey="$API_KEY" -F mode="addfile" -F name=@"$1" $URL/sabnzbd/api &> /dev/null
|
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB |
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
python2 /opt/sabnzbd/SABnzbd.py -f ${HOME}/.sabnzbd.ini "${@}"
|
@ -1,8 +0,0 @@
|
||||
# This file is used to make association of .nzb files with SABnzbd possible.
|
||||
# If you do not want this feature, you do no have to fill in these settings.
|
||||
|
||||
# The SABnzbd url. Make sure to add a username and password if required
|
||||
URL="http://127.0.0.1:8080"
|
||||
|
||||
# Put the API key from Config > General here
|
||||
API_KEY=""
|
@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=SABnzbd+
|
||||
GenericName=Binary Newsreader
|
||||
Icon=/opt/sabnzbd/sabnzbd.png
|
||||
Exec=sh /opt/sabnzbd/addnzb.sh %u
|
||||
Terminal=false
|
||||
Categories=Network
|
||||
MimeType=application/x-nzb
|
@ -1,69 +0,0 @@
|
||||
# Change these to modify the ownership of sabnzbd
|
||||
# If you change this here, you also have to change
|
||||
# the user and group in the systemd service file.
|
||||
SABNZBD_USER="sabnzbd"
|
||||
SABNZBD_GROUP="sabnzbd"
|
||||
|
||||
SABNZBD_DIR="/opt/sabnzbd" # should not be changed
|
||||
|
||||
## arg 1: the new package version
|
||||
post_install() {
|
||||
# add x-nzb mimetype
|
||||
if [[ -f /usr/bin/xdg-mime ]]; then
|
||||
xdg-mime install --mode system "${SABNZBD_DIR}/x-nzb.xml"
|
||||
xdg-icon-resource install --context mimetypes --size 256 "${SABNZBD_DIR}/nzb.png" application-x-nzb
|
||||
fi
|
||||
|
||||
post_upgrade
|
||||
|
||||
cat << "EOM"
|
||||
==> If you want to associate .nzb-files with SABnzbd, run 'xdg-mime default sabnzbd.desktop applications/x-nzb'
|
||||
EOM
|
||||
}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
pre_upgrade() {
|
||||
PID="$(pgrep -f SABnzbd.py)"
|
||||
|
||||
if [ -n "${PID}" ];then
|
||||
systemctl stop sabnzbd.service
|
||||
fi
|
||||
}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
post_upgrade() {
|
||||
# if the group or user already exists, the request will be denied
|
||||
# and all original settings will be retained
|
||||
if [ "$SABNZBD_GROUP" == "sabnzbd" ]; then
|
||||
groupadd -r sabnzbd &> /dev/null
|
||||
fi
|
||||
|
||||
if [ "$SABNZBD_USER" == "sabnzbd" ]; then
|
||||
useradd -s /sbin/nologin -c "SABnzbd user" -d "${SABNZBD_DIR}" \
|
||||
-g sabnzbd -r sabnzbd &> /dev/null
|
||||
fi
|
||||
|
||||
chown -R "${SABNZBD_USER}:${SABNZBD_GROUP}" "${SABNZBD_DIR}"
|
||||
}
|
||||
|
||||
## arg 1: the old package version
|
||||
pre_remove() {
|
||||
pre_upgrade
|
||||
|
||||
if [[ -f /usr/bin/xdg-mime ]]; then
|
||||
xdg-mime uninstall --mode system "${SABNZBD_DIR}/x-nzb.xml"
|
||||
xdg-icon-resource uninstall --context mimetypes --size 256 application-x-nzb
|
||||
fi
|
||||
}
|
||||
|
||||
## arg 1: the old package version
|
||||
post_remove() {
|
||||
# only delete if user is sabnzbd
|
||||
userdel sabnzbd &> /dev/null
|
||||
groupdel sabnzbd &> /dev/null || /bin/true
|
||||
echo "==> There may be some files left in ${SABNZBD_DIR}."
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB |
@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=SABnzbd binary newsreader
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/sabnzbd/SABnzbd.py -l0 -f /opt/sabnzbd/sabnzbd.ini
|
||||
User=sabnzbd
|
||||
Group=sabnzbd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-nzb">
|
||||
|
||||
<comment xml:lang='en'>An XML-based file format for retrieving posts from NNTP (Usenet) servers</comment>
|
||||
<sub-class-of type="application/xml"/>
|
||||
<glob pattern="*.nzb"/>
|
||||
|
||||
</mime-type>
|
||||
</mime-info>
|
Loading…
Reference in New Issue
Block a user