Hi
I think I'll give up to make debian packages with CMake/CPack and come back
to a more classical upstream/packager separate roles scheme.
What I can see after having test:
INSTALL(PROGRAMS spm-check DESTINATION ${DESTDIR}/etc/rc.d/init.d)
INSTALL(PROGRAMS spm DESTINATION sbin)
==> gives a deb file with
./usr/
./usr/sbin/
./usr/sbin/spm
and a rpm file with
/usr
/usr/sbin
/usr/sbin/spm
INSTALL(PROGRAMS spm-check DESTINATION ${DESTDIR}/etc/rc.d/init.d)
INSTALL(PROGRAMS spm DESTINATION sbin)
SET(CPACK_SET_DESTDIR ON)
==> gives a deb file with
./usr/
./usr/local/
./usr/local/sbin/
./usr/ocal/sbin/spm
and a rpm file with
/etc
/etc/rc.d
/etc/rc.d/init.d
/etc/rc.d/init.d/spm-check
/usr
/usr/local
/usr/local/sbin
/usr/local/sbin/spm
(note the "local" !!!!)
Thank you all for your help
Jérôme
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake