From: Michael Tremer Date: Sun, 17 May 2009 08:47:25 +0000 (+0200) Subject: Added new package: system-release. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b1a19d3ff6e5dfd8b0884aa0d26537d068bc314;p=ipfire-3.x.git Added new package: system-release. --- diff --git a/lfs/stage2 b/lfs/stage2 index 78d512491..3dd122920 100644 --- a/lfs/stage2 +++ b/lfs/stage2 @@ -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 index 000000000..63b0da776 --- /dev/null +++ b/lfs/system-release @@ -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 . # +# # +############################################################################### + +############################################################################### +# 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 +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 775a14f36..f7424b083 100755 --- 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