From b90f99810f421a234a5f162063d6135b0d2857c1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 6 Apr 2012 14:12:17 +0200 Subject: [PATCH] ipfire-release: Add pakfire repository information. Also cleans up some of the code that creates the files that are provided by this package. But no major changes. --- ipfire-release/ipfire-release.nm | 50 ++++++++++++++++++------------ ipfire-release/repos/stable.repo | 6 ++++ ipfire-release/repos/testing.repo | 6 ++++ ipfire-release/repos/unstable.repo | 6 ++++ 4 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 ipfire-release/repos/stable.repo create mode 100644 ipfire-release/repos/testing.repo create mode 100644 ipfire-release/repos/unstable.repo diff --git a/ipfire-release/ipfire-release.nm b/ipfire-release/ipfire-release.nm index afc0609df..bd0e4517f 100644 --- a/ipfire-release/ipfire-release.nm +++ b/ipfire-release/ipfire-release.nm @@ -4,16 +4,17 @@ ############################################################################### # Make the configuration of your distribution right here. -DISTRO_NAME = IPFire -DISTRO_SNAME = ipfire -DISTRO_VERSION = 3.0-alpha2 -DISTRO_RELEASE = 3 -DISTRO_SLOGAN = Gluttony -DISTRO_COLOR = 0;31 +DISTRO_NAME = IPFire +DISTRO_SNAME = ipfire +DISTRO_RELEASE = 3 +DISTRO_VERSION = %{DISTRO_RELEASE}.0-alpha2 +DISTRO_CODENAME = Gluttony +DISTRO_SLOGAN = An Open Source Firewall Solution +DISTRO_COLOR = 0;31 name = %{DISTRO_SNAME}-release version = %{DISTRO_VERSION} -release = 1 +release = 2 epoch = 3 arch = noarch @@ -38,12 +39,13 @@ build install mkdir -pv %{BUILDROOT}/etc - echo "%{DISTRO_NAME} v%{DISTRO_VERSION} for %{DISTRO_ARCH} - %{DISTRO_SLOGAN} (\l)" \ - > %{BUILDROOT}/etc/issue - echo "===============================" >> %{BUILDROOT}/etc/issue - echo "\n running on \s \r \m" >> %{BUILDROOT}/etc/issue + cat <%{BUILDROOT}/etc/issue + %{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_CODENAME}) - %{DISTRO_SLOGAN} (\l) + =============================== + \n running on \s \r + EOF - echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_SLOGAN})" \ + echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_CODENAME})" \ > %{BUILDROOT}/etc/%{DISTRO_SNAME}-release ln -svf %{DISTRO_SNAME}-release %{BUILDROOT}/etc/system-release @@ -51,18 +53,28 @@ build echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname # Create /etc/os-release. - echo "NAME=\"%{DISTRO_NAME}\"" >> %{BUILDROOT}/etc/os-release - echo "VERSION=\"%{DISTRO_VERSION}\"" >> %{BUILDROOT}/etc/os-release - echo "ID=%{DISTRO_SNAME}" >> %{BUILDROOT}/etc/os-release - echo "VERSION_ID=%{DISTRO_RELEASE}" >> %{BUILDROOT}/etc/os-release - echo "PRETTY_NAME=\"%{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_SLOGAN})\"" \ - >> %{BUILDROOT}/etc/os-release - echo "ANSI_COLOR=%{DISTRO_COLOR}" >> %{BUILDROOT}/etc/os-release + cat <%{BUILDROOT}/etc/os-release + NAME="%{DISTRO_NAME}" + VERSION="%{DISTRO_VERSION}" + ID=%{DISTRO_SNAME} + VERSION_ID=%{DISTRO_RELEASE} + PRETTY_NAME="%{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_CODENAME})" + ANSI_COLOR=%{DISTRO_COLOR} + EOF + + # Install default repositories. + mkdir -pv %{BUILDROOT}%{sysconfdir}/pakfire/repos + cp -vf %{DIR_SOURCE}/repos/* %{BUILDROOT}%{sysconfdir}/pakfire/repos end end packages package %{name} provides = system-release + + configfiles + /etc/hostname + /etc/pakfire/repos + end end end diff --git a/ipfire-release/repos/stable.repo b/ipfire-release/repos/stable.repo new file mode 100644 index 000000000..2e3447566 --- /dev/null +++ b/ipfire-release/repos/stable.repo @@ -0,0 +1,6 @@ +[repo:stable] +description = IPFire 3 - Stable repository. +enabled = 1 +baseurl = http://pakfire.ipfire.org/repositories/ipfire3/stable/%{arch} +mirrors = https://pakfire.ipfire.org/distro/ipfire3/repo/stable/mirrorlist?arch=%{arch} +priority = 500 diff --git a/ipfire-release/repos/testing.repo b/ipfire-release/repos/testing.repo new file mode 100644 index 000000000..63b367423 --- /dev/null +++ b/ipfire-release/repos/testing.repo @@ -0,0 +1,6 @@ +[repo:testing] +description = IPFire 3 - This is a repository for testing stuff. +enabled = 0 +baseurl = http://pakfire.ipfire.org/repositories/ipfire3/testing/%{arch} +mirrors = https://pakfire.ipfire.org/distro/ipfire3/repo/testing/mirrorlist?arch=%{arch} +priority = 100 diff --git a/ipfire-release/repos/unstable.repo b/ipfire-release/repos/unstable.repo new file mode 100644 index 000000000..76ea41201 --- /dev/null +++ b/ipfire-release/repos/unstable.repo @@ -0,0 +1,6 @@ +[repo:unstable] +description = IPFire 3 - Public unstable repository. +enabled = 0 +baseurl = http://pakfire.ipfire.org/repositories/ipfire3/unstable/%{arch} +mirrors = https://pakfire.ipfire.org/distro/ipfire3/repo/unstable/mirrorlist?arch=%{arch} +priority = 200 -- 2.39.5