From b051eb68b6c12f619b1c3a76009d41ad59550b6b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 3 Mar 2019 15:10:02 +0100 Subject: [PATCH] libcap-ng: New package Signed-off-by: Stefan Schantl --- config/rootfiles/common/libcap-ng | 44 +++++++++++++++++ lfs/libcap-ng | 80 +++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 125 insertions(+) create mode 100644 config/rootfiles/common/libcap-ng create mode 100644 lfs/libcap-ng diff --git a/config/rootfiles/common/libcap-ng b/config/rootfiles/common/libcap-ng new file mode 100644 index 0000000000..9c0b5e1565 --- /dev/null +++ b/config/rootfiles/common/libcap-ng @@ -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 diff --git a/lfs/libcap-ng b/lfs/libcap-ng new file mode 100644 index 0000000000..0cbe3e634a --- /dev/null +++ b/lfs/libcap-ng @@ -0,0 +1,80 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# 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 + +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) diff --git a/make.sh b/make.sh index 122aeebd0b..690922e22f 100755 --- a/make.sh +++ b/make.sh @@ -1220,6 +1220,7 @@ buildipfire() { lfsmake2 attr lfsmake2 acl lfsmake2 libcap + lfsmake2 libcap-ng lfsmake2 pciutils lfsmake2 usbutils lfsmake2 libxml2 -- 2.39.2