From 5a3b4b79768c8b63e5516e9acad78b3f696e23d3 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 12 May 2005 17:59:38 +0000 Subject: convert strace over to new packaging style git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@833 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/strace/Makefile | 31 ++++++------------------------- package/strace/ipkg/strace.control | 6 ++++++ package/strace/strace.control | 6 ------ 3 files changed, 12 insertions(+), 31 deletions(-) create mode 100644 package/strace/ipkg/strace.control delete mode 100644 package/strace/strace.control (limited to 'package') diff --git a/package/strace/Makefile b/package/strace/Makefile index 6ff1d8650..9a4137aae 100644 --- a/package/strace/Makefile +++ b/package/strace/Makefile @@ -13,18 +13,11 @@ PKG_CAT:=bzcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -IPKG_STRACE:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk -IDIR_STRACE:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME) -INFO_STRACE:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list +include $(TOPDIR)/package/rules.mk -$(DL_DIR)/$(PKG_SOURCE): - $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) +$(eval $(call PKG_template,STRACE,strace,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) -$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) - $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $(PKG_BUILD_DIR)/.prepared - -$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared +$(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ @@ -53,25 +46,13 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared ); touch $(PKG_BUILD_DIR)/.configured -$(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.configured +$(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ CC=$(TARGET_CC) + touch $@ -$(IPKG_STRACE): $(PKG_BUILD_DIR)/$(PKG_NAME) - $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_STRACE) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) +$(IPKG_STRACE): mkdir -p $(IDIR_STRACE)/usr/sbin cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/ $(STRIP) $(IDIR_STRACE)/usr/sbin/* - mkdir -p $(PACKAGE_DIR) $(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR) - -$(INFO_STRACE): $(IPKG_STRACE) - $(IPKG) install $(IPKG_STRACE) - -source: $(DL_DIR)/$(PKG_SOURCE) -prepare: $(PKG_BUILD_DIR)/.prepared -compile: $(IPKG_STRACE) -install: $(INFO_STRACE) - -clean: - rm -rf $(PKG_BUILD_DIR) $(IPKG_STRACE) diff --git a/package/strace/ipkg/strace.control b/package/strace/ipkg/strace.control new file mode 100644 index 000000000..1f101178a --- /dev/null +++ b/package/strace/ipkg/strace.control @@ -0,0 +1,6 @@ +Package: strace +Priority: optional +Section: net +Maintainer: Felix Fietkau +Source: buildroot internal +Description: System call trace program diff --git a/package/strace/strace.control b/package/strace/strace.control deleted file mode 100644 index 1f101178a..000000000 --- a/package/strace/strace.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: strace -Priority: optional -Section: net -Maintainer: Felix Fietkau -Source: buildroot internal -Description: System call trace program -- cgit v1.2.3