libcap-ng: New package

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-03-03 15:10:02 +01:00
parent 26c758cf48
commit b051eb68b6
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
#usr/bin/captest
#usr/bin/filecap
#usr/bin/netcap
#usr/bin/pscap
#usr/include/cap-ng.h
#usr/lib/libcap-ng.la
#usr/lib/libcap-ng.so
usr/lib/libcap-ng.so.0
usr/lib/libcap-ng.so.0.0.0
#usr/lib/pkgconfig/libcap-ng.pc
#usr/lib/python2.7/site-packages/_capng.la
#usr/lib/python2.7/site-packages/_capng.so
#usr/lib/python2.7/site-packages/capng.py
#usr/lib/python2.7/site-packages/capng.pyc
#usr/lib/python2.7/site-packages/capng.pyo
#usr/lib/python3.6/site-packages/__pycache__/capng.cpython-36.opt-1.pyc
#usr/lib/python3.6/site-packages/__pycache__/capng.cpython-36.pyc
#usr/lib/python3.6/site-packages/_capng.la
#usr/lib/python3.6/site-packages/_capng.so
#usr/lib/python3.6/site-packages/capng.py
#usr/share/aclocal/cap-ng.m4
#usr/share/man/man3/capng_apply.3
#usr/share/man/man3/capng_capability_to_name.3
#usr/share/man/man3/capng_change_id.3
#usr/share/man/man3/capng_clear.3
#usr/share/man/man3/capng_fill.3
#usr/share/man/man3/capng_get_caps_fd.3
#usr/share/man/man3/capng_get_caps_process.3
#usr/share/man/man3/capng_have_capabilities.3
#usr/share/man/man3/capng_have_capability.3
#usr/share/man/man3/capng_lock.3
#usr/share/man/man3/capng_name_to_capability.3
#usr/share/man/man3/capng_print_caps_numeric.3
#usr/share/man/man3/capng_print_caps_text.3
#usr/share/man/man3/capng_restore_state.3
#usr/share/man/man3/capng_save_state.3
#usr/share/man/man3/capng_set_caps_fd.3
#usr/share/man/man3/capng_setpid.3
#usr/share/man/man3/capng_update.3
#usr/share/man/man3/capng_updatev.3
#usr/share/man/man8/captest.8
#usr/share/man/man8/filecap.8
#usr/share/man/man8/netcap.8
#usr/share/man/man8/pscap.8

80
lfs/libcap-ng Normal file
View File

@@ -0,0 +1,80 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
# #
# 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 <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 0.7.9
THISAPP = libcap-ng-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_MD5 = 2398d695508fab9ce33668c53a89b0e9
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
md5 : $(subst %,%_MD5,$(objects))
###############################################################################
# Downloading, checking, md5sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_MD5,$(objects)) :
@$(MD5)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--disable-static
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -1220,6 +1220,7 @@ buildipfire() {
lfsmake2 attr
lfsmake2 acl
lfsmake2 libcap
lfsmake2 libcap-ng
lfsmake2 pciutils
lfsmake2 usbutils
lfsmake2 libxml2