Bug #929
closedCreate a foreman-release package?
Description
Could you create a package called something like "foreman-release" that creates this file?
cat - > /etc/yum.repos.d/foreman-release.repo <<EOT
[foreman]
name=Foreman - Stable
baseurl=http://yum.theforeman.org/stable/
enabled=1
gpgcheck=0
[foreman-testing]
name=Foreman - Testing
baseurl=http://yum.theforeman.org/test/
enabled=0
gpgcheck=0
EOT
By doing so, users can add the repo by name and match other 3rd party repos.
Thanks in advance.
Files
Updated by D. Johnson over 13 years ago
This should work:
diff --git a/extras/foreman-release.spec b/extras/foreman-release.spec
new file mode 100644
index 0000000..2007f30
--- /dev/null
++ b/extras/foreman-release.spec@ -0,0 +1,41
@
Name: foreman-release
+Version: 1
+Release: 1
+Summary: Foreman repository files
Group: System Environment/Base
+License: GPLv3
URL: http://theforeman.org/projects/foreman/
+Source1: foreman.repo
+BuildRoot: /{name}-%{version}-%{release}-root-%( n)
BuildArch: noarch
%description
+Foreman repository contains open source and other distributable software for
+Fedora. This package contains the repository configuration for Yum.
%prep
%build
%install
+rm -rf $RPM_BUILD_ROOT
# yum
+install -dm 755 $RPM_BUILD_ROOT{_sysconfdir}/yum.repos.d
+install -pm 644 \
$RPM_BUILD_ROOT{_sysconfdir}/yum.repos.d
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(,root,root,-)
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
%changelog
* Sun May 22 2011 <fenris02@fedoraproject.org> - 1-1
- Initial release
diff --git a/extras/foreman.repo b/extras/foreman.repo
new file mode 100644
index 0000000..9fdc048
--- /dev/null
++ b/extras/foreman.repo@ -0,0 +1,11
@
[foreman]
name=Foreman - Stable
+baseurl=http://yum.theforeman.org/stable/
+enabled=1
+gpgcheck=0
+[foreman-testing]
+name=Foreman - Testing
+baseurl=http://yum.theforeman.org/test/
+enabled=0
+gpgcheck=0
Updated by D. Johnson over 13 years ago
- File 0001-Add-files-for-foreman-release-mini-package.patch 0001-Add-files-for-foreman-release-mini-package.patch added
Looks like wiki broke git patch, attaching as external file with git format-patch
Updated by Ohad Levy over 13 years ago
- Project changed from Installer to Foreman
Updated by Ohad Levy over 13 years ago
- Category set to Packaging
- Target version set to 0.3
Updated by D. Johnson over 13 years ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset 814e3894b55ace2a24440c6828e41cbdb36d6be3.
Updated by Ohad Levy over 13 years ago
- Status changed from Ready For Testing to Closed