]>
Commit | Line | Data |
---|---|---|
9ad08da3 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
9ad08da3 MT |
4 | ############################################################################### |
5 | ||
466fab1f | 6 | # Make the configuration of your distribution right here. |
b90f9981 MT |
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 | |
466fab1f | 14 | |
802ea3af MT |
15 | name = %{DISTRO_SNAME}-release |
16 | version = %{DISTRO_VERSION} | |
35953c89 | 17 | release = 5 |
802ea3af MT |
18 | epoch = 3 |
19 | arch = noarch | |
9ad08da3 | 20 | |
802ea3af MT |
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. | |
567ff764 | 26 | |
802ea3af MT |
27 | description |
28 | %{DISTRO_NAME} release files such as pakfire configs and various /etc/ \ | |
466fab1f | 29 | files that define the release. |
802ea3af | 30 | end |
9ad08da3 | 31 | |
802ea3af MT |
32 | # No tarball. |
33 | sources = | |
9ad08da3 | 34 | |
802ea3af MT |
35 | build |
36 | prepare = # Do nothing | |
37 | build = # Do nothing | |
69be7e73 | 38 | |
802ea3af MT |
39 | install |
40 | mkdir -pv %{BUILDROOT}/etc | |
9ad08da3 | 41 | |
b90f9981 MT |
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 | |
9ad08da3 | 47 | |
b90f9981 | 48 | echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_CODENAME})" \ |
802ea3af MT |
49 | > %{BUILDROOT}/etc/%{DISTRO_SNAME}-release |
50 | ln -svf %{DISTRO_SNAME}-release %{BUILDROOT}/etc/system-release | |
9ad08da3 | 51 | |
802ea3af MT |
52 | # Set a default hostname that is set until the user customizes that. |
53 | echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname | |
466fab1f | 54 | |
802ea3af | 55 | # Create /etc/os-release. |
b90f9981 MT |
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})" | |
9d35ee54 | 62 | ANSI_COLOR="%{DISTRO_COLOR}" |
b90f9981 MT |
63 | EOF |
64 | ||
65 | # Install default repositories. | |
66 | mkdir -pv %{BUILDROOT}%{sysconfdir}/pakfire/repos | |
67 | cp -vf %{DIR_SOURCE}/repos/* %{BUILDROOT}%{sysconfdir}/pakfire/repos | |
802ea3af MT |
68 | end |
69 | end | |
466fab1f | 70 | |
802ea3af MT |
71 | packages |
72 | package %{name} | |
73 | provides = system-release | |
b90f9981 MT |
74 | |
75 | configfiles | |
76 | /etc/hostname | |
77 | /etc/pakfire/repos | |
78 | end | |
802ea3af | 79 | end |
94d61c78 MT |
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 | # Install Pakfire Build components | |
93 | pakfire-build | |
94 | ||
95 | # Various default tools | |
96 | bash | |
97 | bzip2 | |
98 | ccache | |
99 | coreutils | |
100 | diffutils | |
101 | file | |
102 | filesystem | |
103 | findutils | |
104 | gawk | |
105 | gettext | |
106 | gcc | |
107 | grep | |
108 | gzip | |
109 | hostname | |
110 | kernel-headers | |
111 | less | |
112 | libtool | |
113 | lzip | |
114 | make | |
115 | patch | |
116 | pkg-config | |
117 | sed | |
118 | setup | |
119 | shadow-utils | |
120 | tar | |
121 | util-linux | |
122 | vim | |
123 | which | |
124 | xz | |
125 | end | |
126 | ||
127 | files = # empty package | |
128 | end | |
802ea3af | 129 | end |