]>
git.ipfire.org Git - ipfire-3.x.git/blob - tools/make-packages
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2008 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
22 # Save packages, that were already compiled in this variable:
26 grep ^GROUP
$BASEDIR/lfs
/* |
awk '{ print $3 }' |
sort |
uniq
30 echo "#### List of softwares used to build $NAME Version: $VERSION ####"
32 for i
in $BASEDIR/lfs
/*; do
33 package
=$
(basename $i)
35 eval $
(pkg_info
${package})
36 [ "$NAME" = "" ] && exit
37 printf " * %-30s" ${NAME}-${VERSION}
43 pkg_list_packages_wiki
() {
44 echo "====== List of softwares used to build $NAME Version: $VERSION ======"
46 for i
in $BASEDIR/lfs
/*; do
47 package
=$
(basename $i)
49 eval $
(pkg_info
${package})
50 [ "$NAME" = "" ] && exit
51 echo " * [[.:package:$package|${NAME}-${VERSION}]] - ${SHORT}"
57 cd $BASEDIR/lfs
&& $EXTRA_MAKE make -f $1 \
58 CONFIG_ROOT
=$CONFIG_ROOT \
60 TOOLS_DIR
=$TOOLS_DIR \
62 MACHINE_REAL
="$MACHINE_REAL" \
63 IFS_HOST
="$IFS_HOST" \
64 IFS_TARGET
="$IFS_TARGET" \
66 LFS_BASEDIR
=$BASEDIR \
68 INSTALLER_DIR
=$INSTALLER_DIR \
69 PARALLELISMFLAGS
=$PARALLELISMFLAGS \
72 STAGE_ORDER
=$STAGE_ORDER \
81 [ "$NAME" = "" ] && exit
83 # Output everything in wiki format
85 echo "| Version: | $VERSION |"
86 echo "| Release: | $RELEASE |"
87 echo "| Group: | $GROUP |"
88 echo "| License: | $LICENSE |"
89 echo "| Maintainer: | $MAINTAINER |"
91 echo "| Website: | $URL |"
92 if [ "$DEBUG" = "yes" ]; then
93 echo "<color red>This is a debug-package.</color>"
95 if [ "$EXTRA" = "yes" ]; then
96 echo "<color green>This is an extra package.</color>"
99 for file in $
(find $BASEDIR/src
/rootfiles
-name "$1" |
xargs cat); do
108 eval $
(pkg_info
${1})
116 eval $
(pkg_info
${1})