On Thu, 10 Nov 2011 18:10:49 +0100 Jim Meyering jim@meyering.net wrote:
logrotate_dir = $(DESTDIR)$(sysconfdir)/logrotate.d -unitdir = $(sysconfdir)/../lib/systemd/system +unitdir = $(DESTDIR)$(prefix)/lib/systemd/system .PHONY: install-data-local
I didn't want this because I thought that prefix may be /usr, in which case this does not work... But on second thought $(sysconfdir) turns into /usr/etc in such case too, right?
Right, unless you override it.
I'm asking because I cannot build the RPM, because the following happens:
[zaitcev@simbelmyne ~]$ rpmbuild -ba rpms/SPECS/iwhd.spec .................. RPM build errors: File not found: /q/zaitcev/rpms/BUILDROOT/iwhd-1.0-1.z2.el6.x86_64/lib/systemd/system/iwhd.service [zaitcev@simbelmyne ~]$ find rpms/BUILDROOT/iwhd-1.0-1.z2.el6.x86_64 -name 'iwhd.service' rpms/BUILDROOT/iwhd-1.0-1.z2.el6.x86_64/usr/lib/systemd/system/iwhd.service
(this is with the fix for "chmod 600 iwhd.users" in t/oauth, which is unrelated, but necessary to build RPMs)
-- Pete