]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/misc-progs
Upgdated lynis to current stable.
[people/pmueller/ipfire-2.x.git] / lfs / misc-progs
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
cd1a2927 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
cd1a2927
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
cd1a2927
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
cd1a2927 18# #
cd1a2927
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
fe6d84cb
MT
27VER = ipfire
28
cd1a2927
MT
29THISAPP = misc-progs
30DIR_APP = $(DIR_SRC)/$(THISAPP)
31ifeq "$(LFS_PASS)" "install"
32 TARGET = $(DIR_INFO)/$(THISAPP)-install
33else
34 TARGET = $(DIR_INFO)/$(THISAPP)
35endif
36
37###############################################################################
38# Top-level Rules
39###############################################################################
40
41install : $(TARGET)
42
43check :
44
45download :
46
47md5 :
48
49###############################################################################
50# Installation Details
51###############################################################################
52
53$(TARGET) :
54 @$(PREBUILD)
55 @rm -rf $(DIR_APP) $(DIR_SRC)/install+setup && cp -R $(DIR_SRC)/src/misc-progs/ $(DIR_SRC)
56ifeq "$(LFS_PASS)" "install"
57 cd $(DIR_APP) && make CFLAGS="-Os -fomit-frame-pointer" iowrap
58 cd $(DIR_APP) && install -m 0755 iowrap /install/initrd/bin
59else
60 cp -R $(DIR_SRC)/src/install+setup/ $(DIR_SRC)
61 for i in $(DIR_SRC)/langs/*/install/lang_*.c ; do \
62 cp $$i $(DIR_SRC)/install+setup/libsmooth; \
63 done
64 cd $(DIR_SRC)/install+setup/libsmooth && chmod 755 makelangs.pl
65 cd $(DIR_SRC)/install+setup/libsmooth && make CFLAGS="$(CFLAGS) -Wall \
66 -DNAME='\"$(NAME)\"' -DSNAME='\"$(SNAME)\"' -DVERSION='\"$(VERSION)\"' \
67 -DSLOGAN='\"$(SLOGAN)\"' -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"'"
68 cd $(DIR_APP) && make CFLAGS="$(CFLAGS) -Wall -DCONFIG_ROOT='\"$(CONFIG_ROOT)\"' -DSNAME='\"$(SNAME)\"'"
69 cd $(DIR_APP) && make install
70endif
71 @rm -rf $(DIR_APP) $(DIR_SRC)/install+setup
72 @$(POSTBUILD)