]> git.ipfire.org Git - ipfire-3.x.git/blob - ipfire-release/ipfire-release.nm
ipfire-release: No longer install pakfire-build into the build environment
[ipfire-3.x.git] / ipfire-release / ipfire-release.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 # Make the configuration of your distribution right here.
7 DISTRO_NAME = IPFire
8 DISTRO_SNAME = ipfire
9 DISTRO_RELEASE = 3
10 DISTRO_VERSION = %{DISTRO_RELEASE}.0-alpha2
11 DISTRO_CODENAME = Gluttony
12 DISTRO_SLOGAN = An Open Source Firewall Solution
13 DISTRO_COLOR = 0;31
14
15 name = %{DISTRO_SNAME}-release
16 version = %{DISTRO_VERSION}
17 release = 6
18 epoch = 3
19 arch = noarch
20
21 maintainer = Michael Tremer <michael.tremer@ipfire.org>
22 groups = Base Build System/Base
23 url = http://www.ipfire.org
24 license =
25 summary = %{DISTRO_NAME} release files.
26
27 description
28 %{DISTRO_NAME} release files such as pakfire configs and various /etc/ \
29 files that define the release.
30 end
31
32 # No tarball.
33 sources =
34
35 build
36 prepare = # Do nothing
37 build = # Do nothing
38
39 install
40 mkdir -pv %{BUILDROOT}/etc
41
42 cat <<EOF >%{BUILDROOT}/etc/issue
43 %{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_CODENAME}) - %{DISTRO_SLOGAN} (\l)
44 ===============================
45 \n running on \s \r
46 EOF
47
48 echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_CODENAME})" \
49 > %{BUILDROOT}/etc/%{DISTRO_SNAME}-release
50 ln -svf %{DISTRO_SNAME}-release %{BUILDROOT}/etc/system-release
51
52 # Set a default hostname that is set until the user customizes that.
53 echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname
54
55 # Create /etc/os-release.
56 cat <<EOF >%{BUILDROOT}/etc/os-release
57 NAME="%{DISTRO_NAME}"
58 VERSION="%{DISTRO_VERSION}"
59 ID=%{DISTRO_SNAME}
60 VERSION_ID=%{DISTRO_RELEASE}
61 PRETTY_NAME="%{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_CODENAME})"
62 ANSI_COLOR="%{DISTRO_COLOR}"
63 EOF
64
65 # Install default repositories.
66 mkdir -pv %{BUILDROOT}%{sysconfdir}/pakfire/repos
67 cp -vf %{DIR_SOURCE}/repos/* %{BUILDROOT}%{sysconfdir}/pakfire/repos
68 end
69 end
70
71 packages
72 package %{name}
73 provides = system-release
74
75 configfiles
76 /etc/hostname
77 /etc/pakfire/repos
78 end
79 end
80
81 package %{name}-build
82 provides = build-essential
83
84 summary = IPFire Build Dependencies
85
86 description
87 This package is installed by default in the build environment
88 and installs a number of basic tools for builds.
89 end
90
91 requires
92 # Various default tools
93 bash
94 bzip2
95 ccache
96 coreutils
97 diffutils
98 file
99 filesystem
100 findutils
101 gawk
102 gettext
103 gcc
104 grep
105 gzip
106 hostname
107 kernel-headers
108 less
109 libtool
110 lzip
111 make
112 patch
113 pkg-config
114 sed
115 setup
116 shadow-utils
117 tar
118 util-linux
119 vim
120 which
121 xz
122 end
123
124 files = # empty package
125 end
126 end