]> git.ipfire.org Git - ipfire-3.x.git/blob - ipfire-release/ipfire-release.nm
46abfcc053cdcd3957f3af016df5f748cbe0c4e3
[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 = 8
18
19 maintainer = Michael Tremer <michael.tremer@ipfire.org>
20 groups = Base Build System/Base
21 url = https://www.ipfire.org
22 license =
23 summary = %{DISTRO_NAME} release files
24
25 description
26 %{DISTRO_NAME} release files such as pakfire configs and various /etc/
27 files that define the release.
28 end
29
30 # No tarball.
31 sources =
32
33 build
34 arches = noarch
35
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
80 requires
81 pakfire
82 end
83
84 recommends
85 vim
86 end
87 end
88
89 package %{name}-build
90 provides = build-essential
91
92 summary = IPFire Build Dependencies
93
94 description
95 This package is installed by default in the build environment
96 and installs a number of basic tools for builds.
97 end
98
99 requires
100 # Various default tools
101 bash
102 bzip2
103 ccache
104 coreutils
105 diffutils
106 file
107 filesystem
108 findutils
109 gawk
110 gettext
111 gcc
112 grep
113 gzip
114 hostname
115 kernel-headers
116 less
117 libtool
118 lzip
119 make
120 patch
121 pkg-config
122 sed
123 setup
124 shadow-utils
125 tar
126 util-linux
127 vim
128 which
129 xz
130 end
131
132 files = # empty package
133 end
134 end