From ab36bb4312130c8d63b934c13ab6d5ef39febcac Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 30 Jul 2011 07:15:03 +0200 Subject: [PATCH] new package: add package 'libcap-ng' Signed-off-by: Stephan Raue --- packages/devel/libcap-ng/build | 42 ++++++++++++++++++++++++++++++++ packages/devel/libcap-ng/install | 27 ++++++++++++++++++++ packages/devel/libcap-ng/meta | 35 ++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100755 packages/devel/libcap-ng/build create mode 100755 packages/devel/libcap-ng/install create mode 100644 packages/devel/libcap-ng/meta diff --git a/packages/devel/libcap-ng/build b/packages/devel/libcap-ng/build new file mode 100755 index 0000000000..ff54471dd4 --- /dev/null +++ b/packages/devel/libcap-ng/build @@ -0,0 +1,42 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +#      Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --disable-static \ + --enable-shared \ + --with-gnu-ld \ + --without-debug \ + --with-warn \ + --without-python + +make + +$MAKEINSTALL diff --git a/packages/devel/libcap-ng/install b/packages/devel/libcap-ng/install new file mode 100755 index 0000000000..4d14480164 --- /dev/null +++ b/packages/devel/libcap-ng/install @@ -0,0 +1,27 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +#      Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/devel/libcap-ng/meta b/packages/devel/libcap-ng/meta new file mode 100644 index 0000000000..0e08fcc904 --- /dev/null +++ b/packages/devel/libcap-ng/meta @@ -0,0 +1,35 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +#      Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="libcap-ng" +PKG_VERSION="0.6.6" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="" +PKG_URL="http://people.redhat.com/sgrubb/libcap-ng/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="attr" +PKG_BUILD_DEPENDS="toolchain attr" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="libcap-ng: A library for getting and setting POSIX.1e capabilities" +PKG_LONGDESC="As of Linux 2.2.0, the power of the superuser has been partitioned into a set of discrete capabilities (in other places, these capabilities are know as privileges). The contents of the libcap package are a library and a number of simple programs that are intended to show how an application/daemon can be protected (with wrappers) or rewritten to take advantage of this fine grained approach to constraining the danger to your system from programs running as 'root'." +PKG_IS_ADDON="no"