RPM packaging: systemd service files

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

 



Hello all,

I'm attempting to package Kwakd for Fedora.  I'm pretty new to rpm
packaging but have already managed to build and package some simple
stuff.

I can get kwakd to build and package properly apart from one thing.
The systemd service file needs to be copied to the appropriate
directory and it doesn't seem to be working.  Here are the relevant
parts of the spec file:

	%install
	make install DESTDIR=$RPM_BUILD_ROOT
	cp %{name}.service %{_unitdir}

	%files 
	%doc README NEWS ChangeLog COPYING AUTHORS TODO
	%{_bindir}/%{name}
	%{_mandir}/man1/%{name}.1.gz
	%{_unitdir}/%{name}.service

The error I get is this:

+ cp kwakd.service /usr/lib/systemd/system
cp: cannot create regular file '/usr/lib/systemd/system/kwakd.service':
  Permission denied error: Bad exit status from /var/tmp/rpm-tmp.vQB9sv
  (%install)

What am I doing wrong?  If this is the wrong mailing list then please
point me to the correct one if you can too!

thanks,

Ananda Samaddar
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux