Re: kpackage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Walter Gábor wrote:
The src.rpm was the one corresponding to the rpm installed, that is
kdeadmin-3.2.2-2.src.rpm.
To tell the truth, the only modification I made to the spec file was
setting the kpackage value to 1 at the beginning of the file.
I'll investigate further but if you (or anyone on the list) have
specific information as to what else needs modifying, please let me
know.

The original packager appears to have left a few things out of the spec that are needed for kpackage. Try patching the spec file with the attached patch.


Paul.
--- kdeadmin.spec	2004-10-27 10:02:55.000000000 +0100
+++ kdeadmin.spec	2004-10-27 10:39:30.000000000 +0100
@@ -7,7 +7,7 @@
 
 %define ksysv 0
 %define kuser 0
-%define kpackage 0
+%define kpackage 1
 %define lilo 0
 %define kdat 1
 %define kcron 1
@@ -333,10 +333,14 @@
   ln -s consolehelper $RPM_BUILD_ROOT/usr/bin/kuser
 %endif
 
+# Runkpackage through consolehelper
 %if %{kpackage}
   mkdir -p $RPM_BUILD_ROOT%{_datadir}/config
+  mv $RPM_BUILD_ROOT/usr/bin/kpackage $RPM_BUILD_ROOT/usr/sbin
+  install -c -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc/security/console.apps/kpackage
   install -m 0644 %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/kpackage
   install -c -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/config
+  ln -s consolehelper $RPM_BUILD_ROOT/usr/bin/kpackage
 %endif
 
 %if ! %{kcron}

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux