From dc0c6fbbd8919f8c8e083c88db928a2f5b57232e Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 17 Jan 2013 18:42:10 +0100 Subject: [PATCH] fstrim: new common package. --- config/rootfiles/common/fstrim | 1 + config/rootfiles/core/66/filelists/fstrim | 1 + lfs/fstrim | 76 +++++++++++++++++++++++ make.sh | 1 + 4 files changed, 79 insertions(+) create mode 100644 config/rootfiles/common/fstrim create mode 120000 config/rootfiles/core/66/filelists/fstrim create mode 100644 lfs/fstrim diff --git a/config/rootfiles/common/fstrim b/config/rootfiles/common/fstrim new file mode 100644 index 0000000000..7fb97b0bb4 --- /dev/null +++ b/config/rootfiles/common/fstrim @@ -0,0 +1 @@ +usr/bin/fstrim diff --git a/config/rootfiles/core/66/filelists/fstrim b/config/rootfiles/core/66/filelists/fstrim new file mode 120000 index 0000000000..5541351c06 --- /dev/null +++ b/config/rootfiles/core/66/filelists/fstrim @@ -0,0 +1 @@ +../../../common/fstrim \ No newline at end of file diff --git a/lfs/fstrim b/lfs/fstrim new file mode 100644 index 0000000000..6886cc9f02 --- /dev/null +++ b/lfs/fstrim @@ -0,0 +1,76 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2013 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.2 + +THISAPP = fstrim-$(VER) +DL_FILE = $(THISAPP).tar.bz2 +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/fstrim +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 1a217ae44b12ae7538f922f495b8da31 + +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 axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && install -m 0755 fstrim /usr/bin + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index b1d7cf6a9c..95c80cb26c 100755 --- a/make.sh +++ b/make.sh @@ -752,6 +752,7 @@ buildipfire() { ipfiremake stress ipfiremake libstatgrab ipfiremake sarg + ipfiremake fstrim echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild echo >> $BASEDIR/build/var/ipfire/firebuild -- 2.39.2