From: Michael Tremer Date: Sat, 31 Oct 2009 18:39:15 +0000 (+0100) Subject: Add new package: libcap. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4d6eeb3e4ba9317268d9e44e24b4ce9f7c7af35;p=ipfire-3.x.git Add new package: libcap. --- diff --git a/pkgs/core/libcap/libcap.nm b/pkgs/core/libcap/libcap.nm new file mode 100644 index 000000000..d250e0c78 --- /dev/null +++ b/pkgs/core/libcap/libcap.nm @@ -0,0 +1,80 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# 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 3 of the License, 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 this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include ../../Config + +PKG_NAME = libcap +PKG_VER = 2.16 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Libraries +PKG_URL = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/ +PKG_LICENSE = LGPL2+ +PKG_SUMMARY = Library for getting and setting POSIX.1e capabilities. + +PKG_PACKAGES += devel + +define PKG_DESCRIPTION + libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) \ + draft 15 capabilities. +endef + +PKG_DEPS += attr pam + +PKG_TARBALL = $(THISAPP).tar.bz2 + +PKG_PATCHES += $(THISAPP)-headerfix.patch + +include ../../Rules + +############################################################################### +# Installation Details +############################################################################### + +$(STAGE_PREPARE): $(OBJECTS) + @$(PRE_PREPARE) + cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL) + + $(DO_PATCHES) + + cd $(DIR_APP) && sed -e "s@@&\n#include @g" \ + -i progs/capsh.c + cd $(DIR_APP) && sed 's/--static//' -i.orig progs/Makefile + + @$(POST_PREPARE) + +$(STAGE_BUILD): $(STAGE_PREPARE) + @$(PRE_BUILD) + + cd $(DIR_APP) && make $(PARALLELISMFLAGS) CC="gcc $(CFLAGS)" + + @$(POST_BUILD) + +$(STAGE_INSTALL): $(STAGE_BUILD) + @$(PRE_INSTALL) + + cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) lib=/lib + + @$(POST_INSTALL)