From b5d76ffdcff0f0ffa5db1c6c33841313ea6e8c90 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 19 Sep 2015 12:37:42 +0200 Subject: [PATCH 1/2] New package: pinktrace-0.9.1 --- common/shlibs | 1 + srcpkgs/pinktrace-devel | 1 + srcpkgs/pinktrace/patches/kernel.patch | 11 ++++++++ srcpkgs/pinktrace/template | 37 ++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/pinktrace-devel create mode 100644 srcpkgs/pinktrace/patches/kernel.patch create mode 100644 srcpkgs/pinktrace/template diff --git a/common/shlibs b/common/shlibs index 903bbd16fe..d11498fe89 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2166,3 +2166,4 @@ 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 diff --git a/srcpkgs/pinktrace-devel b/srcpkgs/pinktrace-devel new file mode 120000 index 0000000000..fcaab10981 --- /dev/null +++ b/srcpkgs/pinktrace-devel @@ -0,0 +1 @@ +pinktrace \ No newline at end of file diff --git a/srcpkgs/pinktrace/patches/kernel.patch b/srcpkgs/pinktrace/patches/kernel.patch new file mode 100644 index 0000000000..36a25afa45 --- /dev/null +++ b/srcpkgs/pinktrace/patches/kernel.patch @@ -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*) diff --git a/srcpkgs/pinktrace/template b/srcpkgs/pinktrace/template new file mode 100644 index 0000000000..9510c078a9 --- /dev/null +++ b/srcpkgs/pinktrace/template @@ -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 " +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" + } +} From 71fb7250139639055471d76c6102522a01998958 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 19 Sep 2015 12:38:59 +0200 Subject: [PATCH 2/2] New package: sydbox-1.0.2 --- common/shlibs | 1 + srcpkgs/sydbox-devel | 1 + srcpkgs/sydbox/patches/kernel.patch | 11 +++++++++ srcpkgs/sydbox/template | 35 +++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 120000 srcpkgs/sydbox-devel create mode 100644 srcpkgs/sydbox/patches/kernel.patch create mode 100644 srcpkgs/sydbox/template diff --git a/common/shlibs b/common/shlibs index d11498fe89..0d4fd6f3d0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2167,3 +2167,4 @@ 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 diff --git a/srcpkgs/sydbox-devel b/srcpkgs/sydbox-devel new file mode 120000 index 0000000000..ee96989773 --- /dev/null +++ b/srcpkgs/sydbox-devel @@ -0,0 +1 @@ +sydbox \ No newline at end of file diff --git a/srcpkgs/sydbox/patches/kernel.patch b/srcpkgs/sydbox/patches/kernel.patch new file mode 100644 index 0000000000..36a25afa45 --- /dev/null +++ b/srcpkgs/sydbox/patches/kernel.patch @@ -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*) diff --git a/srcpkgs/sydbox/template b/srcpkgs/sydbox/template new file mode 100644 index 0000000000..a69b7f1fdc --- /dev/null +++ b/srcpkgs/sydbox/template @@ -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 " +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" + } +}