Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 754819 Details for
Bug 968980
Create subpackage 'rmt' compiled from star's rmt.c source
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Possible solution.
0001-rmt-spec-subpackage-also-rmt.patch (text/plain), 4.34 KB, created by
Pavel Raiskup
on 2013-05-30 12:32:09 UTC
(
hide
)
Description:
Possible solution.
Filename:
MIME Type:
Creator:
Pavel Raiskup
Created:
2013-05-30 12:32:09 UTC
Size:
4.34 KB
patch
obsolete
>From 407dd5898664478be0a858347e8ac0bc17c9043c Mon Sep 17 00:00:00 2001 >From: Pavel Raiskup <praiskup@redhat.com> >Date: Thu, 30 May 2013 14:16:16 +0200 >Subject: [PATCH] rmt, spec: subpackage also rmt > >Resolves: #968980 >Version: 1.5.2-6 >--- > star-1.5.2-rmt-rh-access.patch | 18 ++++++++++++++++++ > star.spec | 38 ++++++++++++++++++++++++++++++++------ > 2 files changed, 50 insertions(+), 6 deletions(-) > create mode 100644 star-1.5.2-rmt-rh-access.patch > >diff --git a/star-1.5.2-rmt-rh-access.patch b/star-1.5.2-rmt-rh-access.patch >new file mode 100644 >index 0000000..88b9c88 >--- /dev/null >+++ b/star-1.5.2-rmt-rh-access.patch >@@ -0,0 +1,18 @@ >+diff --git a/rmt/rmt.dfl b/rmt/rmt.dfl >+index 7b8ca8b..e0576e8 100644 >+--- a/rmt/rmt.dfl >++++ b/rmt/rmt.dfl >+@@ -44,7 +44,9 @@ USER=* >+ # name name >+ # >+ #ACCESS=rtape sparky /dev/rmt/* >+-ACCESS=* * /dev/rmt/* >+-ACCESS=* * /dev/null >+-ACCESS=* * /dev/zero >+-#ACCESS=* * * >++#ACCESS=* * /dev/rmt/* >++#ACCESS=* * /dev/null >++#ACCESS=* * /dev/zero >++ >++# Historically, Red Hat rmt was not so ^^ restrictive. >++ACCESS=* * * >diff --git a/star.spec b/star.spec >index a9429a3..3332093 100644 >--- a/star.spec >+++ b/star.spec >@@ -7,7 +7,7 @@ > Summary: An archiving tool with ACL support > Name: star > Version: 1.5.2 >-Release: 5%{?dist} >+Release: 6%{?dist} > URL: http://cdrecord.berlios.de/old/private/star.html > Source: ftp://ftp.berlios.de/pub/star/%{name}-%{version}.tar.bz2 > >@@ -38,6 +38,11 @@ Patch8: star-1.5.2-man-page-day.patch > # ~> #926571 > Patch9: star-1.5.2-aarch64-config.patch > >+# Allow rmt to access all files. >+# ~> downstream >+# ~> #968980 >+Patch10: star-1.5.2-rmt-rh-access.patch >+ > Requires(post): %{ALTERNATIVES} > Requires(preun): %{ALTERNATIVES} > >@@ -80,6 +85,17 @@ The scpio utility, depending on the options used: copies files to an archive > file, extracts files from an archive file, lists files from an archive file or > copies files from one directory tree to another. > >+%package -n rmt >+Summary: Provides certain programs with access to remote tape devices >+Group: Applications/Archiving >+# we need to be greater than the version from 'dump' package >+Epoch: 2 >+ >+%description -n rmt >+The rmt utility provides remote access to tape devices for programs >+like dump (a filesystem backup program), restore (a program for >+restoring files from a backup), and tar (an archiving program). >+ > # "desired" alternative constants > %global ALT_NAME pax > %global ALT_LINK %{_bindir}/pax >@@ -103,6 +119,7 @@ copies files from one directory tree to another. > %patch7 -p1 -b .crc > %patch8 -p1 -b .man-page-day > %patch9 -p1 -b .aarch64 >+%patch10 -p1 -b .rmt-access-rules > > cp -a star/all.mk star/Makefile > >@@ -146,13 +163,13 @@ CONFFLAGS="%{_target_platform} --prefix=%{_prefix} \ > %install > export MAKEPROG=gmake > mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man4 >-%makeinstall RPM_INSTALLDIR=${RPM_BUILD_ROOT} PARCH=%{_target_cpu} K_ARCH=%{_target_cpu} < /dev/null >-rm -rf ${RPM_BUILD_ROOT}/usr/share/doc/rmt >+ >+make install RPM_INSTALLDIR=${RPM_BUILD_ROOT} PARCH=%{_target_cpu} K_ARCH=%{_target_cpu} < /dev/null >+ > ln -s star.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/ustar.1 > > # XXX Nuke unpackaged files. > ( cd ${RPM_BUILD_ROOT} >- rm -f .%{_sysconfdir}/default/rmt > rm -f .%{_bindir}/mt > rm -f .%{_bindir}/smt > rm -f .%{_bindir}/tartest >@@ -161,13 +178,13 @@ ln -s star.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/ustar.1 > rm -f .%{_bindir}/star_fat > rm -f .%{_bindir}/star_sym > rm -f .%{_bindir}/suntar >+ rm -rf .%{_docdir}/rmt > rm -rf .%{_prefix}%{_sysconfdir} > rm -rf .%{_prefix}/include > rm -rf .%{_prefix}/lib # hard-wired intently > rm -rf .%{_mandir}/man3 > rm -rf .%{_mandir}/man5/{makefiles,makerules}.5* >- rm -rf .%{_mandir}/man1/{tartest,rmt,gnutar,smt,mt,suntar,match}.1* >- rm -rf .%{_sbindir} >+ rm -rf .%{_mandir}/man1/{tartest,gnutar,smt,mt,suntar,match}.1* > ) > > %clean >@@ -205,7 +222,16 @@ fi > %ghost %verify(not md5 size mode mtime) %{ALT_LINK} > %ghost %verify(not md5 size mode mtime) %{ALT_SL1_LINK} > >+%files -n rmt >+%doc %{general_docs} >+%{_sbindir}/rmt >+%{_mandir}/man1/rmt.1* >+%config %{_sysconfdir}/default/rmt >+ > %changelog >+* Thu May 30 2013 Pavel Raiskup <praiskup@redhat.com> - 1.5.2-6 >+- subpackage also 'rmt' (#968980) >+ > * Fri May 24 2013 Pavel Raiskup <praiskup@redhat.com> - 1.5.2-5 > - add missing ghost files (#960007) > - fix the upgrade path, sorry for the noise (#959917, #960007) >-- >1.8.2.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 968980
: 754819