Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 15 Feb 2012 22:30:50 +0400
From: "Dmitry V. Levin" <ldv@...linux.org>
To: owl-dev@...ts.openwall.com
Subject: Re: /etc/os-release

On Wed, Feb 15, 2012 at 09:52:26PM +0400, gremlin@...mlin.ru wrote:
> %build
> cat > %{name} << __OS_RELEASE_EOF__
> NAME="Openwall GNU/*/Linux"
> VERSION="%{version}"
> ID="owl"
> VERSION_ID="%{version}"
> PRETTY_NAME="Openwall GNU/*/Linux %{version}"
> __OS_RELEASE_EOF__
> 
> %install
> rm -rf %{buildroot}
> mkdir -m 755 -p %{buildroot}%{_sysconfdir}
> install -m 644 %{name} %{buildroot}%{_sysconfdir}/%{name}
> rm -f %{name}

There is a way to create the file right at the destination,
so why bother with a %build section at all? ;)


-- 
ldv

[ CONTENT OF TYPE application/pgp-signature SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ