mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
b959d3d904
- Change WITH_PCAP_PORT to LIB_DEPENDS, not BUILD_DEPENDS - add stopdaemon to pkg-plist - need chown in pkg-plist so that .tbz (package building) works - clean up install message (patch-Makefile.am) - add test in pkg-deinstall.in to test for DBDIR PR: ports/163682 Submitted by: scheidell@
95 lines
3.2 KiB
Plaintext
95 lines
3.2 KiB
Plaintext
--- Makefile.am.orig 2011-03-03 08:44:59.000000000 -0500
|
|
+++ Makefile.am 2011-12-28 14:25:08.000000000 -0500
|
|
@@ -61,8 +61,6 @@
|
|
|
|
ETTER_PASSIVE_FILE = etter.finger.os
|
|
ETTER_PASSIVE = $(ETTER_PASSIVE_FILE).gz
|
|
-ETTER_PASSIVE_DOWNLOAD_FROM = "http://ettercap.cvs.sourceforge.net/ettercap/ettercap_ng/share"
|
|
-ETTER_PASSIVE_DOWNLOAD_PARMS = "rev=HEAD"
|
|
|
|
NTOPDATA = ntop-cert.pem \
|
|
$(ETTER_PASSIVE) \
|
|
@@ -303,15 +301,14 @@
|
|
echo " WARNING: This install created a directory for the ntop"; \
|
|
echo " files and databases:"; \
|
|
echo ""; \
|
|
- echo " $(DESTDIR)/$(datadir)/ntop"; \
|
|
+ echo " $(CFG_DBFILE_DIR)"; \
|
|
echo ""; \
|
|
echo " This directory MUST be owned by the user"; \
|
|
echo " which you are going to use to run ntop."; \
|
|
echo ""; \
|
|
echo " The command you must issue is something like:"; \
|
|
echo ""; \
|
|
- echo " chown -R ntop.ntop $(DESTDIR)/$(datadir)/ntop"; \
|
|
- echo " or chown -R ntop:users $(DESTDIR)/$(datadir)/ntop"; \
|
|
+ echo " chown -R nobody:nobody $(CFG_DBFILE_DIR)"; \
|
|
echo ""; \
|
|
echo " man chown to check the syntax for YOUR system"; \
|
|
echo ""; \
|
|
@@ -329,7 +326,6 @@
|
|
chcon -t textrel_shlib_t $(DESTDIR)$(libdir)/*ntop*.so
|
|
|
|
install-data-local: ntop.txt ntop.html faq.html dnetter
|
|
- @$(top_srcdir)/mkinstalldirs $(DESTDIR)/$(libdir)/plugins;
|
|
@if ! test -d $(DESTDIR)/$(datadir)/ntop; then \
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/ntop; \
|
|
touch $(DESTDIR)/$(datadir)/ntop/warnuser; \
|
|
@@ -365,21 +361,6 @@
|
|
@echo ""
|
|
@echo ""
|
|
@echo -n "Preparing "
|
|
- @if test -f oui.txt; then \
|
|
- rm -rf oui.txt; \
|
|
- fi
|
|
- @if test -f oui.txt.gz.old; then \
|
|
- rm -rf oui.txt.gz.old; \
|
|
- fi;
|
|
- @mv oui.txt.gz oui.txt.gz.old
|
|
- @echo "(old oui.txt.gz file is now oui.txt.gz.old)"
|
|
- @echo ""
|
|
- @wget -c http://standards.ieee.org/regauth/oui/oui.txt
|
|
- @gzip oui.txt
|
|
- @echo ""
|
|
- @echo ""
|
|
- @echo -n "Old file lines were: "
|
|
- @gunzip -c oui.txt.gz.old | wc -l
|
|
@echo -n "New file lines are: "
|
|
@gunzip -c oui.txt.gz | wc -l
|
|
@echo ""
|
|
@@ -398,34 +379,6 @@
|
|
@echo "Preparing "
|
|
@echo ""
|
|
|
|
- @if test -f $(ETTER_PASSIVE).old; then \
|
|
- echo "...Deleting prior file, $(ETTER_PASSIVE).old..."; \
|
|
- rm -rf $(ETTER_PASSIVE).old; \
|
|
- fi;
|
|
- @if test -f $(ETTER_PASSIVE); then \
|
|
- echo "...Moving current $(ETTER_PASSIVE) to $(ETTER_PASSIVE).old"; \
|
|
- mv $(ETTER_PASSIVE) $(ETTER_PASSIVE).old; \
|
|
- fi;
|
|
- @for file in $(ETTER_PASSIVE) $(ETTER_PASSIVE).gz \
|
|
- $(ETTER_PASSIVE_FILE) $(ETTER_PASSIVE_FILE).gz; do \
|
|
- if test -f $$file; then \
|
|
- echo "...Deleting prior file, $$file..."; \
|
|
- rm -rf $$file; \
|
|
- fi; \
|
|
- done
|
|
- @echo ""
|
|
- @echo "...Downloading new file..."
|
|
- @wget -O $(ETTER_PASSIVE_FILE) \
|
|
- $(ETTER_PASSIVE_DOWNLOAD_FROM)/$(ETTER_PASSIVE_FILE)?$(ETTER_PASSIVE_DOWNLOAD_PARMS)
|
|
- @echo ""
|
|
- @echo "gziping downloaded file..."
|
|
- @gzip $(ETTER_PASSIVE_FILE)
|
|
- @echo ""
|
|
- @echo ""
|
|
- @if test -f $(ETTER_PASSIVE).old; then \
|
|
- echo -n "Old file lines were: "; \
|
|
- gunzip -c $(ETTER_PASSIVE).old | wc -l; \
|
|
- fi;
|
|
@echo -n "New file lines are: "
|
|
@gunzip -c $(ETTER_PASSIVE) | wc -l
|
|
@echo ""
|