PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Snort 1.9.0 in ein Verzeichnis



Windoofsklicker
19.02.03, 20:48
hi folks.

ich versuche snort 1.9.0 in ein verzeichnis zu installieren, da ich es hasse, wenn sich ein programm über den ganzen tree ergiesst.

mein problem ist, welchen switch muss ich ./configure mit übergeben?
wenn ich ./configure --prefix=/snort eigebe, dann installiert er lediglich ../bin und ../man im /snort verzeichnis.

hier mal ein ausschnitt aus der doku:

>--- schnipp ----<

Installation Names
==================

By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.

You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.

In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.

If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.

>--- schnapp ---<



./configure --help ergibt folgendes:

>--- schnipp ----<

Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
>--- schnapp ----<

wenn ich nun ein verzeichnis für snort möchte, muss ich dann etwa alle switches die aufgeführt sind übergeben, oder gibt es einen universalschalter?

soenke
19.02.03, 21:20
Hei,

laut ./configure --help wird alles unter /snort installiert, wenn Du als prefix /snort angibst.
Allerdings gibt es nichts anderes als /bin und /man.

Als Bestätigung habe ich eben snort kompiliert und mit checkinstall installiert.

Hier ist ein Auszug aus der Dateiliste:

opt/
opt/snort/
opt/snort/bin/
opt/snort/bin/snort
opt/snort/man/
opt/snort/man/man8/
opt/snort/man/man8/snort.8

Ich habe allerdings als prefix /opt/snort angegeben.


Beste Grüße
Sönke

HangLoose
19.02.03, 22:14
hi

wie soenke schon schrieb, sind nach der installation von snort ausser dem binärie und den man-pages nur noch die config files vorhanden.

die configfiles und rules, liegen ja alle im verz. /etc/snort. die könntest du natürlich nach /snort verschieben, müßtest das ganze nur beim aufruf von snort mit dem entsprechenden parameter bekannt geben. ob das allerdings sinnvoll ist, weiß ich nicht.


Gruß HL