Attached is a patch (I think that I have done it right) for the snort.mk file for the snort package. I did this for two reasons, one that the package did not compile because it seemed to be trying to strip the snort binary from a directory different from the directory it was installed to, and two, so that all of the associated snort config files would be installed.

I have no idea how to submit this so thought I should at least post to the list, to save some people some frustration.

--- snort.mk    2007-03-19 09:50:24.000000000 +1100
+++ snort.mk.new        2007-03-19 09:50:45.000000000 +1100
@@ -46,13 +46,21 @@
 $(SNORT_BUILD_DIR)/src/snort: $(SNORT_BUILD_DIR)/.configured
        $(MAKE) -C $(SNORT_BUILD_DIR)
-$(TARGET_DIR)/etc/snort: $(SNORT_BUILD_DIR)/rules
+$(TARGET_DIR)/etc/snort: $(SNORT_BUILD_DIR)/etc
        install -m 0755 -d $< $@
+       install -m 0644 $</*.conf $@
+       install -m 0644 $</*.config $@
+       install -m 0644 $</*.map $@
+       install -m 0644 $</generators $@
+       mkdir -p $(TARGET_DIR)/etc/snort/rules
+       install -m 0644 $(SNORT_BUILD_DIR)/rules/*.rules $(TARGET_DIR)/etc/snort/rules
+$(TARGET_DIR)/etc/snort/rules: $(SNORT_BUILD_DIR)/rules
        install -m 0644 $</*.rules $@
 $(TARGET_DIR)/usr/bin/snort: $(SNORT_BUILD_DIR)/src/snort
        install -m 0755 -D $< $@
-       $(STRIP) $(TARGET_DIR)/usr/sbin/snort
+       $(STRIP) $(TARGET_DIR)/usr/bin/snort
 snort: libpcap libpcre $(TARGET_DIR)/usr/bin/snort $(TARGET_DIR)/etc/snort

Linus Hindmarsh


CAUTION: This email and files included in its transmission

are solely intended for the use of the addressee(s) and may

contain information that is confidential and privileged.

If you receive this email in error, please advise us

immediately and delete it without copying the contents

contained within. Woolworths Limited (including its group

of companies) do not accept liability for the views

expressed within or the consequences of any computer

viruses that may be transmitted with this email. The

contents are also subject to copyright. No part of it

should be reproduced, adapted or transmitted without the

written consent of the copyright owner.