From 5e8b836225227470fb16971ebf54b76c354e55ea Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 11 Oct 2010 17:36:06 +0200 Subject: [PATCH] Add attr (2.4.43). --- config/rootfiles/common/attr | 24 +++++++++++ lfs/attr | 83 ++++++++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 108 insertions(+) create mode 100644 config/rootfiles/common/attr create mode 100644 lfs/attr diff --git a/config/rootfiles/common/attr b/config/rootfiles/common/attr new file mode 100644 index 0000000000..60da05e44c --- /dev/null +++ b/config/rootfiles/common/attr @@ -0,0 +1,24 @@ +usr/bin/attr +usr/bin/getfattr +usr/bin/setfattr +#usr/lib/libattr.la +usr/lib/libattr.so +usr/lib/libattr.so.1 +usr/lib/libattr.so.1.1.0 +#usr/man/man1/attr.1 +#usr/man/man1/getfattr.1 +#usr/man/man1/setfattr.1 +#usr/man/man5/attr.5 +#usr/share/doc/attr +#usr/share/doc/attr/CHANGES.gz +#usr/share/doc/attr/COPYING +#usr/share/doc/attr/PORTING +#usr/share/doc/attr/README +#usr/share/locale/cs/LC_MESSAGES/attr.mo +#usr/share/locale/de/LC_MESSAGES/attr.mo +#usr/share/locale/es/LC_MESSAGES/attr.mo +#usr/share/locale/fr/LC_MESSAGES/attr.mo +#usr/share/locale/gl/LC_MESSAGES/attr.mo +#usr/share/locale/nl/LC_MESSAGES/attr.mo +#usr/share/locale/pl/LC_MESSAGES/attr.mo +#usr/share/locale/sv/LC_MESSAGES/attr.mo diff --git a/lfs/attr b/lfs/attr new file mode 100644 index 0000000000..a7c0ab8a3f --- /dev/null +++ b/lfs/attr @@ -0,0 +1,83 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 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 + +VER = 2.4.43 + +THISAPP = attr-$(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 = 91583a14bcbd637adaa9b07ea49c5d4b + +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 + cd $(DIR_APP) && make + cd $(DIR_APP) && make install + # Install libattr + cp $(DIR_APP)/libattr/.libs/libattr.so* /usr/lib + cp $(DIR_APP)/libattr/libattr.la /usr/lib + # Install includes +# -mkdir /usr/include/attr +# cp -f $(DIR_APP)/include/*.h /usr/include/attr + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 7f669c99a9..1afeb74db3 100755 --- a/make.sh +++ b/make.sh @@ -399,6 +399,7 @@ buildipfire() { ipfiremake pcre ipfiremake slang ipfiremake newt + ipfiremake attr ipfiremake libcap ipfiremake pciutils ipfiremake usbutils -- 2.39.2