Bug #929
closed
Create a foreman-release package?
Added by D. Johnson over 13 years ago.
Updated over 13 years ago.
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
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
Looks like wiki broke git patch, attaching as external file with git format-patch
- Project changed from Installer to Foreman
- Category set to Packaging
- Target version set to 0.3
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Also available in: Atom
PDF