[CMake] CPack system directory issues (PackageManager, RPM)

Eric Noulard eric.noulard at gmail.com
Thu Jun 19 02:02:16 EDT 2008


2008/6/18 Martin Blom <martin at blom.org>:
>
> Hi,
>
> I'm using CMake/CPack to package a system daemon, which is installing files
> to different system directories like /etc, /usr/bin, /usr/share/doc etc.
>
> The problem I'm having is that I need to exclude these directories from the
> package list. Not all, though -- I still want /usr/share/doc/<project> to be
> part of the package, so it gets erased when the package is removed.
>
> For RPMs, I could solve it by using my own .spec template, but I can't
> figure out how to make a proper PackageManager package.
>
> When installing the package, it messes up several system directores (like
> replacing the /etc -> /private/etc symlink with a basically empty directory,
> owned by my user ID!)
>
> I tried setting CPACK_IGNORE_FILES, but that didn't seem to help. Did I do
> something wrong?

I may answer concerning RPM, you did not do something wrong,
in the short term the custom spec file is the way to go.

I'll have a look to see how I can support CPACK_IGNORE_FILES


-- 
Erk


More information about the CMake mailing list