Project

General

Profile

Actions

Bug #929

closed

Create a foreman-release package?

Added by D. Johnson almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

0001-Add-files-for-foreman-release-mini-package.patch 0001-Add-files-for-foreman-release-mini-package.patch 2.01 KB Looks like wiki broke git patch, attaching as external file with git format-patch D. Johnson, 05/23/2011 11:03 AM
Actions #1

Updated by D. Johnson almost 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 <> - 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

Actions #2

Updated by D. Johnson almost 13 years ago

Looks like wiki broke git patch, attaching as external file with git format-patch

Actions #3

Updated by Ohad Levy almost 13 years ago

  • Project changed from Installer to Foreman
Actions #4

Updated by Ohad Levy almost 13 years ago

  • Category set to Packaging
  • Target version set to 0.3
Actions #5

Updated by D. Johnson almost 13 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #6

Updated by Ohad Levy almost 13 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF