Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/tcpdump
Date: Sun, 19 Aug 2007 14:17:49 -0700 (PDT)	[thread overview]
Message-ID: <20070819211749.9F61AA6148@busybox.net> (raw)

Author: ulf
Date: 2007-08-19 14:17:48 -0700 (Sun, 19 Aug 2007)
New Revision: 19572

Log:
move tcpdump from lib to usr/lib, simplify configure, general cleanup

Modified:
   trunk/buildroot/package/tcpdump/Config.in
   trunk/buildroot/package/tcpdump/dhcpdump.mk
   trunk/buildroot/package/tcpdump/tcpdump.mk


Changeset:
Modified: trunk/buildroot/package/tcpdump/Config.in
===================================================================
--- trunk/buildroot/package/tcpdump/Config.in	2007-08-19 21:15:42 UTC (rev 19571)
+++ trunk/buildroot/package/tcpdump/Config.in	2007-08-19 21:17:48 UTC (rev 19572)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_TCPDUMP
 	bool "tcpdump"
+	select BR2_PACKAGE_LIBPCAP
 	default n
 	help
 	  A tool for network monitoring and data acquisition.
@@ -9,6 +10,6 @@
 config BR2_PACKAGE_DHCPDUMP
 	bool "dhcpdump"
 	default n
-	depends BR2_PACKAGE_TCPDUMP
+	select BR2_PACKAGE_LIBPCAP
 	help
 	  A tool for monitoring dhcp requests using tcpdump.

Modified: trunk/buildroot/package/tcpdump/dhcpdump.mk
===================================================================
--- trunk/buildroot/package/tcpdump/dhcpdump.mk	2007-08-19 21:15:42 UTC (rev 19571)
+++ trunk/buildroot/package/tcpdump/dhcpdump.mk	2007-08-19 21:17:48 UTC (rev 19572)
@@ -19,7 +19,7 @@
 
 $(DHCPDUMP_DIR)/.unpacked: $(DL_DIR)/$(DHCPDUMP_SOURCE)
 	$(DHCPDUMP_CAT) $(DL_DIR)/$(DHCPDUMP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-	touch $(DHCPDUMP_DIR)/.unpacked
+	touch $@
 
 $(DHCPDUMP_DIR)/.configured: $(DHCPDUMP_DIR)/.unpacked
 	( \
@@ -32,31 +32,23 @@
 		--host=$(GNU_TARGET_NAME) \
 		--build=$(GNU_HOST_NAME) \
 		--prefix=/usr \
-		--exec-prefix=/usr \
-		--bindir=/usr/bin \
-		--sbindir=/usr/sbin \
-		--libdir=/lib \
-		--libexecdir=/usr/lib \
 		--sysconfdir=/etc \
-		--datadir=/usr/share \
 		--localstatedir=/var \
-		--includedir=/include \
-		--mandir=/usr/man \
-		--infodir=/usr/info \
-		--with-build-cc="$(HOSTCC)" \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
 	)
-	touch $(DHCPDUMP_DIR)/.configured
+	touch $@
 
 $(DHCPDUMP_DIR)/dhcpdump: $(DHCPDUMP_DIR)/.configured
 	$(MAKE) CC="$(TARGET_CC)" -C $(DHCPDUMP_DIR)
 
-$(TARGET_DIR)/sbin/dhcpdump: $(DHCPDUMP_DIR)/dhcpdump
+$(TARGET_DIR)/usr/sbin/dhcpdump: $(DHCPDUMP_DIR)/dhcpdump
 	cp -af $< $@
 
-dhcpdump: uclibc zlib libpcap $(TARGET_DIR)/sbin/dhcpdump
+dhcpdump: uclibc zlib libpcap $(TARGET_DIR)/usr/sbin/dhcpdump
 
 dhcpdump-clean:
-	rm -f $(TARGET_DIR)/sbin/dhcpdump
+	rm -f $(TARGET_DIR)/usr/sbin/dhcpdump
 	-$(MAKE) -C $(DHCPDUMP_DIR) clean
 
 dhcpdump-dirclean:

Modified: trunk/buildroot/package/tcpdump/tcpdump.mk
===================================================================
--- trunk/buildroot/package/tcpdump/tcpdump.mk	2007-08-19 21:15:42 UTC (rev 19571)
+++ trunk/buildroot/package/tcpdump/tcpdump.mk	2007-08-19 21:17:48 UTC (rev 19572)
@@ -34,18 +34,8 @@
 		--host=$(GNU_TARGET_NAME) \
 		--build=$(GNU_HOST_NAME) \
 		--prefix=/usr \
-		--exec-prefix=/usr \
-		--bindir=/usr/bin \
-		--sbindir=/usr/sbin \
-		--libdir=/lib \
-		--libexecdir=/usr/lib \
-		--sysconfdir=/etc \
-		--datadir=/usr/share \
-		--localstatedir=/var \
-		--includedir=/usr/include \
-		--mandir=/usr/man \
-		--infodir=/usr/info \
-		--with-build-cc="$(HOSTCC)" \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
 		--without-crypto \
 		--disable-smb \
 	)
@@ -54,19 +44,19 @@
 
 $(TCPDUMP_DIR)/tcpdump: $(TCPDUMP_DIR)/.configured
 	$(MAKE) CC="$(TARGET_CC)" \
-		LDFLAGS="-L$(STAGING_DIR)/lib" \
+		LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
 		LIBS="-lpcap" \
 		INCLS="-I. -I$(STAGING_DIR)/usr/include" \
 		-C $(TCPDUMP_DIR)
 
-$(TARGET_DIR)/sbin/tcpdump: $(TCPDUMP_DIR)/tcpdump
+$(TARGET_DIR)/usr/sbin/tcpdump: $(TCPDUMP_DIR)/tcpdump
 	cp -f $< $@
-	$(STRIP) -s $@
+	$(STRIP) $@
 
-tcpdump: uclibc zlib libpcap $(TARGET_DIR)/sbin/tcpdump
+tcpdump: uclibc zlib libpcap $(TARGET_DIR)/usr/sbin/tcpdump
 
 tcpdump-clean:
-	rm -f $(TARGET_DIR)/sbin/tcpdump
+	rm -f $(TARGET_DIR)/usr/sbin/tcpdump
 	-$(MAKE) -C $(TCPDUMP_DIR) clean
 
 tcpdump-dirclean:

             reply	other threads:[~2007-08-19 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 21:17 ulf at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-09-01 19:42 [Buildroot] svn commit: trunk/buildroot/package/tcpdump aldot at uclibc.org
2007-10-13 23:12 ulf at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070819211749.9F61AA6148@busybox.net \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox