]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added new package: system-release.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 08:47:25 +0000 (10:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 08:47:25 +0000 (10:47 +0200)
lfs/stage2
lfs/system-release [new file with mode: 0644]
make.sh

index 78d512491f0eec2b79b2a7cf9dbb8a295d151a6e..3dd122920532fd456e00116573179b7c8576df60 100644 (file)
@@ -107,13 +107,6 @@ ifeq "$(EMB)" "1"
        sed -e "s/^#7/7/" -i /etc/inittab
 endif
 
-       echo "$(NAME) v$(VERSION) for $(MACHINE) - $(SLOGAN) (\l)" > /etc/issue
-       echo "===============================" >> /etc/issue
-       echo "\n running on \s \r \m"          >> /etc/issue
-
-       echo "$(NAME) Release $(VERSION) ($(SLOGAN))" > /etc/$(SNAME)-release
-       ln -svf $(SNAME)-release /etc/system-release
-
        touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
        #chgrp -v utmp /var/run/utmp /var/log/lastlog
        chmod -v 664 /var/run/utmp /var/log/lastlog
diff --git a/lfs/system-release b/lfs/system-release
new file mode 100644 (file)
index 0000000..63b0da7
--- /dev/null
@@ -0,0 +1,82 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008, 2009 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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+PKG_NAME   = system-release
+PKG_VER    = $(VERSION)
+PKG_REL    = 0
+
+THISAPP    = $(PKG_NAME)-$(PKG_VER)
+
+OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
+MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
+GROUP      = System/Base
+CORE       = yes
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        = http://www.ipfire.org
+LICENSE    =
+SHORT_DESC = IPFire release files.
+
+define LONG_DESC
+       IPFire release files such as pakfire configs and various /etc/ files that \
+       define the release.
+endef
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
+
+install: $(OBJECT)
+
+package:
+       @$(DO_PACKAGE)
+
+$(objects):
+       @$(LOAD)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(OBJECT): $(objects)
+       @$(PREBUILD)
+       echo "$(NAME) v$(VERSION) for $(MACHINE) - $(SLOGAN) (\l)" > /etc/issue
+       echo "===============================" >> /etc/issue
+       echo "\n running on \s \r \m"          >> /etc/issue
+
+       echo "$(NAME) Release $(VERSION) ($(SLOGAN))" > /etc/$(SNAME)-release
+       ln -svf $(SNAME)-release /etc/system-release
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 775a14f369bff082e23c0fdeec0dac3f47befb55..f7424b083ed95fea77fd61fbd6baf911901e3dae 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -107,6 +107,7 @@ base_build() {
 
        ipfire_make stage2
        ipfire_make scripts
+       ipfire_make system-release
        ipfire_make linux-headers
        ipfire_make man-pages
        ipfire_make glibc