From d0149fc434f0da76adab37a3f6b66157a26afdf5 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 18 Apr 2005 22:21:01 +0000 Subject: Change libpcap, uniformize package makefile, put back control file in ./ipkg git-svn-id: svn://svn.openwrt.org/openwrt/trunk@682 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/libpcap/Makefile | 56 ++++++++++++++-------------- openwrt/package/libpcap/ipkg/libpcap.control | 8 ++++ openwrt/package/libpcap/libpcap.control | 8 ---- 3 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 openwrt/package/libpcap/ipkg/libpcap.control delete mode 100644 openwrt/package/libpcap/libpcap.control (limited to 'openwrt/package') diff --git a/openwrt/package/libpcap/Makefile b/openwrt/package/libpcap/Makefile index 974d9afc48..0a0e5181f8 100644 --- a/openwrt/package/libpcap/Makefile +++ b/openwrt/package/libpcap/Makefile @@ -29,37 +29,37 @@ $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) touch $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared - (cd $(PKG_BUILD_DIR); rm -rf config.cache config.status; \ + (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ ac_cv_linux_vers=$(BR2_DEFAULT_KERNEL_HEADERS) \ ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --program-prefix="" \ - --program-suffix="" \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - $(DISABLE_NLS) \ - $(DISABLE_LARGEFILE) \ - --enable-shared \ - --enable-static \ - --disable-yydebug \ - --with-build-cc=$(HOSTCC) \ - --with-pcap=linux \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --infodir=/usr/share/info \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + $(DISABLE_NLS) \ + $(DISABLE_LARGEFILE) \ + --enable-shared \ + --enable-static \ + --disable-yydebug \ + --with-build-cc=$(HOSTCC) \ + --with-pcap=linux \ ); touch $(PKG_BUILD_DIR)/.configured @@ -74,10 +74,10 @@ $(STAGING_DIR)/usr/lib/libpcap.so: $(PKG_BUILD_DIR)/.built install $(IPKG_LIBPCAP): $(STAGING_DIR)/usr/lib/libpcap.so - $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBPCAP) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) - mkdir -p $(IDIR_LIBPCAP)/usr/lib + $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBPCAP) ./ipkg/$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) + install -m0755 -d $(IDIR_LIBPCAP)/usr/lib cp -fpR $(STAGING_DIR)/usr/lib/libpcap.so.* $(IDIR_LIBPCAP)/usr/lib/ - $(STRIP) $(IDIR_LIBPCAP)/usr/lib/lib*.so* + $(RSTRIP) $(IDIR_LIBPCAP) mkdir -p $(PACKAGE_DIR) $(IPKG_BUILD) $(IDIR_LIBPCAP) $(PACKAGE_DIR) diff --git a/openwrt/package/libpcap/ipkg/libpcap.control b/openwrt/package/libpcap/ipkg/libpcap.control new file mode 100644 index 0000000000..4251be8090 --- /dev/null +++ b/openwrt/package/libpcap/ipkg/libpcap.control @@ -0,0 +1,8 @@ +Package: libpcap +Priority: optional +Section: libs +Version: [TBDL] +Architecture: [TBDL] +Maintainer: Nico +Source: http://nthill.free.fr/openwrt/sources/libpcap/ +Description: a low-level packet capture library diff --git a/openwrt/package/libpcap/libpcap.control b/openwrt/package/libpcap/libpcap.control deleted file mode 100644 index 4251be8090..0000000000 --- a/openwrt/package/libpcap/libpcap.control +++ /dev/null @@ -1,8 +0,0 @@ -Package: libpcap -Priority: optional -Section: libs -Version: [TBDL] -Architecture: [TBDL] -Maintainer: Nico -Source: http://nthill.free.fr/openwrt/sources/libpcap/ -Description: a low-level packet capture library -- cgit v1.2.3