Merge pull request #2556 from thypon/sydbox

New package: Sydbox+Pinktrace
This commit is contained in:
Juan RP 2015-09-21 08:41:10 +02:00
commit ff27d37cfd
7 changed files with 98 additions and 0 deletions

View file

@ -2166,3 +2166,5 @@ libgflags_nothreads.so.2 gflags-2.1.2_1
libswmhack.so.0.0 spectrwm-2.7.2_1
libchardet.so.1 libchardet-1.0.4_1
libcollectdclient.so.1 libcollectdclient-5.5.0_1
libpinktrace_0.9.so.9 pinktrace-0.9.1_1
libsyd_1.0.so.0 sydbox-1.0.2_1

1
srcpkgs/pinktrace-devel Symbolic link
View file

@ -0,0 +1 @@
pinktrace

View file

@ -0,0 +1,11 @@
--- configure.ac.old 2015-09-19 11:59:18.683048677 +0200
+++ configure.ac 2015-09-19 12:00:18.407968543 +0200
@@ -109,7 +109,7 @@
AC_MSG_CHECKING([for supported kernel])
kernel_version=`uname -r | cut -d'-' -f1`
case "$kernel_version" in
- 3.*|2.6*)
+ 4.*|3.*|2.6*)
AC_MSG_RESULT([$kernel_version])
;;
2.5*)

View file

@ -0,0 +1,37 @@
# Template file for 'pinktrace'
pkgname=pinktrace
version=0.9.1
revision=1
wrksrc="$pkgname-1-$version"
build_style=gnu-configure
configure_args="--enable-python"
hostmakedepends="automake pkg-config libtool python"
makedepends="python-devel"
short_desc="A ptrace() wrapper library"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MIT"
homepage="http://dev.exherbo.org/~alip/pinktrace/"
distfiles="http://git.exherbo.org/$pkgname-1.git/snapshot/$pkgname-1-$version.tar.gz"
checksum=04394d69d24fbfb6e7ba42ecfc21e3426359c8d0d7f90d39cc043359b2c74dc8
build_pie=yes
only_for_archs="x86_64-musl x86_64 i686 i686-musl"
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYRIGHT
}
pinktrace-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}

1
srcpkgs/sydbox-devel Symbolic link
View file

@ -0,0 +1 @@
sydbox

View file

@ -0,0 +1,11 @@
--- configure.ac.old 2015-09-19 11:59:18.683048677 +0200
+++ configure.ac 2015-09-19 12:00:18.407968543 +0200
@@ -109,7 +109,7 @@
AC_MSG_CHECKING([for supported kernel])
kernel_version=`uname -r | cut -d'-' -f1`
case "$kernel_version" in
- 3.*|2.6*)
+ 4.*|3.*|2.6*)
AC_MSG_RESULT([$kernel_version])
;;
2.5*)

35
srcpkgs/sydbox/template Normal file
View file

@ -0,0 +1,35 @@
# Template file for 'pinktrace'
pkgname=sydbox
version=1.0.2
revision=1
wrksrc="$pkgname-1-$version"
build_style=gnu-configure
configure_args="--enable-seccomp"
hostmakedepends="automake pkg-config libtool pinktrace-devel"
makedepends="pinktrace-devel"
short_desc="A ptrace() sandbox utility"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MIT"
homepage="http://dev.exherbo.org/~alip/sydbox/sydbox.html"
distfiles="http://git.exherbo.org/$pkgname-1.git/snapshot/$pkgname-1-$version.tar.gz"
checksum=904105e086455bd665b72aa0f131209b9075143ab687dbe461a93bd7436f7b19
build_pie=yes
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYRIGHT
}
sydbox-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}