Re: A few Issues Building Snort++ (3.0.0-a4-b244) on Ubuntu
Noah Dietrich <[email protected]> Tue, 20 Mar 2018 06:17:01 +0200
| Newsgroups | gmane.comp.security.ids.snort.devel |
|---|---|
| Message-ID | <CA+N0JEyq=Pt58MyS5h+6AqZY60ReX7qbCp5pCZ-TLq01uHOsSw@mail.gmail.com> |
Hi Michael, I don't have a good reason to want the install to go to the root directory, it's just that I am working on updating the Snort++ install guides for Ubuntu, where previous versions set the install path to / because it made the file paths simpler for people to understand when describing how the software worked and how all the parts of snort will installed. It looks like this change has irritated <https://gitlab.kitware.com/cmake/cmake/issues/17445> some other people, and I do admit it makes the installation guide cleaner and easier to explain when Snort is install to the root directories, but I understand the reasoning behind it (if maybe not the cmake project's firmness in enforcing it), especially with regard to following the linux filesystem hierarchy standard. I'll re-design the guide for a default install location of /usr, and keep the configuration directory as /etc/snort, as that seems to make the most sense and keep with the spirit of the FHS (even though the FHS does seem a little contradictory about where things should be installed, /usr versus /usr/local in this case). Thanks for the info on DAQ being built with cmake, I'll keep an eye out for that change as I update the guide. It's nice from authoring the install guide point-of-view to have everything use similar install processes / tools, it keeps things simpler and clearer for me and the target audience. I'll try testing the install of snort-extras with prefix=/usr to see what happens, although i think this issue is specifically related to trying to install to root, and probably won't mater (although you may want to put a sanity check into your scripts to make sure other people don't get caught by the same issue i'm running across here). thanks again for all your help, Noah On Tue, Mar 20, 2018 at 2:17 AM, Michael Altizer via Snort-devel < [email protected]> wrote: > On 03/19/2018 02:15 PM, Jonathan McDowell via Snort-devel wrote: > >> On Sat, Mar 17, 2018 at 10:55:34AM -0400, Russ via Snort-devel wrote: >> >>> On 3/17/18 2:04 AM, Noah Dietrich wrote: >>> >>>> 3. Additional question -> will DAQ go to cmake in the future? >>>> >>>> Will DAQ move to cmake in the future? >>>> >>> There is no plan at this time to change DAQ to cmake. Are you just >>> curious or is there a specific concern? >>> >> It'd be nice to see DAQ move to pkg-config rather than the >> "daq-modules-config" binary - that would make things easier for cross >> compilation. >> > That's in the works. > >> >> //------------------------------------------------------------- >>>> 4. Install location of snort binary seems off >>>> >>>> When I run configure_cmake.sh and specify the prefix path as the root of >>>> the drive (--prefix=/), most of the files are installed where you'd >>>> expect (/etc/snort, et cetera), however the snort binary is placed in >>>> /usr/bin/snort, this is different than previous installations, where >>>> setting the prefix to the root of the drive would install the snort >>>> binary to the /bin directory. is this a bug or by design? >>>> >>> Install should be using your prefix. Maybe this broke with the recent >>> use >>> of GNUInstallDirs. However, we build and test using prefix all the time >>> and >>> it is working here, but we probably never tried /. I wouldn't expect it >>> to >>> matter, but what happens if you use some other path? >>> >> This is definitely a GNUInstallDirs issue; my bad. Apparently CMake >> special cases /, /usr + /opt: >> >> https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/ >> GNUInstallDirs.cmake#L73 >> >> That's sort of awkward, but it's enforcing a standard as stated in the > macro comments. I'm not sure how much we care. Noah, was there a > particular reason that you really wanted the binary installed into /bin > rather than /usr/bin? > > > _______________________________________________ > Snort-devel mailing list > [email protected] > https://lists.snort.org/mailman/listinfo/snort-devel > > Please visit http://blog.snort.org for the latest news about Snort! > _______________________________________________ Snort-devel mailing list [email protected] https://lists.snort.org/mailman/listinfo/snort-devel Please visit http://blog.snort.org for the latest news about Snort!