]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
ipfire-release: Add pakfire repository information.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Apr 2012 12:12:17 +0000 (14:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Apr 2012 12:12:17 +0000 (14:12 +0200)
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
ipfire-release/repos/stable.repo [new file with mode: 0644]
ipfire-release/repos/testing.repo [new file with mode: 0644]
ipfire-release/repos/unstable.repo [new file with mode: 0644]

index afc0609dfce77b8bccd7520ba15f1371afdd8083..bd0e4517ff3b76f02ab7a00da7c8c5b0a9d1f643 100644 (file)
@@ -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 <<EOF >%{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 <<EOF >%{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 (file)
index 0000000..2e34475
--- /dev/null
@@ -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 (file)
index 0000000..63b3674
--- /dev/null
@@ -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 (file)
index 0000000..76ea412
--- /dev/null
@@ -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