mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 05:50:40 +08:00
add package: fakeroot-tcp
This commit is contained in:
parent
334ebaa67d
commit
b2693c253e
6 changed files with 115 additions and 0 deletions
54
fakeroot-tcp/PKGBUILD
Normal file
54
fakeroot-tcp/PKGBUILD
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Maintainer: 4679 <admin@libnull.com>
|
||||
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||
# Contributor: Allan McRae <allan@archlinux.org>
|
||||
# Contributor: Jochem Kossen <j.kossen@home.nl>
|
||||
|
||||
pkgname=fakeroot-tcp
|
||||
_pkgname=fakeroot
|
||||
pkgver=1.24
|
||||
pkgrel=2
|
||||
pkgdesc='Tool for simulating superuser privileges,with tcp ipc'
|
||||
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
|
||||
license=('GPL')
|
||||
url="http://packages.debian.org/fakeroot"
|
||||
install=fakeroot.install
|
||||
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
|
||||
makedepends=('po4a' 'automake')
|
||||
provides=("${_pkgname}=${pkgver}-${pkgrel}")
|
||||
conflicts=("${_pkgname}")
|
||||
source=(http://ftp.debian.org/debian/pool/main/f/$_pkgname/${_pkgname}_${pkgver}.orig.tar.gz
|
||||
silence-dlerror.patch)
|
||||
md5sums=('964e5f438f1951e5a515dd54edd50fa6'
|
||||
'5fba0b541b5af39d804265223fda525c')
|
||||
|
||||
prepare() {
|
||||
cd $_pkgname-$pkgver
|
||||
patch -p1 -i "$srcdir"/silence-dlerror.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $_pkgname-$pkgver
|
||||
|
||||
./bootstrap
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib/libfakeroot \
|
||||
--disable-static \
|
||||
--with-ipc=tcp
|
||||
|
||||
make
|
||||
|
||||
cd doc
|
||||
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -dm755 "$pkgdir"/etc/ld.so.conf.d/
|
||||
echo '/usr/lib/libfakeroot' > "$pkgdir"/etc/ld.so.conf.d/fakeroot.conf
|
||||
|
||||
# install README for sysv/tcp usage
|
||||
install -Dm644 README "$pkgdir"/usr/share/doc/$_pkgname/README
|
||||
}
|
||||
|
7
fakeroot-tcp/autobuild.yaml
Normal file
7
fakeroot-tcp/autobuild.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
type:
|
||||
auto
|
||||
priority:
|
||||
10
|
||||
extra:
|
||||
- update:
|
||||
- bash buildbot.update.d/update.sh
|
22
fakeroot-tcp/buildbot.update.d/config.sh
Normal file
22
fakeroot-tcp/buildbot.update.d/config.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
# buildbot update hook for aur packages
|
||||
|
||||
PKGNAME='fakeroot-tcp'
|
||||
PKGBUILD='PKGBUILD'
|
||||
|
||||
# prepare upstream source
|
||||
prepare() {
|
||||
true
|
||||
}
|
||||
|
||||
# which files to include, overrides exclude_files below
|
||||
INCLUDE_FILES=(
|
||||
# 'PKGBUILD'
|
||||
# '.gitignore'
|
||||
)
|
||||
|
||||
# which files to exclude, use '*' and '.*' to exclude all
|
||||
EXCLUDE_FILES=(
|
||||
'.SRCINFO'
|
||||
'.git'
|
||||
)
|
1
fakeroot-tcp/buildbot.update.d/update.sh
Symbolic link
1
fakeroot-tcp/buildbot.update.d/update.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.buildbot/aur.hook.d/update.sh
|
14
fakeroot-tcp/fakeroot.install
Normal file
14
fakeroot-tcp/fakeroot.install
Normal file
|
@ -0,0 +1,14 @@
|
|||
post_install() {
|
||||
sbin/ldconfig -r .
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
if [ "$(vercmp $2 1.14.4-2)" -lt 0 ]; then
|
||||
sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
|
||||
fi
|
||||
sbin/ldconfig -r .
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
sbin/ldconfig -r .
|
||||
}
|
17
fakeroot-tcp/silence-dlerror.patch
Normal file
17
fakeroot-tcp/silence-dlerror.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/libfakeroot.c b/libfakeroot.c
|
||||
index f867758..7ef6e47 100644
|
||||
--- a/libfakeroot.c
|
||||
+++ b/libfakeroot.c
|
||||
@@ -256,10 +256,12 @@ void load_library_symbols(void){
|
||||
/* clear dlerror() just in case dlsym() legitimately returns NULL */
|
||||
msg = dlerror();
|
||||
*(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
|
||||
+#ifdef LIBFAKEROOT_DEBUGGING
|
||||
if ( (msg = dlerror()) != NULL){
|
||||
fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
|
||||
/* abort ();*/
|
||||
}
|
||||
+#endif /* LIBFAKEROOT_DEBUGGING */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue